cancel
Showing results for 
Search instead for 
Did you mean: 

Enumeration_USB_VBUS

D3jan
Associate

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!

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

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

View solution in original post

2 REPLIES 2
TDK
Super User

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

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.