VBus Sensing for self powered USB device using STM32C071CBT6
Hi,
I created custom board using STM32C071CBT6 MCU and using USB port in device only mode. I have connected VBuS sensing through potential divider circuit to GPIO PA10 of my controller. My device is self powered. I read some USB related articles from STMicro for other controllers and noticed that for self powered devices VBus sensing is mandatory and should be connected to PA9 as this pin has internal functionality of VBus sensing.
In my configuration I have disabled VBus sensing. However, my device is getting detected by host.
Do I have to enable VBus sensing as my device is self powered? If yes, then how it will impact functionality?
Should it be connected to PA9 for STM32C0xx also? Can I use PA10 with some code modifications, as my hardware is already developed?
I checked datasheet and reference manual of this MCU and could not find any reference of VBuS sensing through PA9.
Thanks,
Pradeep
