Linker Error: " relocation truncated to fit: R_AVR_13_PCREL against `no symbol'

Hello everyone,

I keep running into the same error in my software " relocation truncated to fit: R_AVR_13_PCREL against `no symbol' "

Before the error would come and go as I added or cleaned up the code, but now it's so bad I can't upload sketches anymore to my ATmega328p AVR.

The error seems to be stemming from the Software I2C library I'm using "SoftI2CMaster.h"

Also, the issue seems to come up the larger my sketch gets. I don't think I'm anywhere near the limit of the AVR max memory allocation limit.

Please help.

JT

So it don't think it's a memory issue.

The ATmega328p has:
Flash 32k bytes (61% in use)
SRAM 2k bytes (64% in use)
EEPROM 1k byte (0% in use)

The ATmega328p has:

But your post has:
NO code.

What version of Arduino is that on? I remember that error, but not since 1.0.x

Hi Dr,

I'm using the most recent 1.8.5 build.

Using 61% Flash, 64% SRAM, 0% EEPROM

JT

hi there, have you found a solution cause i am facing exact the same problem??? A minor change (even a Serial.print() ) causes that error messages.

Is your board genuine Arduino, or Chinese?

I remember buying 5 chinese boards that bellied-up as soon as I went over 50% RAM. (I concluded that the upper 1K was to no avail...)

I kept them and use them on small projects (less than 1K RAM needed).

Jacques