EmbeddedRelated.com
Forums

LPC2106 Compiler Error...

Started by r_kumares March 22, 2007
Dear All,

I have started working on LPC2294 using GNU GCC compiler. As
this is the 1st time I am working on ARM family so I have just took the
example code of LPC2106 from the net for blink_led programme & tried to
complier the same using the said compiler. Every time I compile the
programme it shows the following error.....

make -k all

"......linking"

arm-elf-ld -v -o main.out main.o crt.o

arm-elf-ld: warning: cannot find entry symbol _start; defaulting to
00008000

crt.o: In function `Reset_Handler':

: undefined reference to `_stack_end'

crt.o: In function `Reset_Handler':

: undefined reference to `_data'

crt.o: In function `Reset_Handler':

: undefined reference to `_bss_start'

crt.o: In function `Reset_Handler':

: undefined reference to `_bss_end'

GNU ld version 2.16.1

make: *** [main.out] Error 1

make: Target `all' not remade because of errors.

Can any one help me to sort out the problem. Awaiting an early reply
from yours end.

Best Regds/

Roshan Kumar

An Engineer's Guide to the LPC2100 Series

----- Original Message -----
From: "r_kumares"
To:
Sent: Thursday, March 22, 2007 9:13 AM
Subject: [lpc2000] LPC2106 Compiler Error...
>
> Dear All,
>
> I have started working on LPC2294 using GNU GCC compiler. As
> this is the 1st time I am working on ARM family so I have just took the
> example code of LPC2106 from the net for blink_led programme & tried to
> complier the same using the said compiler. Every time I compile the
> programme it shows the following error.....
I just tried building a similar program (ledswitch.c - one of the examples
for an Olimex LPC2106 board) with WinARM and it compiled and linked OK.

Leon
Can you please send me the full details..
--- In l..., "Leon" wrote:
>
> ----- Original Message -----
> From: "r_kumares"
> To:
> Sent: Thursday, March 22, 2007 9:13 AM
> Subject: [lpc2000] LPC2106 Compiler Error...
> >
> > Dear All,
> >
> > I have started working on LPC2294 using GNU GCC
compiler. As
> > this is the 1st time I am working on ARM family so I have just
took the
> > example code of LPC2106 from the net for blink_led programme &
tried to
> > complier the same using the said compiler. Every time I compile
the
> > programme it shows the following error.....
> I just tried building a similar program (ledswitch.c - one of the
examples
> for an Olimex LPC2106 board) with WinARM and it compiled and
linked OK.
>
> Leon
>
----- Original Message -----
From: "r_kumares"
To:
Sent: Thursday, March 22, 2007 11:26 AM
Subject: [lpc2000] Re: LPC2106 Compiler Error...
> Can you please send me the full details..

Install Martin Thomas's WinARM:

http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/

The program I tried was modified from the original version by Martin Thomas,
so that is probably the same distribution I am using, although I was
probably using an older version (I normally use Crossworks).

Leon