Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


NXP-LPC3250 Except. Handler preempt scheduler

Posted 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();

char temp;
temp = xLastWakeTime;
debug_putchar(' ');

Some idea?


RE: NXP-LPC3250 Except. Handler preempt scheduler

Posted 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 scheduler

Posted 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 scheduler

Posted 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.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers





STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner