Hi!
I try to program scetch directly from comand line:
./avrdude -D -C ./avrdude.conf -p m328p -b 57600 -c stk500v1 -U "flash:w:sample.hex" -P /dev/ttyUSB0
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: reading input file "sample.hex"
avrdude: input file sample.hex auto detected as Intel Hex
avrdude: writing flash (7328 bytes):
Writing | ################################################## | 100% 2.14s
avrdude: 7328 bytes of flash written
avrdude: verifying flash memory against sample.hex:
avrdude: load data flash data from input file sample.hex:
avrdude: input file sample.hex auto detected as Intel Hex
avrdude: input file sample.hex contains 7328 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 1.58s
avrdude: verifying ...
avrdude: 7328 bytes of flash verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
after this i cant reprogram board using bootloader
reprograming bootloader using parallell programming cause board programing ok from IDE
where is mistake?
i read http://www.javiervalcarce.eu/wiki/Progr … th_AVR-GCC article.
if i replace avrdude command to look like:
./avrdude -D -C ./avrdude.conf -p m328p -b 57600 -c stk500v1 -U lfuse:w:0xff:m -U hfuse:w:0xda:m -U efuse:w:0x05:m -U "flash:w:sample.hex" -P /dev/ttyUSB0
is it solve my problem?