AnsweredAssumed Answered

Stm32L0 CDC Tx Issue

Question asked by huveneers.ronald on Jul 21, 2015
Latest reply on Jul 22, 2015 by huveneers.ronald
I am having some issues with the CDC Transmit Library.

I have a STM32l0-discovery board, when the device is powered through the st-link usb connector. Whenever I transmit data over the Virtual Comport using CDC_Transmit_FS the µC just hangs.

If I connect the User USB Port to my machine it doesn't hang, even when the device isn't open. Does anybody have any experience with this, I see 2 solutions, discovering if it is connected, or fixing the bug, in some thread I saw that there was a while (pCDC->TxState) state but that is not available in this one so I can't exit that loop after a while.

I used STM32CubeMX 4.7.1 to generate the code for SW4STM32 toolset.


Outcomes