2024-07-05 8:18 PM
Hi, Everyone
I use STM32F103C8T6 send data by using USB CDC. After flash program, application can run properly but after random minute(Not exceed 15 minute) I found that CPU halted.
In while loop just blink LED and send data by USB CDC
My question is what can cause CPU halted and what I should inspect first.
Thank you for answer and sorry for my English.
2024-07-05 10:49 PM
You should inspect your code, of which we know exactly nothing.
If, by any chance, you use ST HAL-based USB device stack, sending data from the event loop causes the USB stack to hang. Search the forum for (many) topics on that matter.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.