EmbeddedRelated.com
Forums

Porting FreeRTOS to LPC2138 + GCC + MSYS + Yagarto

Started by Giuseppe Marullo January 12, 2009
Could someone tell me how to start to perform said operation?

I would like to know which is the project that I need to start with for
this conversion.

I am guessing it is the one with LPC2368 / Eclipse more than the one
with LPC2318 / Rowley.

The board is a Xylo-LM, I would like to use both serials as console (I
don't know at the moment which one I will use).

TIA,

Giuseppe

An Engineer's Guide to the LPC2100 Series

--- In l..., Giuseppe Marullo wrote:
>
> Could someone tell me how to start to perform said operation?
>
> I would like to know which is the project that I need to start with for
> this conversion.
>
> I am guessing it is the one with LPC2368 / Eclipse more than the one
> with LPC2318 / Rowley.
>
> The board is a Xylo-LM, I would like to use both serials as console (I
> don't know at the moment which one I will use).
>
> TIA,
>
> Giuseppe
>

You start with a 130V power supply and attached it to your keyboard.....

> -----Original Message-----
> From: l...
> [mailto:l...] On Behalf Of Giuseppe Marullo
> Sent: 13 January 2009 00:59
> To: l...
> Subject: [lpc2000] Porting FreeRTOS to LPC2138 + GCC + MSYS + Yagarto
>
> Could someone tell me how to start to perform said operation?
>
> I would like to know which is the project that I need to
> start with for this conversion.
>
> I am guessing it is the one with LPC2368 / Eclipse more than
> the one with LPC2318 / Rowley.
>
> The board is a Xylo-LM, I would like to use both serials as
> console (I don't know at the moment which one I will use).

You could:

1) Start by using the LPC2138 Rowley project as a reference to writing your
own makefile. You would also need a linker script in the correct format.

2) Start with the LPC2368 Eclipse project and convert this for the 2138.

---

I would suggest number (2), in which case:

1) Familiarise yourself with the following WEB page:
http://www.freertos.org/portlpc2368_Eclipse.html

2) Download the FreeRTOS .zip file and unzip.

3) In the unzipped files go to the
FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo where you will find a standard
makefile (you can ignore all the Eclipse stuff).

4) Edit the makefile to

--- A] include the file FreeRTOS/Source/portable/GCC/ARM7_LPC2000/port.c in
place of FreeRTOS/Source/portable/GCC/ARM7_LPC23xx/port.c

--- B] Remove all the TCP/IP files, any file that uses the UIP_COMMON_DIR
path or the .webserver path.

4.5) Edit main.c to remove the call to xTaskCreate that creates the
vuIP_Task task and the vLCDTask task.

5) Again in the FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo directory, edit
or replace the linker script lpc2368.ld to be correct for the LPC2138
(easiest is to find a linker script that is already setup - the 2138 script
will be much simpler than the 2368 equivalent).

6) Make sure everything compiles as expected.

7) Follow the instructions here:
http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html

I'm sure there will be other tinkering required, part specific header files
and the like. You might need to remove the files that attempt to write to
the LCD too.

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.SafeRTOS.com
Certified by T as meeting the requirements for safety related systems.

Richard,
many thanks for your detailed info, I have the toolchain set
it up and working, I need *just* to add the FreeRTOS. I will
report my progress here.
>You start with a 130V power supply and attached it to your
keyboard.....
Don, I don't get your humor, but if this is a try to be put
in my killfille, please try again, next time maybe without
wasting ml bw.

TIA,

Giuseppe
> Don, I don't get your humor, but if this is a try to be put
> in my killfille, please try again, next time maybe without
> wasting ml bw.
>
> TIA,
>
> Giuseppe
>

This thread was about power supplies, but you hijacked it.

You could have started another thread,

but you didn't.

Why ?

don

> This thread was about power supplies, but you hijacked it.
>
> You could have started another thread,
I was with a web interface and maybe hit the reply button on
a previous message, but I did change the subject and deleted
the previous content.

Now I see it breaks the thread if you view ordered by
thread, mea culpa.

Giuseppe Marullo