Yahoo Groups archive

Lpc2000

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

Message

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

2006-04-08 by ocnek1

--- In lpc2000@yahoogroups.com, "ocnek1" <markoskyj@...> wrote:
>
> Hello all!!
> 
> Let me first say I'm pretty new at GNUARM so please be somewhat kind...
> 
> 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
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\owerr.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\ioutil.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\lpclnk.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\owtran.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\crcutil.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\rawmem.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbshaee.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbeprom.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbnv.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbappreg.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbnvcrc.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbscrcrc.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbscrex.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbsha.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbscree.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbscr.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbee77.o
> C:\WinARM\arm-elf\include\arch\philips\ibutton\common\mbscrx77.o
> 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
>

Thanks guys for the help!!  Now I'm having another problem and I think
it is just my new-B-ness to these tools in general.

The program now compiles fine but when it hits the first ioctl(x ,x
,x) call it goes off into la la land.  I've put some simple IO tests
(Turn LED on) and the program works fine till the function call.  By
the way, I'm using an Olimex LPC2138-MT dev board.

I did go through the newlib-lpc files and updated the header file to
support the LPC2138.  That seemed to work fine.  I even made a lil IO
blink function and added it to the newlib-lpc.a library just to see if
I was compiling the library fine.  The function works when i call it
from main() so is it naive to say that my re-compiled verion of the
library is ok?  

Thanks,
Oc.

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.