Stack violation: stack pointer outside stack area.
Cause: Data bus error (PC value stacked for the exception return points to the instruction that caused the fault).Bus Fault Address: 0xDFFF2EFF
How can I resolve this error?
Stack violation: stack pointer outside stack area.
Cause: Data bus error (PC value stacked for the exception return points to the instruction that caused the fault).Bus Fault Address: 0xDFFF2EFF
How can I resolve this error?
Hi,
The error indicates stack overflow. Have you tried to increase the call stack size in your project to see if it helps? Let me know what toolchain/IDE you use if you're unsure about how you do it.
Hi
The stack is already 8192. I tried to make it bigger, but it still has no effect.
Hi,
Yes, 8192 is the default, but some applications will require more. It might also be a bug in your app. E.g., if it has called memcpy() or memset() with an invalid size input. Can you try to check where the stack pointer was when the fault exception was raised? You may also set up the Stack guard to catch the overflow earlier. That will make it easier to find out where the overflow occurred. Just remember to run mpu_init() first so the MPU gets enabled.
Hi,
Yes, 8192 is the default, but some applications will require more. It might also be a bug in your app. E.g., if it has called memcpy() or memset() with an invalid size input. Can you try to check where the stack pointer was when the fault exception was raised? You may also set up the Stack guard to catch the overflow earlier. That will make it easier to find out where the overflow occurred. Just remember to run mpu_init() first so the MPU gets enabled.