AnsweredAssumed Answered

STM32F4 USB Connection detection

Question asked by sebastian.ro on Jan 22, 2018

Hello guys,

 

I'm using STM32F446 along with ST's USB library in a project with USB CDC class. The USB used is the FS one. What I would like to do is detect the end of a USB connection (not based on VBUS). I was wondering if this is possible and how because it seems to me that it is not. The CDC_Init_FS is never entered upon removal of the USB cable. If I take a closer look in the IRQ, I see that the Resume and Suspend interrupts are entered infinitely (Suspend then Resume, then Suspend, etc).

 

Did any one else have this problem?

 

Best regards,

Sebastian

Outcomes