OK, changing the stack fill byte solves the problem. Now then, can you explain how such a subtle change did the trick?
For the record, I've all included the debug and gdb_trace probes from the original version.
Debug probe:
Stopped: Breakpoint #1
read A5A5A5A5[4] (4*1) failed - Em(12). System rejected access at location 0xFFFFFFFF - verify population of memory and peripherals
read 1000055C[4] (1*4) failed - Em(12). System rejected access at location 0xFFFFFFFF - verify population of memory and peripherals
read 1000055C[4] (1*4) failed - Em(12). System rejected access at location 0xFFFFFFFF - verify population of memory and peripherals
read 1000055C[4] (1*4) failed - Em(12). System rejected access at location 0xFFFFFFFF - verify population of memory and peripherals
Stopped: Locked-up, Sleeping, In-reset (Was Reset) [Reset from Unknown]: VectorCatch:IRQ47 (PC unknown: stack=0xFFFFFFFF) (VectorCatch,Breakpoint,Watchpoint,EDBGRQ)
gdb_trace probe
366,052 39-exec-continue --thread 1
366,063 39^running
366,065 *running,thread-id="all"
366,079 (gdb)
366,172 @"Task 2 is running\n"
366,317 @"Task 1 is running\n"
366,473 =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000\
029a",func="vTask1",file="../main.c",fullname="C:\\Users\\owner\\Intellimetrix\\Clients\\GoGogh\\RT \
Programming\\workspace\\tasking_model-1\\main.c",line="87",thread-groups=["i1"],times="1",original-l\
ocation="C:\\Users\\owner\\Intellimetrix\\Clients\\GoGogh\\RT Programming\\workspace\\tasking_model-\
1\\main.c:87"}
366,591 ~"\nBreakpoint "
366,611 ~"1, vTask1 (pvParameters=<error reading variable: Cannot access memory at address 0x1000055\
c>) at ../main.c:87\n"
366,612 ~"87\t\t\tfor( ul = 0; ul < mainDELAY_LOOP_COUNT; ul++ )\n"
366,613 *stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0000029a",func="vTask\
1",args=[{name="pvParameters",value="<error reading variable: Cannot access memory at address 0x1000\
055c>"}],file="../main.c",fullname="C:\\Users\\owner\\Intellimetrix\\Clients\\GoGogh\\RT Programming\
\\workspace\\tasking_model-1\\main.c",line="87"},thread-id="1",stopped-threads="all"
366,613 (gdb)
366,622 40-stack-info-depth --thread 1 11
366,628 40^done,depth="2"
366,628 (gdb)
366,642 41-thread-info 1
366,669 41^done,threads=[{id="1",target-id="Thread 1.1",details="runnable",frame={level="0",addr="0x\
0000029a",func="vTask1",args=[{name="pvParameters",value="<error reading variable: Cannot access mem\
ory at address 0x1000055c>"}],file="../main.c",fullname="C:\\Users\\owner\\Intellimetrix\\Clients\\G\
oGogh\\RT Programming\\workspace\\tasking_model-1\\main.c",line="87"},state="stopped"}]
366,669 (gdb)
366,686 42-stack-list-frames --thread 1
366,690 42^done,stack=[frame={level="0",addr="0x0000029a",func="vTask1",file="../main.c",fullname="C\
:\\Users\\owner\\Intellimetrix\\Clients\\GoGogh\\RT Programming\\workspace\\tasking_model-1\\main.c"\
,line="87"},frame={level="1",addr="0x00000000",func="??"}]
366,690 (gdb)
376,324 43-exec-continue --thread 1
376,331 43^running
376,333 *running,thread-id="all"
376,333 (gdb)
376,585 ~"\nProgram received signal "
376,587 ~"SIGSTOP, Stopped (signal).\n"
376,591 ~"0xffffffff in ?? ()\n"
376,591 *stopped,reason="signal-received",signal-name="SIGSTOP",signal-meaning="Stopped (signal)",fr\
ame={addr="0xffffffff",func="??",args=[]},thread-id="1",stopped-threads="all"
376,592 (gdb)
376,612 44-stack-info-depth --thread 1 11
376,616 44^done,depth="1"
376,623 (gdb)
376,652 45-thread-info 1
376,660 45^done,threads=[{id="1",target-id="Thread 1.1",details="runnable",frame={level="0",addr="0x\
ffffffff",func="??",args=[]},state="stopped"}]
376,660 (gdb)
Thanks.