Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Linking Error....iButton Test program Robert Adsett's Port

2006-04-06 by Robert Adsett

At 11:17 PM 4/5/2006 +0000, ocnek1 wrote:
>Let me first say I'm pretty new at GNUARM so please be somewhat kind...

We'll try :)

>Now to my problem.  I was tring to use Robert Adsett's ibutton test
>port with my WinARM installation.  Everything seems to go fine then I
>get this Linking error.  I have no clue how to fix this, so if someone
>could point it out or point me in the right direction it would be great.
>
>I did not make a ibutton library I just included the .c files in my
>make file.  I would like to compile the ibutton port into a librar
>file but that is another problem :)
>
>
>Thanks,
>Oc.
>
>Linking: test1.elf
>arm-elf-gcc -mcpu=arm7tdmi -I. -g -DROM_RUN  -O0 -funsigned-char
>-funsigned-bitfields -fpack-struct -fshort-enums -Wall
>-Wstrict-prototypes -Wa,-adhlns=test1.o  -std=gnu99 -MD -MP -MF
>.dep/test1.elf.d test1.o
>C:\WinARM\arm-elf\include\arch\philips\ibutton\common\ownet.o
>C:\WinARM\arm-elf\include\arch\philips\ibutton\common\lpcses.o

<snip>

>C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbee.o
>C:\WinARM\arm-elf\include\arch\philips\ibutton\common\pw77.o
>build/crt0.o  --output test1.elf -nostartfiles
>-Wl,-Map=test1.map,--cref -lm -lc -lnewlib-lpc -lm -Tbuild/LPC210x_ROM.ld
>c:/winarm/bin/../lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib\libc.a(makebuf.o):
>In function `__smakebuf':makebuf.c:(.text+0x110): undefined reference
>to `isatty'
>collect2: ld returned 1 exit status
>make.exe: *** [test1.elf] Error 1

Apparently ld can't find isatty. I suspect either a link order problem or 
possibly a lack of room.

Take a look at the map file and see how close you are to running out of 
room.  Unfortunately that library is rather large if you try to include all 
the functionality.

What is in your LPC210x_ROM.ld file?

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
http://www.aeolusdevelopment.com/

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.