Sevc Dominik wrote:
> Hi all.
> I try convert Keil example (hid)to WinARM but show my error and I can't
> corect it.
> Can look to source code where is problem?
> the code is on this sevc.szm.sk\dom.zip
I had a quick look.
You seem to have more source files in you directory than you have in the
Is this what you get :-
-------- begin --------
arm-elf-gcc (GCC) 3.4.0
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
Compiling C (ARM-only): main.c
arm-elf-gcc -c -mcpu=arm7tdmi -I. -gstabs -DROM_RUN -Os -Wall
mplicit -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type
sed -Wa,-adhlns=main.lst -MD -MP -MF .dep/main.o.d -Wnested-externs
9 main.c -o main.o
In file included from main.c:14:
usbhw.h:36: warning: type defaults to `int' in declaration of `__irq'
usbhw.h:36: warning: data definition has no type or storage class
arm-elf-gcc -mcpu=arm7tdmi -I. -gstabs -DROM_RUN -Os -Wall
licit -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow
d -Wa,-adhlns=Cstartup.lst -MD -MP -MF .dep/main.elf.d Cstartup.o
artup_SAM7.o --output main.elf -nostartfiles
-lm -lc -lgcc -TAT91SAM7S64-ROM.ld
main.o(.text+0x150): In function `main':
main.c:54: undefined reference to `USB_Init'
main.o(.text+0x158):main.c:55: undefined reference to `USB_Connect'
make: *** [main.elf] Error 1
I think this error is caused by not putting all the source files in the
It means that there is a call to USB_Connect in the files you have
included, but it cannot find that function. (Because you have not put
that code in the make file).