LPC2387 with Keil uvison3

housebig wrote on Friday, 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

 

davedoors wrote on Friday, 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.

housebig wrote on Tuesday, December 02, 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

  

woops_ wrote on Tuesday, December 02, 2008:

is the tick interrupt working?

housebig wrote on Thursday, December 04, 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

raedbenz wrote on Tuesday, 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

freewill78 wrote on Wednesday, 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 :slight_smile:

rtel wrote on Thursday, January 22, 2009:

This page provides some info on moving from one dev board to another:

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.

freewill78 wrote on Saturday, 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.