Yahoo Groups archive

Lpc2000

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

Thread

GCC & LPC2100

GCC & LPC2100

2004-03-11 by Andreas Schwarz

Hello,

is there a howto for GCC + LPC2100? I have built binutils, gcc and
newlib under linux, what else do I need to really use the compiler for
LPC2106 software development? init code? Linker script? Where do I get
it, how do I use it? Is there anything else I have to take care of?

Thanks
Andreas

Re: [lpc2000] GCC & LPC2100

2004-03-11 by Robert Adsett

At 12:15 AM 3/11/04 +0000, you wrote:
>is there a howto for GCC + LPC2100? I have built binutils, gcc and
>newlib under linux, what else do I need to really use the compiler for
>LPC2106 software development? init code? Linker script? Where do I get
>it, how do I use it? Is there anything else I have to take care of?

As you suggested you will need a linker script and initialization 
code.  There are some examples in the files section.  The most basic init 
code just sets up the exception vectors and initializes memory and stack.

If you are going to use stdio or memory allocation then you have to adapt 
newlib for the target.  I've got a simple adaption available at 
http://www.aeolusdevelopment.com/Articles/download.html It also includes a 
simple linker script, init code (ctr0.s) and header file for the 210x.


Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

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.