Strange! Can you single step into the function and let me know what assembly instruction is causing the fault?
I assume you are using the default security settings (ThreadX and your app are running in Non-Secure mode).
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I am encountering an hardfault when sending a message from one thread to another. With a debugger I could point the hardfault to the following instruction in the tx_queue_send function. The hardfault occurs upon reaching the instruction and the following ones in the function itself are not executed.
_tx_thread_system_resume(thread_ptr);
However, the only happens when compiling in Debug. Release builds work fine, with no hardfault at that point.
Is there any known errors in Threadx that could lead to such an HardFault ?
I am using a LPC55S69 microcontroller.
Thank you in advance
Strange! Can you single step into the function and let me know what assembly instruction is causing the fault?
I assume you are using the default security settings (ThreadX and your app are running in Non-Secure mode).
Jean LAUNOIS Did you get a chance to see suggestions from Scott?
In addition to the above suggestions, you can try to check the following and see if it helps.
These are some possible causes of your hardfault when sending a message from one thread to another in ThreadX. You should try to isolate the issue by debugging the code and looking for any memory access issues, timing issues, or thread priority issues that may be causing the hardfault.
If you need further help in this matter, please comment in the below section and we are happy to discuss!
If this answers your query, do click Accept Answer and Yes for this answer as helpful. And, if you have any further query do let us know by commenting in the below section.