TinyUSB device decriptor fails in debug mode

richsl
Posts: 1
Joined: Sun Aug 20, 2023 9:09 pm

TinyUSB device decriptor fails in debug mode

Postby richsl » Thu Apr 10, 2025 4:04 am

Hi all,
Using esp32-s3, with ESP-PROG for debug, so that I can use the USB port with TinyUSB for midi. I burnt the STRAP_JTAG_SEL efuse so that pulling GPIO3 to ground will select JTAG pin interface (GPIO39-42) not the built-in USB JTAG interface..

If I flash and run, the TinyUSB midi device is recognized on Windows 11, ESP program runs fine.

When I start debug, I can connect and start a debug session via ESP PROG connected to GPIO39-42 and debug works, but windows drops the TinyUSB midi device and reports 'device decriptor request failed'. If I remove all break points (free running debugger) and reinsert USB I still get device descriptor request failed.

I don't understand what it is about the debugger that is breaking the tinyUSB. It seems like I have successfully switched off the built-in USB-JTAG interface. Does the device descriptor handshaking fail in debug mode? Anyone abe to debug while using tinyUSB?

Who is online

Users browsing this forum: No registered users and 1 guest