2024-11-13 07:18 AM
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.
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?