-
1. Re: Is there a stack overflow indicator in PSoC 3/5
user_14586677 Feb 5, 2014 4:41 AM (in response to akash.gupta) -
2. Re: Is there a stack overflow indicator in PSoC 3/5
user_1377889 Nov 20, 2012 10:39 AM (in response to akash.gupta)Busting the stack on a 8051 core as in a PSoC3 is an easy thing because it is so small. You can pre-load the stack with some defined values at start of main() and check after some time of running with the debugger if the stack is approaching to its limit.
Have a look at any warnings and take care when using pointers to functions which may lead to errors in PSoC3 environment when not explicitely cared for, they may produce random errors.
Keep an eye on heap usage as well.
Bob
-
3. Re: Is there a stack overflow indicator in PSoC 3/5
user_1377889 Nov 20, 2012 11:00 AM (in response to akash.gupta)In Creator you can set a watchpoint at the top of stack which will interrupt your program when that location is accessed.
Bob
-
4. Re: Is there a stack overflow indicator in PSoC 3/5
user_14586677 Nov 20, 2012 11:10 AM (in response to akash.gupta)A couple of interesting references -
http://www.keil.com/support/docs/192.htm
http://www.keil.com/forum/7226/
Regards, Dana.
-
5. Re: Is there a stack overflow indicator in PSoC 3/5
robert.seczkowski Mar 15, 2013 10:56 AM (in response to akash.gupta)But where this small stack is?
Is it here:
?STACK SEGMENT IDATA
RSEG ?STACKor here:
XBPSTACK EQU 1
XBPSTACKTOP EQU CYDEV_SRAM_SIZE - 3 ;Keep in mind additional variables declared aboveall is taken from KeilStart.a51