mr4a494d4c wrote on Tuesday, July 19, 2011:
Project files:
LPCXpresso Example Projects for LPC11C24 V2.0 (Jan 27, 2011)
http://ics.nxp.com/support/lpcxpresso/
Development Kit: LPCXpresso LPC11C24 REV A board.
IDE / Compiler: code_red Red Suite 3 (NXP Edition) v3.6.3
I commented out everything except tasks:
vTaskLEDBlinker1() and vApplicationIdleHook()
FreeRTOS 5.3.0, blink task and idle task running.
FreeRTOS 6.1.1, blink task and idle task running.
FreeRTOS 7.0.1, blink task runs one time and idle task is still running.
In tasks.c if I change:
PRIVILEGED_DATA static portTickType xNextTaskUnblockTime = ( portTickType ) portMAX_DELAY;
to
PRIVILEGED_DATA static portTickType xNextTaskUnblockTime = 0;
both blink and idle tasks run just fine in FreeRTOS 7.0.1
Not sure what would cause this or where to look?
Some tests I did:
Setting a few breakpoints show this sequence of events out of reset:
main();
vTaskStartScheduler();
vTaskLEDBlinker1();
vApplicationIdleHook();
xPortSysTickHandler();
After that led blink task is not called again using FreeRTOS 7.0.1 but idle task is still running.
I commented out __WFI(); in the idle task with same results.