P.S. I couldn't seem to cause a trap using the smart trap example in the NetburnerPCTools doc, so I just wrote a recursive function to blow the stack
Code: Select all
volatile int BlowStack(int depth)
{
int stackVar = depth+1;
iprintf("\r\ndepth = %d", stackVar);
return BlowStack(stackVar);
}
Code: Select all
Blowing Stack
depth = 1
depth = 2
.
.
.
depth = 34
depth = 35
depth = 36
depthWaiting 2sec to start 'A' to abort