Proszę o pomoc bo przekopałem google, fora i dokumentacje avrdude`a i jest drobny postęp ale dalej nie działa. Kompilacja kody C do hex`a przebiega bez problemu, natomiast schody zaczynają się przy zaprogramowaniu mojej atmegi16. Idąc za głosem brata ;] podpoiłem bez żadnych układów atmege do LPT i zasilanie z usb. Programowałem już w bascomie na windowsie ale tu na ubuntu 9.04 sprawa wygląda trochę inaczej.
a teraz co się dzieje przy:
sudo avrdude -c stk200 -p m16 -U flash:w:test.hex -F
i:
sudo avrdude -c stk200 -p m16 -U flash:r:test.hex -F
i nie wiem jaka jest różnica między "w", a "r".
Bardzo proszę o pomoc.
a teraz co się dzieje przy:
sudo avrdude -c stk200 -p m16 -U flash:w:test.hex -F
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA16 is 1E 94 03
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: AVR device not responding
avrdude: reading input file "test.hex"
avrdude: input file test.hex auto detected as Intel Hex
avrdude: writing flash (182 bytes):
Writing | ################################################## | 100% 0.11s
avrdude: 182 bytes of flash written
avrdude: verifying flash memory against test.hex:
avrdude: load data flash data from input file test.hex:
avrdude: input file test.hex auto detected as Intel Hex
avrdude: input file test.hex contains 182 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.10s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x0c != 0xff
avrdude: verification error; content mismatch
avrdude: safemode: Fuses OK
avrdude done. Thank you.i:
sudo avrdude -c stk200 -p m16 -U flash:r:test.hex -F
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA16 is 1E 94 03
avrdude: reading flash memory:
Reading | ################################################## | 100% 4.40s
avrdude: writing output file "test.hex"
avrdude: output file test.hex auto detected as Intel Hex
avrdude: safemode: Fuses OK
avrdude done. Thank you.i nie wiem jaka jest różnica między "w", a "r".
Bardzo proszę o pomoc.
