We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Does anyone know how I can detect if my USB device is connected to a Host or not?
Thx Steven
Yes, that is because of board design, there is USBLC6-4 chip which serves for protection of USB lines but combined with schottky diode D2 or D3 it prevents VBUS voltage to drop low when USB cable is disconnected and that is the reason why driver can not recognize the disconnect event thus it never provides it to middle layer which does not reset the configured information and keeps returning "true" on USBD_Configured.