Nick, I had a look at your solution, it looks interesting but might be a bit too much for what I'm trying to do.
Thanks for the tip about the verbose output, Erni. Since I was able to install Tiny-core now, I'll give it a try. Maybe I tried the wrong avrdude command.
Ok, so I rechecked the wiring and did everything according to Programming Attiny2313 with Arduino Uno.
I uploaded ArduinoISP and checked with an LED on pin 9. Then I unplugged the Arduino Board, connected the capacitor from Ground to Reset, plugged it in again, chose ATtiny2313@1MHz in the Board menu and tried to upload the Blink sketch. This is what I got:
avrdude: stk500_getsync(): not in sync: resp=0xe0
I unplugged and replugged the Arduino again and tried the same with ATtiny@8Mhz: Same error.
This is all with AVR ISP chosen as programmer. When I try this with Arduino as ISP, I get a lot more avrdude: Send and avrdude: Recv messages but it ends with
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
Thanks for the update, I will try this when I get home this evening.
@Coding Badly: I thought this was done with the 10 µF capacitor from reset to ground as it was mentioned in Ernis tutorial and also at http://arduino.cc/en/Tutorial/ArduinoISP. Do I also need a 120 Ohm resistor between 5V and Reset?
When I have used my Arduino as ISP I used a 120 ohm resistor and no capacitor. Programmed ATMega328s and ATtiny2313s.
I was developing an ATTiny2313 based Stepper Driver - http://arduino.cc/forum/index.php/topic,84809.15.html - if you look at reply 25 there is a picture of the board I made for programming 328s and 2313s. I put the resistor as part of the connector that plugs into the Arduino. I made a cable that goes to a 6 oin ISP plug that is done in a similar fashion.
As is always the rule when having problems - double check your wiring yet again.
gringle: @Coding Badly: I thought this was done with the 10 µF capacitor from reset to ground as it was mentioned in Ernis tutorial and also at http://arduino.cc/en/Tutorial/ArduinoISP.
It is.
Do I also need a 120 Ohm resistor between 5V and Reset?
Still the same result, I uploaded the different ArduinoISP sketch, unplugged the board, put the capacitor in, selected ATtiny2313@1Mhz and Ardunino as ISP and then clicked Upload with programmer.
Oh, sorry, the "not in sync" error was due to the "AVR ISP" I had set as programmer. When I switched it to "Arduino as ISP" I only get the "programmer not responding" error. Here is the avrdude output:
Your wiring is wrong. Very likely a short-circuit brought about when the programmer (your Uno) attempts to enable programming mode on the target (the ATtiny2313).
I suggest you put 220 ohm (or higher) series resistors on the SPI and RESET connections between the programmer and the target before you damage one or both sides.
Hm, thanks, but re-re-re-checked and checked again when you said it is wrong, I have no idea what might be wrong. It is wired excactly like it is described in the tutorial and I double checked with the picture also, just to be sure. The ATtiny2313 is not upside down. I don't know what to do different.
I guess the resistors would only prevent damage but not solve my problem, right?
Another thing to try is moving the chip to another spot on the breadboard or another breadboard.
If have experienced bad contacts on one mine, althoug not shortycuts.
I was finally able to upload the Blink sketch to the ATtiny2313! I tried Ernis suggestion and moved it to a different breadboard and it worked right away. I feel kind of stupid for not thinking of trying that on my own.
Thanks so much for your help, guys.