Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.4.0 introduces an issue on my ESP32-S3 that causes the USB device to not enumerate correctly #487

Open
i-am-shodan opened this issue Jan 14, 2025 · 2 comments
Labels
Bug Something isn't working

Comments

@i-am-shodan
Copy link

Operating System

Windows 11

Arduino IDE version

PlatformIO

Board

LilyGo Dongle S3

ArduinoCore version

https://github.com/platformio/platform-espressif32.git

TinyUSB Library version

3.4.0+

Sketch as ATTACHED TXT

#include <Arduino.h>
#include <Adafruit_TinyUSB.h>

void setup() {
  if (!TinyUSBDevice.isInitialized()) {
    TinyUSBDevice.begin(0);
  }

  Serial.begin(115200);
}

void loop() {
  Serial.println("Loop!");
  Serial.flush();
  delay(1000);
}
[env:esp-32-s3]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32-s3-devkitc-1
framework = arduino
monitor_filters = esp32_exception_decoder
monitor_speed = 115200
build_unflags = 
	-DARDUINO_USB_MODE=1
build_flags = 
	-std=gnu++2a
	-DARDUINO_USB_MODE=0
	-DARDUINO_USB_CDC_ON_BOOT=1
        -Wl,-z,muldefs
	-D CFG_TUD_ENABLED
lib_deps = 	https://github.com/i-am-shodan/Adafruit_TinyUSB_Arduino

Compiled Log as ATTACHED TXT

attached.txt

What happened ?

Starting in 3.4.0 the sketch above no longer results in a USB device appearing/COM port in Windows 11.

  • 3.1.5 works
  • 3.3.0 works
  • 3.3.3 works
  • 3.3.4 works
  • 3.4.0 does NOT work
  • 3.4.1 does NOT work

How to reproduce ?

Compile, flash and plug in

Debug Log

No response

Screenshots

No response

@i-am-shodan i-am-shodan added the Bug Something isn't working label Jan 14, 2025
@hathach
Copy link
Member

hathach commented Jan 17, 2025

please specify your exact arduino-esp32 version https://github.com/espressif/arduino-esp32/releases. If you don't know, try to compile with Arduino IDE instead.

@i-am-shodan
Copy link
Author

platform = https://github.com/platformio/platform-espressif32.git
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.5
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants