Pinie
09.01.2011, 18:38
Hallo zusammen,
ich versuche nun schon seit guten 3 Tagen die Kommunikation zwischen zwei ATMEGA 16 hinzubekommen nur bekomme ich immer folgende fehler meldung beim Master:
../Master.c:16: undefined reference to `i2c_init'
../Master.c:19: undefined reference to `i2c_start'
../Master.c:21: undefined reference to `i2c_write'
../Master.c:22: undefined reference to `i2c_write'
../Master.c:23: undefined reference to `i2c_write'
../Master.c:24: undefined reference to `i2c_write'
../Master.c:25: undefined reference to `i2c_stop'
../Master.c:34: undefined reference to `i2c_start'
../Master.c:36: undefined reference to `i2c_write'
../Master.c:37: undefined reference to `i2c_rep_start'/../Master.c:39: undefined reference to `i2c_readAck'
../Master.c:40: undefined reference to `i2c_readAck'
../Master.c:41: undefined reference to `i2c_readNak'
../Master.c:42: undefined reference to `i2c_stop'
und folgende bei slave:
../slave.c:22: undefined reference to `uart_puts'
slave.o: In function `main':
../slave.c:38: undefined reference to `uart_init'
../slave.c:39: undefined reference to `uart_puts'
../slave.c:40: undefined reference to `uart_puts'
../slave.c:41: undefined reference to `uart_puts'
../slave.c:42: undefined reference to `uart_puts'
../slave.c:47: undefined reference to `uart_puts'
slave.o:../slave.c:51: more undefined references to `uart_puts' follow
Hier noch der Link zu den Beispielcode
http://www.rn-wissen.de/index.php/TWI_Slave_mit_avr-gcc
ich versuche nun schon seit guten 3 Tagen die Kommunikation zwischen zwei ATMEGA 16 hinzubekommen nur bekomme ich immer folgende fehler meldung beim Master:
../Master.c:16: undefined reference to `i2c_init'
../Master.c:19: undefined reference to `i2c_start'
../Master.c:21: undefined reference to `i2c_write'
../Master.c:22: undefined reference to `i2c_write'
../Master.c:23: undefined reference to `i2c_write'
../Master.c:24: undefined reference to `i2c_write'
../Master.c:25: undefined reference to `i2c_stop'
../Master.c:34: undefined reference to `i2c_start'
../Master.c:36: undefined reference to `i2c_write'
../Master.c:37: undefined reference to `i2c_rep_start'/../Master.c:39: undefined reference to `i2c_readAck'
../Master.c:40: undefined reference to `i2c_readAck'
../Master.c:41: undefined reference to `i2c_readNak'
../Master.c:42: undefined reference to `i2c_stop'
und folgende bei slave:
../slave.c:22: undefined reference to `uart_puts'
slave.o: In function `main':
../slave.c:38: undefined reference to `uart_init'
../slave.c:39: undefined reference to `uart_puts'
../slave.c:40: undefined reference to `uart_puts'
../slave.c:41: undefined reference to `uart_puts'
../slave.c:42: undefined reference to `uart_puts'
../slave.c:47: undefined reference to `uart_puts'
slave.o:../slave.c:51: more undefined references to `uart_puts' follow
Hier noch der Link zu den Beispielcode
http://www.rn-wissen.de/index.php/TWI_Slave_mit_avr-gcc