I tried to use the demo application of FreeRTOS for PIC24 and I couldn’t get it worked.
I am using the Explorer 16 board with the PIC24FJ128GA010 PIM. I think this is the scenario used in the demo application. The difference is that I am using the MPLAB version 8.10 & the compiler C30 version 3.10.
I can compile the whole project without errors, programming the board, starting the application and then nothing happens (no leds activity, no LCD messages and no UART activity). Debugging the application with ICD2 I see that the application is arriving at the following point (program stack):
main.c vTaskStartScheduler() Line 181
tasks.c xPortStartScheduler() Line 1051
port.c asm volatile ( "return" ) Line 296 inside xPortStartScheduler function
After this, it seems target continues working (I can do some "step into" instructions and program counters changes) but after some of these steps, the program restarts.
Any idea of what can happen?