8 years, 7 months ago.

rtx crash during interrupt

I just met this problem, when isr happens during rt_switch_req, it has a really high chances to over write another stack's pointer, and cause mbed_error eventually.

Seems the invoked stack is too long, and eventually caused data overwriten, Is there any recommended size for initial sp stack which is served for isr? Or any method to avoid this kind of problem in complilation stage? This really caused me a lot of time, hope it will no longer happen on any other's program.

/media/uploads/yunfei/isrrtx.png

/media/uploads/yunfei/2currentstack.png

/media/uploads/yunfei/3stackpointer.png

Question relating to:

Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard. cmsis, rtos, RTX
Be the first to answer this question.