Skip to main content
igal
Associate III
February 12, 2015
Question

Endless interrupts in VCP USB STM32L

  • February 12, 2015
  • 4 replies
  • 1113 views
Posted on February 12, 2015 at 13:23

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?

#suspend #stm32-usb-vcp
This topic has been closed for replies.

4 replies

igal
igalAuthor
Associate III
February 15, 2015
Posted on February 15, 2015 at 09:05

no one knows why there are endless suspend interrupts?

tsuneo
Associate II
February 15, 2015
Posted on February 15, 2015 at 12:24

No one knows whats the library you are working on.

And then, no one can answer.

There are so many libraries for ST's MCU, STM32_USB-Host-Device_Lib_V2.1.0, Cube, mbed, Keil, IAR, etc.

Tsuneo

igal
igalAuthor
Associate III
February 18, 2015
Posted on February 18, 2015 at 14:04

Sorry, you are right

I use STM32_USB-FS-Device_Lib_V4.0.0 under IAR