Skip to main content
Associate
November 14, 2025
Solved

Enumeration_USB_VBUS

  • November 14, 2025
  • 1 reply
  • 207 views

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!

Best answer by TDK

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.

1 reply

TDK
TDKBest answer
Super User
November 14, 2025

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.

"If you feel a post has answered your question, please click ""Accept as Solution""."
D3janAuthor
Associate
November 14, 2025

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.