Go Down

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

John_S

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:

Quote
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 :~
http://jsrintervalometers.blogspot.ca

Tom Carpenter

See my thread about the PCREL error:
http://arduino.cc/forum/index.php/topic,116674.0.html

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.
~Tom~

John_S

It works now! Many thanks  :)
http://jsrintervalometers.blogspot.ca

Go Up