What bit in what register can be used to know when and if a USB cable is plugged in?
I have VBUS sensing enabled and when I step through the call to HAL_PWREx_EnableUSBVoltageDetector(), you'd expect a difference in the bit states in the
OTG_HS_GCCFG register but there is no difference whether the cable is plugged in or not.
I find it especially disconcerting that when the DCDEN bit is set, the DCDET bit is also set whether or not a USB cable is plugged in or not. This is supposed to tell me whether or not it see data lines connected. What am I missing. I want to use the VBUS sensing on PA9 to know if a USB cable is plugged in. What do I need to do?
