enorme casino..

ciao

ho fatto un pò di prove finchè sono riuscito a scassare tutto:

avevo un attiny85 che programmo tramite ide.
volevo modificare la frequenza impostando il quarzo esterno al posto dell'interno.
modifico i fuse e voilat funziona più niente: neanche reimpostare i fuse originali, errore nel check del chip e tutti gli errori possibili ed immaginabili. si può forzare kla scrittura di quelli di default?

ecco l'errore

C:\Users\Simone\Desktop\arduino-0018\hardware\tools\avr\bin>avrdude -p t85 -c av
risp -P COM5 -b 19200 -U lfuse:w:0xc0:m -U hfuse:w:0xd7:m -U efuse:w:0xff:m

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny85
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.03s

avrdude: Device signature = 0x1e930b
avrdude: reading input file "0xc0"
avrdude: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.11s

avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xc0:
avrdude: load data lfuse data from input file 0xc0:
avrdude: input file 0xc0 contains 1 bytes
avrdude: reading on-chip lfuse data:

Reading | ################################################## | 100% 0.05s

avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: reading input file "0xd7"
avrdude: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.12s

avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xd7:
avrdude: load data hfuse data from input file 0xd7:
avrdude: input file 0xd7 contains 1 bytes
avrdude: reading on-chip hfuse data:

Reading | ################################################## | 100% 0.02s

avrdude: verifying ...
avrdude: 1 bytes of hfuse verified
avrdude: reading input file "0xff"
avrdude: writing efuse (1 bytes):

Writing | ################################################## | 100% 0.03s

avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0xff:
avrdude: load data efuse data from input file 0xff:
avrdude: input file 0xff contains 1 bytes
avrdude: reading on-chip efuse data:

Reading | ################################################## | 100% 0.02s

avrdude: verifying ...
avrdude: 1 bytes of efuse verified

avrdude: safemode: Fuses OK

avrdude done.  Thank you.


C:\Users\Simone\Desktop\arduino-0018\hardware\tools\avr\bin>avrdude -p t85 -c av
risp -P COM5 -b 19200 -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny85
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.05s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


C:\Users\Simone\Desktop\arduino-0018\hardware\tools\avr\bin>avrdude -p t85 -c av
risp -P COM5 -b 19200 -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m -F

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny85
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.05s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATtiny85 is 1E 93 0B
avrdude: reading input file "0x62"
avrdude: writing lfuse (1 bytes):

Writing |                                                    | 0% 0.00s ***faile
d;
Writing | ################################################## | 100% 0.33s

avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0x62:
avrdude: load data lfuse data from input file 0x62:
avrdude: input file 0x62 contains 1 bytes
avrdude: reading on-chip lfuse data:

Reading | ################################################## | 100% 0.03s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0x62 != 0x00
avrdude: verification error; content mismatch

avrdude: safemode: lfuse changed! Was 62, and is now 0
Would you like this fuse to be changed back? [y/n] y
avrdude: ser_recv(): read error: Operazione di I/O terminata a causa dell'uscita
 dal thread oppure della richiesta di un'applicazione.