Quality RTOS & Embedded Software

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


Loading

LPC23xx port with Keil/RV compiler

Posted by Riccardo Cusatelli on April 13, 2010
I'm trying to port FreeRTOS to the LPC2388 (it should be compatible with all others LPC23xx). I'm using the Keil uVision 4 and the KEIL MCB2388 board.

I started from the demo for the LPC2129 because I found harder to import the GCC project.
However I'm in trouble: the processor goes in "Abort Mode" after 2 seconds and I don't know why..

Has somebody already done this port?

Thanks,
Riccardo Cusatelli

RE: LPC23xx port with Keil/RV compiler

Posted by Richard on April 13, 2010
I don't think this will be the cause of your problem, and I assume you know already as it runs for a few seconds, but the LPC23xx has a different timer set to the LPC2129. If you compare the two LPC2xxx ports in the Source/Portable/GCC directory you will see the two differences.

How far is the code getting? Is the scheduler actually starting to run your task code?

Regards.

RE: LPC23xx port with Keil/RV compiler

Posted by Riccardo Cusatelli on April 13, 2010
Thanks for reply.
The problem was a task which wasn't a endless cycle.. D'OH!!
Fixed that, now freeRtos works perfectly! Tomorrow I'm testing it better.
Can I put the port in the "interactive" section when I'll finish? It could be useful for other people.

Now I've a question: Is correct that if a thread "return"s, the system crash?

Regards

RE: LPC23xx port with Keil/RV compiler

Posted by Richard on April 13, 2010
“Can I put the port in the "interactive" section when I'll finish? It could be useful for other people.”


Yes - please do.

“Now I've a question: Is correct that if a thread "return"s, the system crash?”


Yes that is the expected behaviour. A task must never be allowed to run off the end of the function that implements it. If you want a task to exit its function then you must include a call to vTaskDelete( NULL ); before the closing bracket.

Having tasks automatically be deleted if they run off there function is possible, but the implementation would have to be port specific, and increase the code size for no good reason. So its preferred just to use the existing and portable vTaskDelete() function explicitly.

Regards.


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


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

Latest News

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

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

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


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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