2013-04-15 12:06 AM
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?2013-04-15 04:31 AM
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.