I have run into a problem where I believe my stack is overflowing. The reason I am inclined to think this way, is due to the following:
1) Compile code, dump into the device: - no activity from the device (I am expecting an 'I am alive' message)
2) In this situation, I increased the stack size by 10 bytes, recompiled and dumped to the device, and the problem went away.
3) Tried the above two steps 10 times, back and forth, and can reproduce the problem reliably, and fix it reliably.
I want to see the stack falling over, how do I do this?
I am currently using an M16 Microcontroller, with 2K RAM (30 bytes left), 256 Bytes Stack size. The IAR Workbench that I am using, does not have the call graph utility.
Are there other ways to do this - check the stack falling over and by how much in code?
Any help will really be appreciated.