Problem programming an ATtiny85 with Arduino as ISP

Hello,

I'm trying to program Blink's example code in my new ATtiny85 with my Arduino UNO SMD as ISP. I've followed this tutorial: http://hlt.media.mit.edu/?p=1229, but I had some errors. I've used Arduino's IDE v1.0.

Highlighted message:

'OUTPUT was not declared in this scope'

Error message:

Blink.cpp:8:21: error: Arduino.h: No such file or directory
Blink.cpp: In function 'void setup()':
Blink:10: error: 'OUTPUT' was not declared in this scope
Blink:10: error: 'pinMode' was not declared in this scope
Blink.cpp: In function 'void loop()':
Blink:14: error: 'HIGH' was not declared in this scope
Blink:14: error: 'digitalWrite' was not declared in this scope
Blink:15: error: 'delay' was not declared in this scope
Blink:16: error: 'LOW' was not declared in this scope

I think the problem isn't with wiring or Arduino, because if I select "Arduino UNO" board and verify the code it works perfectly! But if I change to "ATtiny85 w/ Arduino as ISP" I have the error above. I think something is wrong with ATtiny85 lib, or Arduino's IDE isn't including "Arduino.h" and other necessary files.

I searched solutions in the web, without success.

Second paragraph...

See the updated version of this tutorial (with support for Arduino 1.0).

New (1.0 compatible) tutorial... http://hlt.media.mit.edu/?p=1695

Alternative (1.0 compatible) core... Google Code Archive - Long-term storage for Google Code Project Hosting.

Hello Coding Badly,

I tried this tutorial update. I've downloaded the alternative ATtiny's core and connected all the wires. I tried to burn bootloader and upload Blink's code, then I had a new error:

Highlighted message:

Problem uploading to board. See http://arduino.cc/en/Guide/Troubleshooting#upload for sugestions.

Error message:

Binary sketch size: 748 bytes (of a 8192 byte maximum)
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85

avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): protocol error

What shall I to do?

These are warnings that can be ignored...

avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85

This is very likely because of a problem with the ArduinoISP sketch...

avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): protocol error

Details are available here...
http://arduino.cc/forum/index.php/topic,82567.0.html
http://arduino.cc/forum/index.php/topic,82011.0.html

You can either lower the baud rate to 9600 or send me a Personal Message with your email address and I'll send you a version that works with Arduino 1.0.

You can either lower the baud rate to 9600 or send me a Personal Message with your email address and I'll send you a version that works with Arduino 1.0.

I sent you a personal message. I'm waiting for the Arduino ISP.

Thanks! :slight_smile:

It's on the way.

Thank you very much! Now it works perfectly! I used the version of Arduino ISP (TinyISP) you sent me and it works. It still warning, but I'm just ignoring:

avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85