AnsweredAssumed Answered

USB: how to manage disconnect and re-connect the cable

Question asked by bruzzi.manfredo on Dec 1, 2014
Latest reply on Dec 1, 2014 by bruzzi.manfredo
Hello all,

my application is based on stm32l152, I use StdPeriph_Driver and STM32_USB-FS-Device_Driver.
USB transfer works fine until I disconnect usb cable. After disconnecting the firmware stuck running just interrupt drivers, the main stops suddenly.

After reconnecting cable main program get to work but the usb PC connection is cannot be estabilished. 

What operations should I do just after removing usb cable in order to make everything works?

Kind regards