tzn dokładnie rzecz biorąc to ja tez porgramator kupiłem (brak sprzętu do stworzenia swojego) no i dostałem na płytce soft, który powinien pozwolić mi go uruchomić. pogrzebałem jeszcze troceh i otrzymałem coś takiego w logu:
Settings\tomek\Desktop\OBROTOMIERZ.HEX"
avrdude: input file C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX auto detected as Intel Hex
avrdude: writing flash (944 bytes):
Writing | ################################################## | 100% 0.16s
avrdude: 944 bytes of flash written
avrdude: verifying flash memory against C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX:
avrdude: load data flash data from input file C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX:
avrdude: input file C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX auto detected as Intel Hex
avrdude: input file C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX contains 944 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.25s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x12 != 0x00
avrdude: verification error; content mismatch
avrdude done. Thank you.
EDIT:
teraz mam cos takiego (ale tylko na jednym wsadzie, w dodatku nie moim. to co ja kompiluje wywalaja ten pierwszy blad:
avrdude: error: programm enable: target doesn't answer. 1
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA8 is 1E 93 07
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: error: programm enable: target doesn't answer. 1
avrdude: reading input file "C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX"
avrdude: input file C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX auto detected as Intel Hex
avrdude: writing flash (8192 bytes):
Writing | ################################################## | 100% 1.38s
avrdude: 8192 bytes of flash written
avrdude: verifying flash memory against C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX:
avrdude: load data flash data from input file C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX:
avrdude: input file C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX auto detected as Intel Hex
avrdude: input file C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX contains 8192 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 2.13s
avrdude: verifying ...
avrdude: 8192 bytes of flash verified
avrdude done. Thank you.
Nie jest to prawidowe, no nie?
Ja juz nie wiem dlaczego tak sie dzieje... podlaczalem juz we "wszystkie strony", sprawdzalem polaczenia, przeinstalowywaem stery... Moze za dluga jest tasma programator-kontroler? Ma ona ok metr dlugosci
http://allegro.pl/item466340116_uniwersalna_tasma_do_programatora_isp.html
podlaczalem nawet "na krotko", tymi koncowkami uniwersalnymi. wiec miedzy uC, a programatorem jest niecale 10cm. Mi juz pomyslow brakuje. A moze fusebity poprzestawialem?
obecnie staram sie programowac taka komenda
"avrdude" -p m8 -c usbasp -U flash:w:"C:\Documents and Settings\tomek\Desktop\OBROTOMIERZ.HEX":a -F
ale podczas pierwszych prob, programowanie fusebitow bylo zaznaczone. moze zablokowalem ISP?
Edit:
problem powiedzmy ze rozwiazany... nie bylo polaczenia z jedna linia. z tym, ze pojawi sie nastepny... po zaprogramowaniu testowym programem do gaszenia i zapalania diody, ukad nie dziala.
$crystal = 1000000
$regfile = "m8def.dat"
Config Portd = Output
Pind.2 = 1
Do
Toggle Pind.2
Waitms 500
Loop
End
jak mam ustawic fusebity w avrdude?
Proszę używać przycisku "Zmień".
Scaliłem 2 posty.
[zumek]