Go Down

Topic: Attiny 85 Upload error (Read 898 times) previous topic - next topic


Hi all, I get an error message trying to upload to an ATtiny85. I've just installed the IDE 1.0, and the Attiny files from http://code.google.com/p/arduino-tiny/.

I've selected "Attiny85 @ 8MHz (internal oscillator)" then burned the bootloader.
My code compiles for a Uno, but when I compile or attempt an upload for an '85 I get this error message:

c:/program files/arduino-
.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr25/crttn85.o:(.init9+0x2): relocation truncated to fit: R_AVR_13_PCREL against symbol `exit' defined in .fini9 section in c:/program files/arduino-1.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/avr25\libgcc.a(_exit.o)

Any solutions?

I'm using a Uno as ISP, and the preferences are set to "upload.using=arduinoisp" and under Tools>Programmer, I have Arduino as ISP.

My I can attach my (super long, minimal comments, messy, and hard to follow) code if it's needed. I would've pasted it here, but it's too long :~

Tom Carpenter

See my thread about the PCREL error:

Its nothing wrong with your code, but rather a bug in the linker, the fix for which is not included in Arduino but can be applied as explained in that thread.


It works now! Many thanks  :)

Go Up