Programming ATTiny85: compiling error

Hello! I am trying High-Low Tech's tutorial ( to program ATTiny85 using Arduino Duemilanove. I did everything very carefully and double checked also. When I try to upload a BLINK example, I get compiling error.

In file included from /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:44:0, from /usr/lib/gcc/avr/4.5.3/../../../avr/include/avr/delay.h:37, from /home/x/sketchbook/hardware/attiny45_85/cores/attiny45_85/wiring_private.h:32, from /home/x/sketchbook/hardware/attiny45_85/cores/attiny45_85/WInterrupts.c:36: /usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected identifier or ‘(’ before ‘double’ /usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected ‘)’ before ‘>=’ token

What am i doing wrong? BTW - I am using that works with ATMega328P-PU. (using Linux Ubuntu)

Are you using Arduino IDE 0022?

yep, it is Arduino 0022ubuntu0.1

Does this help?

thanks, but commenting out the line (136) in wiring.h: //#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))

causes this: (when trying to program Attiny)

Binary sketch size: 632 bytes (of a 8192 byte maximum) avrdude: stk500_recv(): programmer is not responding


Binary sketch size: 632 bytes (of a 8192 byte maximum) avrdude: stk500_getsync(): not in sync: resp=0x66

How did you disable auto-reset on the Duemilanove?

wha..what? I don't understand... I haven't disabled anything

Also, what i noticed - when i connect all wires from Duemilanove to ATTiny85 and choose Arduino Duemilanove 328 as board in Arduino software, everything works - i can upload scripts to ATMega328. But when i pick from menu: board ATTiny85 (Arduino as ISP), i get PROGRAMMER NOT RESPONDING / NOT IN SYNC

The following is not directed to you, @D3C3PT1C0N, but to the Arduino folks who continue to leave off the all important step of "disable auto-reset": ARGH! (and a few other expletives not included to keep the board family-friendly plus a long diatribe about adding to the amount of support users need rather than reducing it)

In these instructions... for this section...

Connecting the Arduino board and the ATtiny

You are instructed to connect a 10 uF capacitor if you have an Uno. Concluded by this: "The capacitor is only needed if you’re using an Arduino Uno, not an Arduino Duemilanove." Unfortunately, the instructions do not indicate what you will need to do if you are using a Duemilanove. Instead of a capacitor between RESET and GND, you will need to connect a 120 ohm resistor between RESET and 5V. Detailed instructions are here...

Thank you, but this also gave me no luck.
I think i’ll go to sleep now. It’s 2 at night here.
Maybe torrow have better ideas …

Good Night!

Still no improvement. I guess that I just leave it there and start developing on ATMega328 chip. Maybe the Tiny controller is just broken.

avrdude: stk500_recv(): programmer is not responding

I also tried the Uno variant - connect a 10 uF capacitor between reset and ground, but no luck again.