Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] which boot.s correct for lpc2129

2004-11-04 by Robert Adsett

At 07:15 PM 11/4/04 +0000, you wrote:
>I'm using GCC 4.4.1 in linux.
>
>I used de crt0.s and lpc2119.ld of the newlib_lpc but when compiling
>doesn't find lnewlib-lpc. This line is in the file lpc2119.ld:
>
>
>/*  Libraries to link against.                                  */
>INPUT( -lc -lnewlib-lpc -lc -lgcc )
>
>This is important for working the interrupt??? because I comment this
>line and the interrupt working incorrectly!!!!!

It shouldn't have too much to do with the interrupts themselves.  It might 
cause other issues if you have libraries on your command line though.  What 
that line tells ld to do is (in order)

1 - search through libc to find any references not satisfied.
2 - search through libnewlib-lpc to find any references not already 
staisfied (or new references created by libc)
3 - search through libc to find any references created when libnewlib-lpc 
statisfied references from step 2
4 - finally attempt to satisfy any leftover references by searching through 
libgcc

I hope that was clear.

If, when you comment out the INPUT line, the program works and doesn't 
complain about missing newlib-lpc functions (IE you have the I/O and chip 
support you asked for there is no problem.  You are probably just linking 
in another fashion.  There are multiple ways to skin this particular cat.

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

Attachments

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.