cancel
Showing results for 
Search instead for 
Did you mean: 

USB host (USB_OTG_HS) - "Activate_VBUS" has no effect?

BMcDo.3
Associate III

Using STM32CubeMX (v6.12.1) with USB_OTG_HS enabled (as host) on an STM32F4.

On our device, we have the only OTG_HS_VBUS pin connected to the USB VBUS, and it is working correctly as a USB host. I was investigating if I can repurpose this pin (I guess probably not)... which led me to investigating the options in CubeMX.

The anomaly: changing whether the "Activate_VBUS" option is checked in CubeMX makes no difference in the generated firmware. (It only changes one line in the .ioc file.) And I can't find anything in the firmware that indicates the pin is being used.

BMcDo3_0-1731510870164.png

BMcDo3_1-1731511045503.png

 

Questions:

1. Is this a CubeMX bug? What does the setting do?

2. Is this pin actually being used?

3. If so, is there something in the firmware that indicates and/or controls that?

0 REPLIES 0