Skip to main content
Explorer II
Dec 1, 2025 7:17 AM UTC
Solved

Confusion about STM32H7S3I8T6 OTG_FS_VBUS, HSE, and VCAP

Hi! I'm confused about the wiring for some of the pins on the STM32H7S3I8T6: 

 

  1. Does the full-speed USB connection require an external high speed oscillator?
  2. There's a GPIO that senses VBUS from USB called "OTG_FS_VBUS." Currently, we have it pulled up to VBUS so that it will read high when USB is connected. However when USB isn't connected, it is left floating. Would that be ok?

 

Thank you so much for the help!

AScha.3
AScha.3Best answer
Super User
Dec 1, 2025 8:45 AM UTC

Hi,

1. no extra oscillator, just the HSE 

2. Never let a cpu pin float .  Better simply use a voltage divider , lets say: usb -2k - 3k -gnd ,

so at the 3k you get 3v ( = Vdd ), when usb connected. (100% save for the cpu and pulled down by 3k to gnd , if nothing connected.)

AScha3_0-1764578896713.png

 

If you feel a post has answered your question, please click on " Best Answer ".

2 replies

AScha.3
AScha.3Best answer
Super User
Dec 1, 2025 8:45 AM UTC

Hi,

1. no extra oscillator, just the HSE 

2. Never let a cpu pin float .  Better simply use a voltage divider , lets say: usb -2k - 3k -gnd ,

so at the 3k you get 3v ( = Vdd ), when usb connected. (100% save for the cpu and pulled down by 3k to gnd , if nothing connected.)

AScha3_0-1764578896713.png

 

If you feel a post has answered your question, please click on " Best Answer ".
ST Technical Moderator
Dec 1, 2025 10:57 AM UTC

Hi @ZitongW1 

1. FS OTG USB may require an HSE in host mode due to stricter clock accuracy requirements. In USB device mode, internal oscillators like HSI48 trimmed using CRS can be used without issues.

2. You may need to provide better details about your application (self powered or bus powered). I would recommend checking section 2.6 VBUS sensing detection in AN4879 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL