FreeRTOS on LPC1343

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FreeRTOS on LPC1343

309 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by qili on Sun Sep 12 19:01:09 MST 2010
I understand that older versions of red_code's ide came with a copy of freertos for lpc17xx devices.

I couldn't find that in the new (v3.5) version but more importantly I wanted to know if anyone had any success porting that freertos to lpc1343 devices.

your experience is greatly appreciated.
0 Kudos
5 Replies

280 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Tue Oct 19 17:54:36 MST 2010
Hi,

I have the FreeRTOS example running on a LPCXpresso board with the LPC1114 chip.

I would like to port this to a LPCXpresso LPC1343. It sounds from this thread that I can do this by simply selecting the processor type and changing the header file references in the src/*.c files to LPC13xx.

Do I also have to change the header references in the /port/lpcxpresso/m0/port.c file?

What is the status of an official FreeRTOS post for the 1343?

Thanks in advance for your help.

JohnR
0 Kudos

280 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by qili on Mon Sep 13 17:04:06 MST 2010
your numbers sound right: with no optimizaton, the code is 20K+; with -o1, it is down to 16K and 14K for -o2.

my main.c is quite simple: two processes that produce a flag each, based on cycle count and a 3rd process that modulates the two flags to blink the led.

it is interesting to see a mcu this small can run something this complicated.


for those interested in how I got it to work: I took the freertos example for lpc17xx, change the mcu setting for lpc1343 and then copied over the lpc1343 start-up code.

the whole thing worked on the very first compile.
0 Kudos

280 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Jesse.Rosenberg on Mon Sep 13 15:41:24 MST 2010
qili - For comparison, I've got a relatively small application running on M0 and it is built with optimization set at O3, and the map file report shows:

Total RO  Size (Code + RO Data)                14152 (  13.82kB)
Total ROM Size (Code + RO Data + RW Data)      14364 (  14.03kB)

As I stated in the earlier post, a release for 13xx will be posted, but it seems like you're already up and running.
0 Kudos

280 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by qili on Mon Sep 13 13:31:02 MST 2010
I took the freertos example for lpc1768 and made some simple changes to it and now it runs on lpc1343 - the code compiled to about 20K flash.
0 Kudos

280 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Jesse.Rosenberg on Mon Sep 13 12:32:58 MST 2010
There is an example for LPC11xx (M0) core which should work on an LPC13xx (M3), although it wouldn't be optimal. I believe an example package of FreeRTOS for 13xx will be posted in the near term, but if you'd like to try using the LPC11xx example here is the link:

http://ics.nxp.com/support/lpcxpresso/zip/examples.freertos.lpc11xx.zip
0 Kudos