on
2021-05-18
9:21 AM
- edited on
2025-08-01
7:05 AM
by
Laurids_PETERSE
For handling communication of USB CDC in device mode using legacy STM32 USB libraries are important 3 functions located in file usbd_cdc_if.c:
Please, check examples in STM32CubeMx repository.
Finally! lets hope CDC_TransmitCplt_xS works, i was hardcoding a halDelay(); after each transmitt transaction.
ill give it a try and let you know
Hi Javier,
Did you have some success using the TransmitCplt callback ? My project is stuck with the same problem as yours, stopping Transmission after a while, even with small data amounts (a few bytes every second....). The callback works for a few minutes at best, then stop being called. Nothing more until I reset the board. Is there a running condition leading to this bug, and a workaround ??