Skip to main content
Explorer II
December 1, 2025
Solved

Confusion about STM32H7S3I8T6 OTG_FS_VBUS, HSE, and VCAP

  • December 1, 2025
  • 2 replies
  • 432 views

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!

Best answer by AScha.3

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

 

2 replies

AScha.3
AScha.3Best answer
Super User
December 1, 2025

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 ""Accept as Solution""."
Technical Moderator
December 1, 2025

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 Accept as Solution on the reply which solved your issue or answered your question.Best regards,FBL