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
> 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.
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
is the tick interrupt working?
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
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
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 :)
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 SourceportableGCCARM7_LPC2000port.c and SourceportableGCCARM7_LPC23xxport.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.
Thank you, it looks like I have to write my own port. In Sourceportable-RVDS directory, we have an PortASM.s, do we make changes here as well? I hope not.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.