Hallo zusammen,
ich erhalte beim compilieren die folgenden Fehlermeldungen:
Compiling debug version of 'Aquaponics' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
cceMc4Ko.ltrans3.ltrans.o*: In function DebPos(char*, int, int)
cceMc4Ko.ltrans3.o*: (.text+0xcfa): relocation truncated to fit: R_AVR_13_PCREL against symbol ass_i2c_delay_half defined in .text section in C:\Users\weicher\AppData\Local\Temp\cceMc4Ko.ltrans2.ltrans.o
cceMc4Ko.ltrans3.o*: (.text+0xcfe): relocation truncated to fit: R_AVR_13_PCREL against symbol ass_i2c_delay_half defined in .text section in C:\Users\weicher\AppData\Local\Temp\cceMc4Ko.ltrans2.ltrans.o
cceMc4Ko.ltrans3.ltrans.o*: In function __vector_20
cceMc4Ko.ltrans3.o*: (.text+0xd0a): relocation truncated to fit: R_AVR_13_PCREL against symbol ass_i2c_wait_scl_high defined in .text section in C:\Users\weicher\AppData\Local\Temp\cceMc4Ko.ltrans2.ltrans.o
cceMc4Ko.ltrans3.ltrans.o*: In function TRect::MoveTo(unsigned int, unsigned int)
cceMc4Ko.ltrans3.o*: (.text+0xd2a): relocation truncated to fit: R_AVR_13_PCREL against symbol ass_i2c_delay_half defined in .text section in C:\Users\weicher\AppData\Local\Temp\cceMc4Ko.ltrans2.ltrans.o
cceMc4Ko.ltrans3.ltrans.o*: In function _Li2c_read_bit
cceMc4Ko.ltrans3.o*: (.text+0xd36): relocation truncated to fit: R_AVR_13_PCREL against symbol ass_i2c_wait_scl_high defined in .text section in C:\Users\weicher\AppData\Local\Temp\cceMc4Ko.ltrans2.ltrans.o
cceMc4Ko.ltrans3.o*: (.text+0xd38): relocation truncated to fit: R_AVR_13_PCREL against symbol ass_i2c_delay_half defined in .text section in C:\Users\weicher\AppData\Local\Temp\cceMc4Ko.ltrans2.ltrans.o
collect2.exe*: error: ld returned 1 exit status
Error compiling for board Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)
Ich habe nach "relocation truncated to fit: R_AVR_13_PCREL" gegogelt und viele alte Einträge aber nur zwei im Zeitraum vom 01.01.2015 .. 13.12.2016 gefunden: Keiner der Tip's hat etwas geholfen.
Der Fehler ist nach dem einbauen des Adafruit_MAX31855 aufgetreten. Ich glaube aber nicht, dass es daran liegt weil ich den gleichen Fehler schon vorher mal hatte. Behoben habe ich es damals durch das entfernen einiger unnötiger Serial.print(ln) statements.
Als Attachment habe ich die Einstellungen aus Toolchain AVR/GNU C++ Compiler angehängt.
Ich hoffe jemand findet einen Fehler in diesen Einstellungen oder hat sonst eine Idee wie man diesen Fehler beheben kann.
Besten Dank
Walter
AVR_GNU_C++_Compiler.txt (3.19 KB)