USB Busy when transmiting data

stm32stm32f0usbusb deviceusb-host

WHat should I do when I am sending data using USB, when the callback in my firmware gives me USB BUSY?

Once, I received USB Busy state, I could no longer send data to my host from my firmware, but my host could still send data to my firmware and I am able to read it.

What should I do to clear the USB Busy state? and why is it in USB busy?

Best Answer

I have finally solved this problem, be replacing the entire STM32 HAL driver for USB CDC back to the Standard Peripheral library for USB CDC!

and there is no more problem with it! I run into many issues using HAL driver from STM32, it is very buggy! if you encounter problem with it, try to switch back to Standard Peripheral library!