Possible to detect stack overrun?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by stuartreynolds on Thu Apr 05 10:31:53 MST 2012
I'm getting some flaky behavior in a program when I increase a buffer size to cause my binary to closely fit what's available on my uC's (LPC1313).
I have a theory that the stack overflows and is causing memory corruption. Is there a way to test this? (e.g. set a value at highest allowable stack location and check it periodically, or during a crash).

- Stu