I got a bunch of ATtiny85 chips and would like to play with them.
I followed this tutorial to programm them: http://hlt.media.mit.edu/?p=1695
I hooked everthing up as described but I allways get this error:
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
Furthermore the heartbeat LED freezes when the this error message shows up
and I have to reset the Arduino to get the ISP-Sketch running again.
Im using:
Arduino R3 as ISP
Arduino 1.0.1 IDE
I wired everything as described in the tutorial so I post just the error
message (I will post a photo of the wiring if neccessary)!
I downloaded your ArduinoISP sketch but unfortunately I still get this error...
As far I remember Ive sucessfully programmed this tiny on my previous Arduino board, not Rev3
and the 0023 IDE. Could there be a problem with my Arduino?? Its also strange that the led on pin 13 is
allways lit. As far as I remember this wasnt on all the time on my old board.
Also strange behaviour: I allready had programmed the chip before with my old board some while
ago and if I disconnect the reset wire from the tiny the old programm runs.
I attached my wiring.
Here is my process:
Upload the ArduinoISP (your new version from your post)
I connect the 10uF cap between reset and gnd
open up the blink sketch
select the ATtiny45@1Mhz (I want only 1Mhz, I tried a 45 and a 85) from the boards
Hmmm I tried to upload the bootloader first in 1Mhz or 8Mhz
but both seem to fail too.
I get again this sync problem:
avrdude: stk500_getsync(): not in sync: resp=0x00
The ISP code is very complex. Could there be a problem with
the "reset" (Arduino Pin10 -> Tiny Pin 1) line? Since the old program
runs when I disconnect this wire?!
Can I use this programmer to upload sketches directly to a tiny from the
Arduino IDE? That would be really cool! I tried and selected the USBasp
from the programmer menu but I get this error:
Using Port : usb
Using Programmer : usbasp
avrdude: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc
Is there something I have to do to use this programmer within the IDE?
Thanks!
How do I use the TinyISP? Is the pde a Processing sketch?
You can use it just like the usual ArduinoISP sketch.
Make a folder where your othher sketches are located and drop the files in there.
Then open the TinyISP.ino in the IDE and you are ready.
Congratulations.
After playing with tiny's for over a year, I still think there is something magical about that you can get such a small gizmo to do what you tell it to do