Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

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

while(1)
{
char temp;
debug_putchar('3');
temp = xLastWakeTime;
debug_putchar(temp);
debug_putchar(' ');
}
}

Some idea?

Thanks


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.

Regards.


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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists