Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


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


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner