Skip to main content
Lagodolio
Associate III
Mar 10, 2022 9:01 PM UTC
Question

USB connected only after reset

My H7 board has a strange issue: if I connect it to USB, Windows recognizes it (PRODUCT ID & VENDOR ID are correctly shown) but no communication (by CDC_Transmit_FS()) happens: CDC_Transmit_FS reports me BUSY_USB.

If I reset (by the pushbutton) my board, all is OK, and the communication perfectly works!

After the "hard reset", I can unplug and replug my USB cable and the system works (of course, this is possible only if I use an external power supply).

Thanks and best regards

This topic has been closed for replies.

2 replies

MM..1
Super User
Mar 11, 2022 6:14 AM UTC

Seems on inserting your code hangs on an fault. Debug it ...

Lagodolio
LagodolioAuthor
Associate III
Mar 11, 2022 7:14 AM UTC

Unfortunately, it is not possible to access debugging functions: it is a custom board and I can program it by USB (there is a switch to set "Config Boot System" and to allow me USB programming by STMCubeProg), but STLink / JTAG /SWD Interfaces aren't accessible...