Question
USB OTG CDC Device busy when trying to send
Posted on September 17, 2016 at 15:15
hey guys,
so I am using an STM32F411 as an USB device. It's connected via VCOM to a PC. I am using HAL V2.4.1 from19-June-2 In general it works good, but when I quickly connect and disconnect the usb plug on the device for a few times in a row and then re-connect with my terminal PC tool the device is no longer sending data becauseUSBD_CDC_TransmitPacket returnsUSBD_BUSY only!
I have no idea how handle this case. Should I somehow reset the USB driver? Is this an indication that s/t is messed up with my implementation? Why is it busy? What can cause such a state?
Any help is appreciated. Let me know if you need more information on this.