Skip to content

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

Open
@i-am-shodan

Description

@i-am-shodan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions