FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2008 Threads] LPC2387 with Keil uvison3Posted 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 uvison3Posted 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 uvison3Posted 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 uvison3Posted by woops_ on December 2, 2008 is the tick interrupt working?
RE: LPC2387 with Keil uvison3Posted 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 uvison3Posted 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 uvison3Posted 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 uvison3Posted 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 uvison3Posted 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|