FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [September 2010 Threads] NXP-LPC3250 Except. Handler preempt schedulerPosted by Ronnie Zurmöhle on September 8, 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
RE: NXP-LPC3250 Except. Handler preempt schedulerPosted by MEdwards on September 8, 2010 Have you tried it without the debug_putchar() calls? Or maybe having a gatekeeper task that is the only one that ever makes debug_putchar() calls with the other tasks sending their messages to the gatekeeper?
RE: NXP-LPC3250 Except. Handler preempt schedulerPosted by Ronnie Zurmöhle on September 9, 2010 Yes if have tried it without. If i run the idle task only the Exception occures at first System Tick. I think it depends at a timing(interrupt) problem.
RE: NXP-LPC3250 Except. Handler preempt schedulerPosted by Richard on September 9, 2010 There is no official 3250 port, so presumably you put it together yourself. In which case I'm afraid I have to conclude there is an issue in your port code.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|