Hello all,
I'm thinking about implementing the above in a system I'm working on, does anyone have a good strategy for doing this? One possibility is having an area of RAM (beyond the stack "area") filled with known data, if any of that data gets trashed then assume the stack has overflowed. What are the pros and cons of this? Another idea is to actually watch the SP, but one drawback is if I check this at a predefined point in the code, then it's possible the worst case scenario will occur between checks? Any better ideas?
Regards, Richard.