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

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 ]    [ 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