WinAVR

JayBee jaybee@centrum.cz
Neděle Duben 24 10:59:47 CEST 2005


Dobry den,
Uz se tu docela dlouho trapim nad jednim problemkem. Pokousim se rozjet kod
napsany pro IAR EWAAVR ve WinAVR. Jedna se o Application Note od Atmelu:

AVR311: Using the TWI module as I2C slave
http://www.atmel.ru/Disks/AVR%20Technical%20Library/appnotes/pdf/AVR311.pdf
http://www.atmel.ru/Disks/AVR%20Technical%20Library/appnotes/Software/AVR311
.zip

nejak mi to nefunguje. Myslim, ze mam nastaveno vse co mam mit, ale make
porad hlasi:

--------------
avr-gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Linking: main.elf
avr-gcc -mmcu=atmega8 -I. -gdwarf-2 -DF_CPU=4000000UL  -Os -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-adhlns=main.o  -std=gnu99 -MD -MP -MF .dep/main.elf.d main.o --output
main.elf -Wl,-Map=main.map,--cref    -lm
main.o(.text+0x6): In function `TWI_Act_On_Failure_In_Last_Transmission':
F:\a\aa/main.c:44: undefined reference to `TWI_Start_Transceiver'
main.o(.text+0x22): In function `main':
F:\a\aa/main.c:62: undefined reference to `TWI_Slave_Initialise'
main.o(.text+0x26):F:\a\aa/main.c:67: undefined reference to
`TWI_Start_Transceiver'
main.o(.text+0x28):F:\a\aa/main.c:78: undefined reference to
`TWI_Transceiver_Busy'
main.o(.text+0x30):F:\a\aa/main.c:81: undefined reference to `TWI_statusReg'
main.o(.text+0x40):F:\a\aa/main.c:86: undefined reference to
`TWI_Get_Data_From_Transceiver'
main.o(.text+0x44):F:\a\aa/main.c:88: undefined reference to `TWI_statusReg'
main.o(.text+0x68):F:\a\aa/main.c:104: undefined reference to
`TWI_Start_Transceiver_With_Data'
main.o(.text+0x6a):F:\a\aa/main.c:115: undefined reference to
`TWI_Transceiver_Busy'
main.o(.text+0x72):F:\a\aa/main.c:123: undefined reference to
`TWI_Get_State_Info'
make.exe: *** [main.elf] Error 1

> Process Exit Code: 2
------------------

vypada to, jako kdyby nevidel *.h soubor, ale ja ho v main.c uvedeny mam.
Neresil nekdo neco podobneho?

Dekuji. S pozdavem Jan Babjak, Bohumin.





Další informace o konferenci Hw-list