I'm using a x1232 part with 8k flash and 256 bytes of ram.
I have tracked down problems that stem from stack overflows.
In my latest version I've eliminated a couple calls off the stack,
but I think I may still be having problems from it. It's hard to track
down and debug, as interrupt routines are certain points seem to be
where it occurs.
I'm looking for suggestions to help avoid it. It seems that unused local
variables still use stack space. This surprised me.
Can I test the SP in code against _end or something to see if stack over
is occuring in an interrupt routine.
One question that would likely help, is that I have config settings in
information area that have a shadow copy in ram. If I can eliminate the
copy in ram, that would free up some stack space. I now erase the
entire section to rewrite it, so if the ram copy is gone, I need another
way to update it.
Any suggestions welcome.
-Kelly