Ok so for the past months or so i have not been able to get my AT tiny 2313 micro controller programmed via an Arduino Uno as an ISP programmer. I have troubleshooted the Arduino, and ruled out that this is the problem.
I have tried this many times and i finally figured out that to keep the programmer in sync, i have to make sure that there is no current going through the micro controller until just before I press enter via the terminal to execute AVRdude. So, after all this troubleshooting and double checking my wiring, performing multiple erase cycles, and every time i get this error:
sounds to me like the programmer still can't talk to the target chip. All 0s for the device signature isn't a good sign, I definitely wouldn't override that, it's a different matter if it's returning a valid (but unrecognized) signature.
In your checks to make sure the programmer is working right did you program other non-ATtiny2313 chips with it successfully?
I have not been able to program any of the 2 ATtiny2313 chips i have. I have gotten this response every time now that i finally got the Arduino to be in sync with the micro controller:
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
so i don't know why it keeps telling me this, as far as i know the chips have not been damaged, and i performed an erase cycle to see if that might be the problem, but i am out of my league with this AVR stuff....all help is appreciated.
I've has MOSI and MISO backwards, or the reset wire in the wrong spot, or the clock pin in the wrong spot.
I'll drag out a 2313 later tonight or tomorrow morning and see if I can make it work and report back.
I'm bashing my head against grabbing atmega328 chips instead of 328P, and trying to get arduinoISP working again. I'm spoiled by my USBtinyISP now. I highly recommend one, very nice to have!
Anyway, I think I'm getting close to the attiny2313 end of things.
EDIT:
Silly me, I forgot to set the fuses on the atmega328. No wonder I couldn't upload to it except via usbtinyisp. Whoops.
Finally got that mess figured out, from the pic it looks like you have it wired correctly, so try this:
Use the AVRDUDE that comes with the Arduino IDE, rather than a standalone one.
I cannot make ArduinoISP function with a downloaded avrdude, but with the Arduino IDE's avrdude it works great.
So, try this:
Obviously you'll need to remove the "-Uflash:w:/tmp/build1438157481466733455.tmp/Blink.cpp.hex" as that file won't exist on your box, your device path (-P /dev/whatever), and the path to your Arduino IDE will be different, so edit those in/out, but that may work better, it certainly did for me.
Something you can try for giggles is putting an LED (with resistor, of course) on each of the three signaling wires. Use a decently sized resistor so it doesn't drag the output down too much.
That'll show whether or not something is coming out those pins headed towards the attiny2313.
okay cool thanks i will try that tomorrow morning.
@Bobnova,
if i can't get this to work is there any chance i could mail you my attiny2313's and have you program them?? i would pay for shipping and stuff both ways..... it would only need to be mailed through regular mail most likely...
Hey Bobnova i tried to use the avrdude that was in the Arduino folder, but it still didn't work, so could you personal message me your address so i can mail these 2 ATtiny2313's to you? I really appreciate it,