Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Steps to compile code for 2106/213X

Steps to compile code for 2106/213X

2005-07-28 by google_is_king

I've been working with AVR MCUs for a while but the higher performance
of the ARM parts has recently captured my attention.  So far I've
built my own binutils-2.16.1, gcc-3.4.4, newlib-0.12, gdb-6.3
toolchain (from scratch) and I'm trying to compile some test code.

Using a simple:
arm-elf-gcc -o test -Os test.c
yields binaries in the 44K range (stripped).  My test code is
basically just a function that returns a constant and a main() --- so
this seems a bit big.  I also tested the GNUARM toolchain with the
same command and got very similar results.

From my reading so far, I gather that I'll need to make an inital
startup asm file and a linker command file as well.  What other things
will I need for 210X/213X development?

More importantly though, what is the correct set of compiling, linking
and stripping commands to produce code that can be loaded into the MCU?

I'm using linux, emacs and the command line for my IDE if thats
relevant.  I also don't mind reading documentation/instructions if
anyone can point me in the right direction...

Thanks,
David Carr

回复: [lpc2000] Steps to compile code for 2106/213X

2005-07-29 by g pf

David,
 
HI, Look this.
 
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/
 
This a tool chain run in WIN based on cygwin. But it has many code simples. I think you can find what you need.
 
I'm from china, so my english is.....
Hope it's helpful.


google_is_king <junk@...> 写道:
I've been working with AVR MCUs for a while but the higher performance
of the ARM parts has recently captured my attention.  So far I've
built my own binutils-2.16.1, gcc-3.4.4, newlib-0.12, gdb-6.3
toolchain (from scratch) and I'm trying to compile some test code.

Using a simple:
arm-elf-gcc -o test -Os test.c
yields binaries in the 44K range (stripped).  My test code is
basically just a function that returns a constant and a main() --- so
this seems a bit big.  I also tested the GNUARM toolchain with the
same command and got very similar results.

From my reading so far, I gather that I'll need to make an inital
startup asm file and a linker command file as well.  What other things
will I need for 210X/213X development?

More importantly though, what is the correct set of compiling, linking
and stripping commands to produce code that can be loaded into the MCU?

I'm using linux, emacs and the command line for my IDE if thats
relevant.  I also don't mind reading documentation/instructions if
anyone can point me in the right direction...

Thanks,
David Carr







---------------------------------
YAHOO! GROUPS LINKS 


    Visit your group "lpc2000" on the web.
  
    To unsubscribe from this group, send an email to:
 lpc2000-unsubscribe@yahoogroups.com
  
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


---------------------------------



__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com

[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.