GCC & LPC2100

Started by Andreas Schwarz March 10, 2004
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



An Engineer's Guide to the LPC2100 Series

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