stm32H743,micropythonV1.23, Coroutines suddenly pause, resume automatically after plugging in USB #18305
Unanswered
chiyu-Charon
asked this question in
Core Development
Replies: 1 comment 1 reply
-
|
Have you tried connecting the RX pin of a USB-serial adapter to the UART TX pin that's used for the REPL? This way you could monitor any printing or logging that leads up to the hang without plugging in the USB connector. You don't say which board you have, but on the NUCLEO-H743ZI the REPL goes through UART3 and the ST-Link debugger chip, which might have something to do with the problem. On that board you could also then disable the ST-Link by putting a jumper on J1, so if the ST-Link is doing something funny you could find out. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a device running about twenty coroutines, primarily responsible for gathering various sensor statuses via CAN, UART, and I2C. The device operates normally for a period of time, but after an unpredictable period of time, the entire program appears to pause unexpectedly. Upon capturing packets, I notice that all communications have been Paused.
At this point, I plug in the USB cable and use a serial terminal tool to check for any potential issues or unexpected exceptions. However, as soon as I plug in the USB cable, the program resumes running without any abnormalities or error messages being logged.
I have verified that there is always plenty of memory available, and the power supply remains stable throughout this occurrence.
Has anyone encountered a similar problem? Could you provide some ideas or steps for troubleshooting the issue?
Beta Was this translation helpful? Give feedback.
All reactions