How to reanimate a "dead"? ATTiny85

Hi there!

I dont really know what happend here but I have 2 ATTiny85 (and one 45) and I can program one with an USBASP without any problem. The other one and the 45 gives me this error output:

avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target doesn't answer. 1 
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

Der ausgewählte serielle Port 
 ist nicht vorhanden oder das Board ist nicht angeschlossen

Burning a bootloader gives me this output:

avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target doesn't answer. 1 
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

Fehler beim Brennen des Bootloaders.

As I said another one is programmed without any problem. So the circuit should be fine. Only one ATTiny85 and one ATTiny45 does not programm.

Is there anything in the old programm thats blocking the programming?

Thanks!

Sometimes I also get this error:

avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: verification error, first mismatch at byte 0x0284
         0x58 != 0x80
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch

Any ideas?

There is a fuse that can be set to disable serial (ISP) programming. To reset that fuse you need to use High Voltage Parallel Programming. The "HV Rescue Shield II" turns an Arduino UNO into a high voltage parallel programmer:

The sketch resets the chip to factory defaults. You then 'burn a bootloader' (no actual bootloader is burned) to set the fuses to work with Arduino.

Thank you very much for your response!

I havent done anything to the fuses (never done so :D) so is it possible that these fuses can be set by accident?

I had 2 IDEs open and switched between my UNO and the ATTiny to program the i2c of the tiny and the library talking to the tiny (on the uno). Sometimes I tried to upload to the attiny with the UNO settings via usbasp the by accident. Maybe this caused the issue? Any way to solve this?

There is a fuse that can be set to disable serial (ISP) programming.

The SPIEN fuse is not accessible by serial programming only by High Voltage serial programming.

Maybe the OP set the chip for an external clock source. Setup the UNO to output a clock source to rescue.

Also the reset pin (RSTDISBL) may have been disabled in which case High Voltage programming is needed.