This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Stack violation: stack pointer outside stack area.

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?

Parents Reply Children
  • 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. 

Related