AnsweredAssumed Answered

STM32F2 VCP Tx Handling USBD_BUSY

Question asked by alex.john on Nov 26, 2014
Latest reply on Dec 3, 2014 by qwer.asdf
I am using VCP firmware from STM, but I have a problem when I am transmitting my data using the CDC class

I am sending data from my firmware to my PC, if I did open the serial port in my PC side, and i am still sending data, i will be getting USBD_BUSY from USBD_TransmitPcket function..

and when I open my serial port from PC now, my PC side will hang!

How do i handle the USBD_BUSY?
Is there anyway I can check the status of the USBD state? if it is busy or not?

Outcomes