Skip to main content
Visitor II
November 14, 2025
Solved

Enumeration_USB_VBUS

  • November 14, 2025
  • 1 reply
  • 205 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!

    This topic has been closed for replies.
    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

    TDKAnswer
    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.

    D3janAuthor
    Visitor II
    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.