Question
USB: how to manage disconnect and re-connect the cable
Posted on December 01, 2014 at 09:48
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