dsPIC target initialization

I’m using freertos v4.1.2 on a dsPIC target.  The RTOS and demo applications start up fine, but then target halts at PC zero. I’ve checked around at various things like timer, heap, parport, etc.  All appears well. This may be a timing related problem. it seems like setting breakpoints in the initialization helps. I’m new to freertos.  Any ideas on how to diagnose this? Cheers!

dsPIC target initialization

When you say the RTOS and demo start up then halt at zero – do you mean they run for a while then stop for no apparent reason, with the PC set to zero?  Can you give more info?