2021-09-13 11:34 AM
Hi,
I have a SPC570S MCU running FreeRTOS and is connected to a CAN bus. I came across an issue where the MCU freezes randomly, when there traffic in the CAN bus before is it switched on. Could someone help me in this matter. This happens randomly, and I have isolated the problem by uploading two code stacks, one with CAN and one without.
Nisal
Solved! Go to Solution.
2021-09-14 02:27 AM
Hello ,
you should check the state of your stack.
Could you increase the stack size of your application ?
check the registers before your crash R13,R14,PC with the debugger
Best Regards
Erwan
2021-09-13 11:09 PM
Have you try disable preempition?
2021-09-14 02:27 AM
Hello ,
you should check the state of your stack.
Could you increase the stack size of your application ?
check the registers before your crash R13,R14,PC with the debugger
Best Regards
Erwan
2021-09-14 05:19 AM
Hi Erwan,
I will try this. Is it okay to use the FreeRTOS function uxTaskGetStackHighWaterMark() to check the size.
I have 4 tasks running.
Nisal