This is an old revision of the document!



AVRdude


AVRDUDE is a command line tool to program AVR chips. It runs in the background of the Arduino IDE. Sometimes it is necessary to erase a chip or set the fuse bits that's when the AVRdude comes handy.

Dokumentations:
http://www.nongnu.org/avrdude/user-manual/avrdude.html
Command description:
http://www.nongnu.org/avrdude/user-manual/avrdude_4.html


The device to which the programmer is attached is on
- Linux: /dev/ttyACM0
- Windows: com2

ATmega328p
To erase the chip use:

sudo avrdude -p m328p -c stk500v2 -P /dev/ttyACM0 -e -F

ATmega168
set the fuse bits:

avrdude -c stk500v2 -p m168 -P /dev/ttyACM0 -B 6 -v -U lock:w:0x3f:m -U lfuse:w:0xff:m -U hfuse:w:0xdf:m -U efuse:w:0x0:m