Content originally posted in LPCWare by fentechnt on Mon Feb 15 06:30:37 MST 2010
I did wonder about this, but I don't that is it.
The map file shows that the stack top (_vStackTop) is at 0x10001ff0 and the last variables are at 0x10000710. There is no dynamic allocation used, so the heap should be unused (starts at 0x10000710).
So there should be plenty of stack available, although I must confess I have no idea whether the interrupt stack is allocated separately or what...
When stepping through the code, the stack pointer is typically somewhere around 0x10001f50 - again indicating that there is plenty stack available.