mshedeed wrote on Sunday, May 22, 2011:
Hello,
I’m Using the freeRTOS V.7.0.1, and have updated the LED Demo example which works under “HCS12_CodeWarrior_banked”.
Here is the updated main:
xTaskCreate( myTask1, “LED1”, configMINIMAL_STACK_SIZE, NULL, 1, NULL );
xTaskCreate( myTask2, “LED2”, configMINIMAL_STACK_SIZE, NULL, 1, NULL );
xTaskCreate( myTask3, “LED3”, configMINIMAL_STACK_SIZE, NULL, 1, NULL );
xTaskCreate( myTask4, “LED4”, configMINIMAL_STACK_SIZE, NULL, 1, NULL );
/* Must be the last demo created. */
vCreateSuicidalTasks( mainDEATH_PRIORITY );
/* All the tasks have been created - start the scheduler. */
vTaskStartScheduler();
And each Task is simply implemented as:
static void myTask1( void *pvParameters )
{
for( ;; )
{
//My Code
}
}
The problem here that I can run this example using CodeWarrior V 4.5, but it I can’t do that using CodeWarrior V 4.6 or 4.7…
The OS sucks at only one task and there is no switching between the tasks…
Could anyone have an explanation for that?