Question about VBUS behavior in STM32 USB OTG and impact of externally supplied VBUS
Hello,
I would like to confirm how VBUS behaves in STM32 USB OTG depending on the Host/Device mode.
Specifically, I would like to ask the following:
When STM32 is configured as Host mode, should the STM32 source 5 V onto VBUS?
When STM32 is configured as Device mode, does it only sense/monitor VBUS as an input?
Is this behavior handled automatically by the internal OTG controller, or does it require an external VBUS power switch or additional external circuitry?
Additionally, I would like to ask about a hardware configuration where an external 5 V supply is always present on VBUS, regardless of the STM32 Host/Device configuration.
In this case, I would like to confirm:
Whether this could cause any issues when STM32 operates in Host mode
Whether it could affect Host/Device role detection or OTG behavior
Whether USB enumeration and normal data communication would still function correctly
In other words, I would like to know whether a design where VBUS is always supplied by an external 5 V source is suitable for STM32 USB OTG operation, and what the recommended hardware implementation for VBUS control is.
Thank you.


