Go Down

Topic: How to reanimate a "dead"? ATTiny85 (Read 95 times) previous topic - next topic

asuryan

May 18, 2019, 01:34 pm Last Edit: May 18, 2019, 01:36 pm by asuryan
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:

Code: [Select]
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:
Code: [Select]
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!
Visit my blog! http://electronics.scriblab.de

asuryan

Sometimes I also get this error:

Code: [Select]
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?
Visit my blog! http://electronics.scriblab.de

johnwasser

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:

https://mightyohm.com/blog/products/hv-rescue-shield-2-x/

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.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

asuryan

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?

Visit my blog! http://electronics.scriblab.de

justone

Quote
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.

Go Up