cancel
Showing results for 
Search instead for 
Did you mean: 

Debug message:Mon Apr 15, 2013 15:02:43: The stack pointer for stack 'CSTACK' (currently 0x20000BB8) is outside the stack range (0x20008F68 to 0x2000CF68)

gaojian
Associate II
Posted on April 15, 2013 at 09:06

I am debgging a program with STM3240G-EVAL in IAR. In debug mode, the program flies and when I stop the debug the message is : “Mon Apr 15, 2013 15:02:43: The stack pointer for stack 'CSTACK' (currently 0x20000BB8) is outside the stack range (0x20008F68 to 0x2000CF68) .�

Why and how to process it?
1 REPLY 1
Posted on April 15, 2013 at 13:31

a) You have some ridiculous local/auto variable allocation in one of your functions.

 ie { double foo[20000];

b) You have corrupted the stack, or stack pointer.

Fill the stack with some marker character so you can perceive the depth, add some break points, single step the code, to bisect and locate the issue.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..