Cześć.
Prawdopodobnie zablokowałem procesor. Przez pospiech w eclipsie w ustawieniach programatora USBasp w polu: Override default port (-P): miałem wpisane -B 375. Próba wgrania programu skończyła się zawieszeń procka i komunikatem w konsoli:
Launching C:\AVRDUDE\avrdude -pm8 -cusbasp "-P-B 375" -Uflash:w:04_LCD.hex:a -Ueeprom:w:04_LCD.eep:a
Output:
Please wait ...
avrdude_mk.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% -0.00s
avrdude_mk.exe: Device signature = 0x1e9307
avrdude_mk.exe: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude_mk.exe: current erase-rewrite cycle count is -50462977 (if being tracked)
avrdude_mk.exe: erasing chip
avrdude_mk.exe: reading input file "04_LCD.hex"
avrdude_mk.exe: input file 04_LCD.hex auto detected as Intel Hex
avrdude_mk.exe: writing flash (1268 bytes):
Writing | ################################################## | 100% 0.58s
avrdude_mk.exe: 1268 bytes of flash written
avrdude_mk.exe: verifying flash memory against 04_LCD.hex:
avrdude_mk.exe: load data flash data from input file 04_LCD.hex:
avrdude_mk.exe: input file 04_LCD.hex auto detected as Intel Hex
avrdude_mk.exe: input file 04_LCD.hex contains 1268 bytes
avrdude_mk.exe: reading on-chip flash data:
Reading | ################################################## | 100% 0.33s
avrdude_mk.exe: verifying ...
avrdude_mk.exe: verification error, first mismatch at byte 0x0000
0x20 != 0x00
avrdude_mk.exe: verification error; content mismatch
avrdude_mk.exe: safemode: Fuses OK
avrdude_mk.exe done. Thank you.
Compiled special for
http://forum.atnel.pl (v5.11.1)
avrdude finished
Analiza tego co się stało, usuniecie parametru Override default port (-P) próba wgrania ponownie programu skutkuje podobnym błędem.
Launching C:\AVRDUDE\avrdude -pm8 -cusbasp -Uflash:w:04_LCD.hex:a -Ueeprom:w:04_LCD.eep:a
Output:
Please wait ...
avrdude_mk.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude_mk.exe: Device signature = 0x1e9307
avrdude_mk.exe: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude_mk.exe: current erase-rewrite cycle count is -50462977 (if being tracked)
avrdude_mk.exe: erasing chip
avrdude_mk.exe: reading input file "04_LCD.hex"
avrdude_mk.exe: input file 04_LCD.hex auto detected as Intel Hex
avrdude_mk.exe: writing flash (1268 bytes):
Writing | ################################################## | 100% 0.58s
avrdude_mk.exe: 1268 bytes of flash written
avrdude_mk.exe: verifying flash memory against 04_LCD.hex:
avrdude_mk.exe: load data flash data from input file 04_LCD.hex:
avrdude_mk.exe: input file 04_LCD.hex auto detected as Intel Hex
avrdude_mk.exe: input file 04_LCD.hex contains 1268 bytes
avrdude_mk.exe: reading on-chip flash data:
Reading | ################################################## | 100% 0.33s
avrdude_mk.exe: verifying ...
avrdude_mk.exe: verification error, first mismatch at byte 0x0000
0x20 != 0x00
avrdude_mk.exe: verification error; content mismatch
avrdude_mk.exe: safemode: Fuses OK
avrdude_mk.exe done. Thank you.
Compiled special for
http://forum.atnel.pl (v5.11.1)
avrdude finished
Zostawiłem wiec w spokoju eclipsa. Przeszedłem do MkvCalkulatora próbując wgrać inne taktowanie lub ustawienia fabryczne. Niestety procesor zablokował się na tych 8 mhz i nie chce się dać przeprogramować. Czy jest szansa odblokować taki procesor?
Niestety w ten sposób załatwiłem dwa procesory atmega8, trzecia po usunięciu tego parametru z eclpisa programuje się normalnie jak i Atmega328p, wiec układ elektroniczny jest poprawny.