Search the web
Sign In
New User? Sign Up
lpc2000 · LPC ARM Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Request: LPC2292 FreeRTOS Port   Message List  
Reply | Forward Message #28975 of 45848 |
RE: [lpc2000] Request: LPC2292 FreeRTOS Port

> Does anyone have an Eclipse lpc2292 FreeRTOS port?
>
> The FreeRTOS link on Keil's site
> (http://www.keil.com/dd/chip/3652.htm
> <http://www.keil.com/dd/chip/3652.htm> ) links to a 2106 port. Would
> this be compatible? I would assume some memory mappings would probably
> be changed. Any other changes I should know about?


I presume you are wanting to use GCC as you mention Eclipse. If so, I would
suggest:

1) Downloading the LPC2368 Eclipse FreeRTOS.org demo
http://www.freertos.org/portlpc2368_Eclipse.html

2) Reading the installation instructions (I mention that quite a lot :o)
http://www.freertos.org/Eclipse.html

3) In the makefile, change the inclusion of the file:

___a) Change the definition compiler option "-I
$(RTOS_SOURCE_DIR)/portable/GCC/ARM7_LPC23xx" to "-I
$(RTOS_SOURCE_DIR)/portable/GCC/ARM7_LPC2000" [just the last three
characters are different].

___b) Remove all web server, Ethernet and TCP/IP stack code.

4) Edit the file
FreeRTOS\Demo\ARM7_LPC2368_Eclipse\RTOSDemo\ParTest\ParTest.c so it toggles
the LED that are connected to your hardware. Check the LED flashing code
works using a simple hello world style program before trying them within a
FreeRTOS.org application.

5) Edit main() so that is just contains the following:

int main( void )
{
prvSetupHardware();

vStartLEDFlashTasks( mainFLASH_PRIORITY );
vTaskStartScheduler();

return 0;
}

This just creates three tasks that flash three different LEDs at different
frequencies. Its a simple starting point.

6) Edit the file FreeRTOS\Demo\ARM7_LPC2368_Eclipse\RTOSDemo\lpc2368.ld so
the flash and ram sizes (at the top of the file) are correct, and remove the
references to USB and Ethernet RAM.

Try compiling it. I'm sure there will be a few things I forgot to mention,
but you get the idea.


Regards,
Richard.

+ http://www.FreeRTOS.org
13 official architecture ports, 1000 downloads per week.

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






Wed Oct 31, 2007 4:52 pm

freertos
Offline Offline
Send Email Send Email

Forward
Message #28975 of 45848 |
Expand Messages Author Sort by Date

Does anyone have an Eclipse lpc2292 FreeRTOS port? The FreeRTOS link on Keil's site (http://www.keil.com/dd/chip/3652.htm) links to a 2106 port. Would this be...
jsalomo1
Offline Send Email
Oct 31, 2007
4:31 pm

... I presume you are wanting to use GCC as you mention Eclipse. If so, I would suggest: 1) Downloading the LPC2368 Eclipse FreeRTOS.org demo ...
FreeRTOS.org Info
freertos
Offline Send Email
Oct 31, 2007
4:53 pm

Thanks for the response. I've been trying to get it to compile, but no luck. I am getting errors similar to this: ...
jsalomo1
Offline Send Email
Nov 7, 2007
2:21 am

grep *.* for 'pxCurrentTCB'? That's how I normally find unresolved symbols to get things to link :) 'CurrentTCB' sounds like an OS object, so you are probably...
mjames_doveridge
mjames_dover...
Offline Send Email
Nov 7, 2007
8:00 am

... After a while of being away... So I fixed that problem, now I have another: make -k all arm-elf-gcc -c -g -O1 -Tlpc2368.ld -I . -I FreeRTOS/Source/include...
jsalomo1
Offline Send Email
Jan 24, 2008
8:26 pm

... You are trying to build ARM instructions into THUMB code. Take a look at the files rom_thum.bat, ram_thumb.bat, rom_arm.bat and ram_arm.bat in the...
FreeRTOS.org Info
freertos
Offline Send Email
Jan 24, 2008
8:44 pm

... show you ... linker script ... provided so ... 'out of ... http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html. ... Thanks for your...
jsalomo1
Offline Send Email
Jan 25, 2008
2:57 am

... Ok, I was making assumptions as to which port you were trying to use. If you look in the lpc2106 demo makefile you will see: ifeq ($(USE_THUMB_MODE),YES) ...
FreeRTOS.org Info
freertos
Offline Send Email
Jan 25, 2008
9:10 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help