2025-11-14 9:45 AM - edited 2025-11-14 9:46 AM
Hello,
let say that STM32H753 mCU has connected VBUS (via resistor divider to be sure that voltage on VBUS detection pin (PA9) would never exceed AMR), D-, D+ and GND lines with PC, before mCU core is supplied. At the moment when mCU core is then connected to power supply, would enumeration starts normally as it should or fact that USB module of mCU was connected to PC before core parts of mCU were supplied could bring problems?
Thanks!
Solved! Go to Solution.
2025-11-14 10:12 AM
There are no issues here. Connecting USB to the chip won't do anything until the code which initializes the USB module is ran. For example, the bootloader will initialize USB. If you gate that code behind the VBUS connection, the chip will enumerate correctly regardless of when the data lines are connected. The device pulls the D+ high (or similar, depending on USB speed) to initiate the enumeration process. Nothing happens before that.
2025-11-14 10:12 AM
There are no issues here. Connecting USB to the chip won't do anything until the code which initializes the USB module is ran. For example, the bootloader will initialize USB. If you gate that code behind the VBUS connection, the chip will enumerate correctly regardless of when the data lines are connected. The device pulls the D+ high (or similar, depending on USB speed) to initiate the enumeration process. Nothing happens before that.
2025-11-14 10:39 AM
Thanks for quick reply.
So, regardless of fact that USB module of the mCU would be connected to the PC before other (core) parts of mCU would be supplied, enumeration will begin normally at the moment when supply to that parts will be provided. This includes also enabling pull-up resistor on D+ line.This includes also enabling pull-up resistor on D+ line.