-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relocation Truncated to fit..... #23
Comments
Many thanks for this Library, great Job, it is very useful. I used these four functions succesfully in an Arduino UNO:
The problems comes when I try to use it in a Arduino MEGA2560, It seems is not ready for it, as this message appears when compiling and uploading Arduino:1.8.10 (Windows 10), Tarjeta:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)" C:......../appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avr6/crtatmega2560.o:(.init9+0x0): relocation truncated to fit: R_AVR_13_PCREL against symbol `main' defined in .text.startup section in C:...\AppData\Local\Temp\ccWx9BPA.ltrans0.ltrans.o collect2.exe: error: ld returned 1 exit status Error compiling for Arduino Mega or Mega 2560. I have been taking a look to different websites looking for a solution. This kind of error looks related to this: I haven´t made any modification on my arduino cc 1.8.10 version and I have recently installed it. I would be surprised it is a mistake on the compiler. Not sure anyway, I will take a deeper look to this, but any help would be much appreciated. I have seen that the library.json file states: "platforms": "atmelavr", I am not sure this is saying it is not compatible with my Arduino mega3560 Many thanks in advance! |
I have run into the same problem. For me, solution was to change order of files for linker (unfortunately, this cannot be done in Arduino, you can use makefile configuration).
to
|
No description provided.
The text was updated successfully, but these errors were encountered: