AnsweredAssumed Answered

Endless interrupts in VCP USB STM32L

Question asked by ofri.igal on Feb 12, 2015
Latest reply on Feb 18, 2015 by ofri.igal
Hi,

I use the USB VCP (based on VirtualComport_Loopback) in STM32L152VE.
I disabled suspend ("__IO bool fSuspendEnabled = FALSE;" in usb_pwr.c).

If the USB cable is disconnected I get endless suspend interrups (ISTR_SUSP) and the function "Resume(RESUME_LATER);" in usb_istr.c is constantly executed. how do I solve this?

also bDeviceState value is always "CONFIGURED" even after USB cable disconnection.

Ideas?

Outcomes