-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hard fault after a while, 2 UART #9148
Comments
Hi @ClementChotard can you try compiling with |
Hi @smlng thanks for replying. I started to test and it seems to work now! I will run more tests and keep you updated. |
Unfortunately, the problem remains the same... There is about 10 minutes before it crashes. I also increased the msgQ size that sends messages from the cb to the Thread. |
Can you try to share the same callback function in each Maybe you could share you minimal version of your application so we can try on our side ? |
@ClementChotard can you also try to print a |
I figured out, the problem comes from too much print as suggested by @smlng. I was printing every message that it received and eventually it ends up by crashing the system. Thanks, problem solved. |
Hi,
I have a problem when using 2 USART on STM32f407. I receive some data from both USART which triggers each its callback function. I tested two possibilities in the cb, either it's sending each received character by IPC to a Thread or it's saving the full message in an array before sending it to the Thread. Either way, a hard fault error triggers after a while. When sending each character individually, it's lasting longer before crashing. Here is the trace:
And here is the debug result:
A similar issue was discussed here: #5001
Thank you for your help
The text was updated successfully, but these errors were encountered: