There are a number of threads around in these forums saying that the Stack Monitor functionality has never been implemented fully and hence the menu entry in AVR Studio is grayed out. However, I am running code in the simulator (on a simulated Mega168) and I keep getting the error message "Excessive stack overflow. Simulation stopped." or words to that effect. It seems as though some kind of stack monitor is indeed running.
I don't believe my stack has overrun when I get this message, but my program does mess about with the stack pointer a lot because I am running an RTOS. I'm possibly doing this in a slightly different way to most RTOS systems, as mine is in C++ and a task object contains its own stack. Therefore the stacks are not all at the top of memory, but are dotted around memory wherever the corresponding task object has been allocated (in theory this could even be on the stack of another task!).
So to my questions - does anybody know:
Can I switch off this "Stack Overflow" error, or at least convert it to a warning that does not stop the simulator?
What gets monitored so as to trigger this message?