cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 USB Connection detection

andrei
Associate II
Posted on January 22, 2018 at 15:33

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

#usb-fs #stm32-f4
0 REPLIES 0