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

LPC2387 with Keil uvison3

Posted by Gianluca on November 28, 2008
Good morning,
i'm try to port Freertos on LPC2387 micro. I created a new project for lpc2387 with LPC2300.s file and i copied all the files and dependencies from ARM7_LPC2129_keil_RVDS port. I also changed the function pvrSetupTimerInterrupt() with that in the file port.c in /source/portable/GCC/ARM7_LPC2000.
I changed also pvrSetupHardware(). There are something to change in portASM.s, portmacro.h o portable.h files ? There are other changes to be done ?
Thank to all


RE: LPC2387 with Keil uvison3

Posted by Dave on November 28, 2008
> LPC2300.s

If this is the C start up file then makes sure that it defines stacks for IRQ mode and Supervisor mode. Other modes too if you use them. Absolutely make sure that it switches to Supervisor mode before main() is called.

> pvrSetupTimerInterrupt() with that in the file port.c in
> /source/portable/GCC/ARM7_LPC2000

It might be better to use what is in the GCC/ARM7_LPC23xx folder.

Other than that it looks like you have what you need.

RE: LPC2387 with Keil uvison3

Posted by Gianluca on December 2, 2008
Hello Dave,
thanks for the answer.
I made the changes you suggested me, but i have the following problem: when the firmware enters in the function vTaskDelay it does't go out more... it loops in the function static portTASK_FUNCTION( pvrIdleTask, pvParameters). I don't no why...
have you any idea ?
thankyou


RE: LPC2387 with Keil uvison3

Posted by woops_ on December 2, 2008
is the tick interrupt working?

RE: LPC2387 with Keil uvison3

Posted by Gianluca on December 4, 2008
Hello woops_,
yes, the tick interrupt works. I places a breakpoint in vPreemptiveTick in portASM.c and the program goes in. I also made the following changes:
in LPC2300.s i added the line SWI_Addr DCD vPortYeld Processor
in portASM.c i changed the T0MACHBIT to 2 because pvrSetupTimerInterrupt use TOMR1.
Is there some else to verify ?
Thankyou very much

RE: LPC2387 with Keil uvison3

Posted by raedbenz on December 16, 2008
Hi Gianluca,,,
i am trying to do the same (port FreeRTOS on LPc23xx).
if u hare done , is it possible to have a copy of the code ? if not can u tell me wat things i have to change??
thanks
RaedBenz

RE: LPC2387 with Keil uvison3

Posted by FreeWill on January 21, 2009
I appreciate too, if we can have a sample project for LPC23XX or a step-by-step description about how to port from LPC2129 example to LPC23XX would help those who are suffering that cannot port to LPC23XX.
1 month praying is guaranteed :)


RE: LPC2387 with Keil uvison3

Posted by Richard on January 22, 2009
This page provides some info on moving from one dev board to another:
http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html

As far as moving from an LPC21xx to an LPC23xx here are some notes:

+ The timer setup is different on the LPC23xx so prvSetupTimerInterrupt() in port.c will need some modification. There is a GCC port for both the LPC21xx and the LPC23xx so inspect the differences in Source\portable\GCC\ARM7_LPC2000\port.c and Source\portable\GCC\ARM7_LPC23xx\port.c to find the differences.


+ The linker file needs changing to be correct for the LPC23xx. Keil comes with linker scripts for most LPC2000 devices so you just have to find the right one.

+ You may also like to see what differences there are in the startup code between the two GCC versions too, you have to be careful as some settings depend on the the revision of the chip you are using.

I don't think there should be much else to do.

Regards.



RE: LPC2387 with Keil uvison3

Posted by FreeWill on January 24, 2009
Thank you, it looks like I have to write my own port.
In Source\portable-\RVDS directory, we have an PortASM.s, do we make changes here as well?
I hope not.


[ 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