AnsweredAssumed Answered

Loop in USB_IRQHandler if unplugged

Question asked by Frederic on Aug 29, 2016
Latest reply on Dec 1, 2016 by ramirez.jaime
Hi,
I'm using the USB port in CDC with STM32F072 device. I'm using the F0 STM32Cube package version 1.5.0

At power up, if the device in not USB connected to a host, it goes in infinite loop in the USB_IRQHandler function and stall the main application execution: the LSOF ans ERR flag in the FNR register always pop-up. If I connect the device to host, the device is successfully detected and main application run as well. If I disconnect, no infinite loop in USB_IRQHandler function...

An idea to solve this problem?

Outcomes