Pages: [1]   Go Down
Author Topic: Attiny 85 Upload error  (Read 525 times)
0 Members and 1 Guest are viewing this topic.
Canada
Offline Offline
Sr. Member
****
Karma: 0
Posts: 318
Sometimes teaching, always learning,
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley-confuse
Logged


Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1730
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

~Tom~

Canada
Offline Offline
Sr. Member
****
Karma: 0
Posts: 318
Sometimes teaching, always learning,
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It works now! Many thanks  smiley
Logged


Pages: [1]   Go Up
Jump to: