Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamvonar napisał:Podłączyć zewnętrzny generator do XTAL1 i przeprogramować fusebity.
edit: To nie wystarczy, nie zauważyłem wykasowania SPIEN...
Pozostaje programowanie wysokonapięciowe (hasło do poszukania: AVR fusebit doctor).
Godny polecenia projekt autorstwa kol. manekinen: https://www.elektroda.pl/rtvforum/topic1716521.html#8289220
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude.exe: Device signature = 0x1e950f
avrdude.exe: reading input file "0xFF"
avrdude.exe: writing lock (1 bytes):
Writing | ***failed;
################################################## | 100% 0.03s
avrdude.exe: 1 bytes of lock written
avrdude.exe: verifying lock memory against 0xFF:
avrdude.exe: load data lock data from input file 0xFF:
avrdude.exe: input file 0xFF contains 1 bytes
avrdude.exe: reading on-chip lock data:
Reading | ################################################## | 100% 0.00s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0000
0xff != 0x3f
avrdude.exe: verification error; content mismatch
avrdude.exe done. Thank you.
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude.exe: Device signature = 0x1e950f
avrdude.exe: reading input file "0xD9"
avrdude.exe: writing hfuse (1 bytes):
Writing | ################################################## | 100% -0.00s
avrdude.exe: 1 bytes of hfuse written
avrdude.exe: verifying hfuse memory against 0xD9:
avrdude.exe: load data hfuse data from input file 0xD9:
avrdude.exe: input file 0xD9 contains 1 bytes
avrdude.exe: reading on-chip hfuse data:
Reading | ################################################## | 100% 0.00s
avrdude.exe: verifying ...
avrdude.exe: 1 bytes of hfuse verified
avrdude.exe: reading input file "0x62"
avrdude.exe: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.00s
avrdude.exe: 1 bytes of lfuse written
avrdude.exe: verifying lfuse memory against 0x62:
avrdude.exe: load data lfuse data from input file 0x62:
avrdude.exe: input file 0x62 contains 1 bytes
avrdude.exe: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.00s
avrdude.exe: verifying ...
avrdude.exe: 1 bytes of lfuse verified
avrdude.exe: reading input file "0xFF"
avrdude.exe: writing efuse (1 bytes):
Writing | ***failed;
################################################## | 100% 0.03s
avrdude.exe: 1 bytes of efuse written
avrdude.exe: verifying efuse memory against 0xFF:
avrdude.exe: load data efuse data from input file 0xFF:
avrdude.exe: input file 0xFF contains 1 bytes
avrdude.exe: reading on-chip efuse data:
Reading | ################################################## | 100% 0.00s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0000
0xff != 0x07
avrdude.exe: verification error; content mismatch
avrdude.exe done. Thank you.
szczywronek napisał:yokoon napisał:Nie, nie można.Można zmienić ale tylko raz.mega328, datasheet napisał:The SPIEN Fuse is not accessible in serial programming mode.
yokoon napisał:mega328, datasheet napisał:The SPIEN Fuse is not accessible in serial programming mode.
Nie bardzo rozumiem takie stwierdzenie, że nie można zmienić bitu SPIEN przez ISP.
szczywronek napisał:@yokoon tu nie ma co rozumieć. Po prostu ten bit konfiguracyjny jest niedostępny i już. Spróbuj zrobić to co opisałeś i sam się przekonasz, że Ci się nie uda. Dowód (najpierw sprawdzam czy jest komunikacja z megą8, potem próbuję ustawić hfuse z SPIEN=1 i na koniec ponownie sprawdzam czy mega "gada"):AVRDude na powyższym listingu krzyczy, bo nie udało mu się zapisać bajtu konfiguracyjnego.Kod: BashZaloguj się, aby zobaczyć kod
------
Swoją drogą, skoro jest zabezpieczenie przed wyłączeniem SPI, to mogli pójść za ciosem i zablokować też RSTDISBL.
yokoon napisał:No właśnie, że jest dostępny tylko nie wiem czy po ustawieniu 1 da się zapisać ową zmianę w procku.
yokoon napisał:Jeszcze nie próbowałem.