adafruit / Adafruit_TinyUSB_Arduino

Arduino library for TinyUSB
MIT License
449 stars 119 forks source link

3.1.3 and 3.1.4 cause delay in enumeration #426

Open amowry opened 1 month ago

amowry commented 1 month ago

Operating System

Windows 11

Arduino IDE version

2.3.2

Board

ItsyBitsy NRF52840 Express

ArduinoCore version

1.6.1

TinyUSB Library version

3.1.3

Sketch as ATTACHED TXT

https://github.com/amowry/WARBL2/tree/main/warbl2_firmware

Compiled Log as ATTACHED TXT

Compile_Log.txt

What happened ?

I am using a custom NRF52840 USB MIDI device with the ItsyBitsy NRF52840 BSP. Upgrading to v. 1.6.1 of the BSP results in long USB enumeration times of up to several seconds. I have determined that that the cause is changes made to v. 3.1.3 of TinyUSB (v. 3.1.1 works fine). Unfortunately this is difficult to reproduce because if I use a minimal USB MIDI sketch it enumerates correctly. My code is in the link above.

How to reproduce ?

Debug Log

No response

Screenshots

No response