Witam!
Mam problem. Zacznijmy od początku:
Używam, programatora ISP STK200/300, którym programuje ATMEGA8. Wszystko było dobrze - kilkadziesiąt razy przeprogramowywałem procka -dopóki nie wpadłem na genialny pomysł żeby zmienić fusebity. Zrobiłem wszystko tak jak pisało w jakims turtorialu z neta (przy użyciu WinAvr) i od tej pory nie da sie programować procka ;| . Ponieważ jeden zdążyłem juz uszkodzić (skorzystałem z jakiegoś genialnego kalkulatora do ustawiania fusebitów) - pokazywał sie nawet komunikat nie tyle ze brak komunikacji z prockiem co uszkodzenie mikrokontrolera.)
Wiec postanowiłem się cofnąć w czasie i wsadziłem nową kostkę. Udało sie raz wpisać program do pamięci, a teraz za każdym razem przy próbie zmiany softu pokazuje mi się to:
> "make.exe" program
make.exe: *** Warning: File `.dep/timer.o.d' has modification time in the future (2007-10-29 19:35:08 > 2007-10-21 22:26:00)
avrdude -p atmega8 -P lpt1 -c stk200 -U flash:w:timer.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9307
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "timer.hex"
avrdude: input file timer.hex auto detected as Intel Hex
avrdude: writing flash (1342 bytes):
Writing | ################################################## | 100% 0.84s
avrdude: 1342 bytes of flash written
avrdude: verifying flash memory against timer.hex:
avrdude: load data flash data from input file timer.hex:
avrdude: input file timer.hex auto detected as Intel Hex
avrdude: input file timer.hex contains 1342 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.86s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0152
0x90 != 0xff
avrdude: verification error; content mismatch
avrdude done. Thank you.
make.exe: *** [program] Error 1
> Process Exit Code: 2
W najlepszym razie po wielu próbach to:
> "make.exe" program
make.exe: *** Warning: File `.dep/timer.o.d' has modification time in the future (2007-10-29 19:35:08 > 2007-10-21 22:11:42)
avrdude -p atmega8 -P lpt1 -c stk200 -U flash:w:timer.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9307
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "timer.hex"
avrdude: input file timer.hex auto detected as Intel Hex
avrdude: writing flash (1342 bytes):
Writing | ################################################## | 100% 0.86s
avrdude: 1342 bytes of flash written
avrdude: verifying flash memory against timer.hex:
avrdude: load data flash data from input file timer.hex:
avrdude: input file timer.hex auto detected as Intel Hex
avrdude: input file timer.hex contains 1342 bytes
avrdude: reading on-chip flash data:
//program jest zupełnie inny
Reading | ################################################## | 100% 0.83s
avrdude: verifying ...
avrdude: 1342 bytes of flash verified
avrdude done. Thank you.
make.exe: *** Warning: Clock skew detected. Your build may be incomplete.
> Process Exit Code: 0
Wystarczy odczytanie fusbitów a jesli nie zresetuje kompa to zawsze pokaze mi coś takiego:
> "make.exe" program
make.exe: *** Warning: File `.dep/timer.o.d' has modification time in the future (2007-10-29 19:35:08 > 2007-10-21 22:39:11)
avrdude -p atmega8 -P lpt1 -c stk200 -U flash:w:timer.hex
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
make.exe: *** [program] Error 1
> Process Exit Code: 2
Tylko co z tego jak softu i tak nie mogę zmienić. A i od początku świeci mi sie tylko czerwona dioda na programatorze. Powie mi ktoś WTF!?
Z góry dziękuję za pomoc!
Pozdrawiam!
Marcin
Mam problem. Zacznijmy od początku:
Używam, programatora ISP STK200/300, którym programuje ATMEGA8. Wszystko było dobrze - kilkadziesiąt razy przeprogramowywałem procka -dopóki nie wpadłem na genialny pomysł żeby zmienić fusebity. Zrobiłem wszystko tak jak pisało w jakims turtorialu z neta (przy użyciu WinAvr) i od tej pory nie da sie programować procka ;| . Ponieważ jeden zdążyłem juz uszkodzić (skorzystałem z jakiegoś genialnego kalkulatora do ustawiania fusebitów) - pokazywał sie nawet komunikat nie tyle ze brak komunikacji z prockiem co uszkodzenie mikrokontrolera.)
Wiec postanowiłem się cofnąć w czasie i wsadziłem nową kostkę. Udało sie raz wpisać program do pamięci, a teraz za każdym razem przy próbie zmiany softu pokazuje mi się to:
> "make.exe" program
make.exe: *** Warning: File `.dep/timer.o.d' has modification time in the future (2007-10-29 19:35:08 > 2007-10-21 22:26:00)
avrdude -p atmega8 -P lpt1 -c stk200 -U flash:w:timer.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9307
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "timer.hex"
avrdude: input file timer.hex auto detected as Intel Hex
avrdude: writing flash (1342 bytes):
Writing | ################################################## | 100% 0.84s
avrdude: 1342 bytes of flash written
avrdude: verifying flash memory against timer.hex:
avrdude: load data flash data from input file timer.hex:
avrdude: input file timer.hex auto detected as Intel Hex
avrdude: input file timer.hex contains 1342 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.86s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0152
0x90 != 0xff
avrdude: verification error; content mismatch
avrdude done. Thank you.
make.exe: *** [program] Error 1
> Process Exit Code: 2
W najlepszym razie po wielu próbach to:
> "make.exe" program
make.exe: *** Warning: File `.dep/timer.o.d' has modification time in the future (2007-10-29 19:35:08 > 2007-10-21 22:11:42)
avrdude -p atmega8 -P lpt1 -c stk200 -U flash:w:timer.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9307
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "timer.hex"
avrdude: input file timer.hex auto detected as Intel Hex
avrdude: writing flash (1342 bytes):
Writing | ################################################## | 100% 0.86s
avrdude: 1342 bytes of flash written
avrdude: verifying flash memory against timer.hex:
avrdude: load data flash data from input file timer.hex:
avrdude: input file timer.hex auto detected as Intel Hex
avrdude: input file timer.hex contains 1342 bytes
avrdude: reading on-chip flash data:
//program jest zupełnie inny
Reading | ################################################## | 100% 0.83s
avrdude: verifying ...
avrdude: 1342 bytes of flash verified
avrdude done. Thank you.
make.exe: *** Warning: Clock skew detected. Your build may be incomplete.
> Process Exit Code: 0
Wystarczy odczytanie fusbitów a jesli nie zresetuje kompa to zawsze pokaze mi coś takiego:
> "make.exe" program
make.exe: *** Warning: File `.dep/timer.o.d' has modification time in the future (2007-10-29 19:35:08 > 2007-10-21 22:39:11)
avrdude -p atmega8 -P lpt1 -c stk200 -U flash:w:timer.hex
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
make.exe: *** [program] Error 1
> Process Exit Code: 2
Tylko co z tego jak softu i tak nie mogę zmienić. A i od początku świeci mi sie tylko czerwona dioda na programatorze. Powie mi ktoś WTF!?
Z góry dziękuję za pomoc!
Pozdrawiam!
Marcin