Go Down

Topic: Wire Library hängt Arduino auf - Timeout (o.ä.) für fehlerhafte I2C Connection? (Read 9065 times) previous topic - next topic

jim_beam

Ok konnte die entschiedenen Ordner finden unter:
/.arduino15/packages/arduino/hardware/avr/1.6.8/libraries/Wire/  .../utility

Aber bekomme Fehlermeldung wenn ich die neuen wire und twi Dateien einpflege:

Code: [Select]
/tmp/build564a935ee1a5524091da1ede84e56bae.tmp/libraries/DS3232RTC/DS3232RTC.cpp.o: In function `DS3232RTC':
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:72: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:72: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:72: undefined reference to `TwoWire::begin()'
/tmp/build564a935ee1a5524091da1ede84e56bae.tmp/libraries/DS3232RTC/DS3232RTC.cpp.o: In function `DS3232RTC::writeRTC(unsigned char, unsigned char*, unsigned char)':
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:153: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:153: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:153: undefined reference to `TwoWire::beginTransmission(int)'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:154: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:154: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:154: undefined reference to `TwoWire::write(unsigned char)'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:155: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:155: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:155: undefined reference to `TwoWire::write(unsigned char)'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:156: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:156: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:156: undefined reference to `TwoWire::endTransmission()'
/tmp/build564a935ee1a5524091da1ede84e56bae.tmp/libraries/DS3232RTC/DS3232RTC.cpp.o: In function `DS3232RTC::read(tmElements_t&)':
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:107: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:107: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:107: undefined reference to `TwoWire::beginTransmission(int)'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:108: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:108: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:108: undefined reference to `TwoWire::write(unsigned char)'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:109: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:109: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:109: undefined reference to `TwoWire::endTransmission()'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:111: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:111: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:111: undefined reference to `TwoWire::requestFrom(int, int)'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:112: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:112: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:112: undefined reference to `TwoWire::read()'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:112: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:113: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:113: undefined reference to `TwoWire::read()'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:113: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:113: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:114: undefined reference to `TwoWire::read()'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:114: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:114: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:114: undefined reference to `TwoWire::read()'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:115: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:115: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:115: undefined reference to `TwoWire::read()'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:116: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:116: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:116: undefined reference to `TwoWire::read()'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:117: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:117: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:117: undefined reference to `TwoWire::read()'
/tmp/build564a935ee1a5524091da1ede84e56bae.tmp/libraries/DS3232RTC/DS3232RTC.cpp.o: In function `DS3232RTC::readRTC(unsigned char, unsigned char*, unsigned char)':
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:178: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:178: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:178: undefined reference to `TwoWire::beginTransmission(int)'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:179: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:179: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:179: undefined reference to `TwoWire::write(unsigned char)'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:180: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:180: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:180: undefined reference to `TwoWire::endTransmission()'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:181: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:181: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:181: undefined reference to `TwoWire::requestFrom(unsigned char, unsigned char)'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:182: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:182: undefined reference to `Wire'
/home/jose/Downloads/Arduino166/libraries/DS3232RTC/DS3232RTC.cpp:182: undefined reference to `TwoWire::read()'
collect2: error: ld returned 1 exit status
Bibliothek DS3232RTC im Ordner: /home/jose/Downloads/Arduino166/libraries/DS3232RTC (legacy) wird verwendet
Bibliothek Time in Version 1.4 im Ordner: /home/jose/Downloads/Arduino166/libraries/Time  wird verwendet
Bibliothek Wire in Version 1.0 im Ordner: /home/jose/.arduino15/packages/arduino/hardware/avr/1.6.8/libraries/Wire  wird verwendet
exit status 1
Fehler beim Kompilieren.


 :smiley-eek:

jim_beam

OK, habs soweit hin bekommen, dass meine IDE die neuen wire.c/h und twi.c/h Dateien verwendet und fehlerfrei kompiliert. (war mal wieder meine Dummheit, warums vorher nicht ging  :) )

Jetzt kommt aber nur Mist von der RTC, also Datum, Uhrzeit und Temperatur sind blödsinn-Werte. Es macht dann auch keinen unterschied mehr, wenn man das SDA Kabel abzieht.  :smiley-confuse:

Habe es mit einer 2. RTC getestet, die in einem anderen PJ fehlerfrei (dauer-an) läuft, das selbe Fehlerbild.
Ändere ich weider auf die alten wire und twi Dateien, geht es mit dem selben aufbau fehlerfrei.

Jemand eine Idee, woran das liegen kann bzw. hat schon mal jemand die "neuen" wire /twi Datei getestet?



...werde wohl nicht drum herum kommen, die RTC dauerhaft eingeschaltet zu lassen (vorerst).

Go Up