hicon wrote on Wednesday, September 08, 2010:
Hello All.
I’m trying to run FreeRtos on NXP_LPC3250.
I use the Crossworks compiler and my debug-interface is an Olimex jtag emulator.
I have created 2 simply Tasks which only puts an debug char " i.g. debug_putchar(‘3’);".
Using the non-preemtive scheduler works fine. Task switch in FIFO occures in an infinit loop.
In preemtive mode triggered on a Timer0 results in an Hard-Fault exception “undef handler” respectively at an critical memory location.
Each Task will only run for one Time in creating order at same priority for each task.
The tasks switch correctly at the RTOS-Tick.
If I add one more task - it goes through 3 tasks…through 4 tasks…5 tasks… and so on.
void vLEDToggleFunction_3(void *pvParameters)
{
const char *pcTaskName;
pcTaskName= “Task 3 is running”;
xLastWakeTime = xTaskGetTickCount();
while(1)
{
char temp;
debug_putchar(‘3’);
temp = xLastWakeTime;
debug_putchar(temp);
debug_putchar(’ ');
}
}
Some idea?
Thanks