Adafruit_TinyUSB_Arduino icon indicating copy to clipboard operation
Adafruit_TinyUSB_Arduino copied to clipboard

3.1.3 and 3.1.4 cause delay in enumeration

Open amowry opened this issue 1 year ago • 0 comments

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 ?

  • Install above code (if you'd like I can provide a UF2 file) for a USB MIDI device.
  • The device takes several seconds to enumerate

Debug Log

No response

Screenshots

No response

amowry avatar Jun 03 '24 15:06 amowry