I searched on the site for days and didn't find a solution for my specific problem so I'm finally posting the question, I hope it's in the right forum.
I'm getting the normal errors:
-cannot set SCK period, check for firmware update
-program enable, target doesn't answer. 1
-initialization failed, rc=1
-blah blah -F to override
So initially I thought it was the USBASP but I was able to flash the most recent (2011) firmware on all 3 USBASPs I own using one another to do it, so I know they all can program.
I have single, double, triple etc check my connections with a multimeter to MOSI, MISO, RST, SCK, VCC and GND. Also verified that I'm getting 5.0v on VCC pin with either USBASP provided and tried with external(via regulator) as well. Even tried adding the 10kohm on reset to pull it up and added a 0.1uf between VCC and GND.
What else would be causing the chip to not respond? I've been trying to program these ATMEGA8A-PU chips for a while and not sure why it isn't working.
My friend who originally used to program these for me isn't available to do them anymore so he made me a .bat file to use to program the chips.
Contents of .bat file:
@echo off :START avrdude -c usbasp -p m8 -U lfuse:w:0xD4:m -U hfuse:w:0xD9:m -U flash:w:shift.hex pause REM programming the lock fuse avrdude -c usbasp -p m8 -U lock:w:0xFC:m set /P c=Program another chip[Y/N]? if /I "%c%" EQU "Y" goto :START if /I "%c%" EQU "N" exit
So the steps I do are plug in the USBASP, put the chip in the ZIF, double click on the .bat, no matter what I do, no difference. I tried changing the clock speed with a -B64 to bring it down to 8hz to no avail.
I'm losing hope as I've been trying to do this for a year now off and on.
Any help is greatly appreciated.