AVRDUDE:

Online Documentation

read signature:
avrdude -p m328p -v -B 10 -c USBasp -U signature:r:-:h

read fuses:
avrdude -p m328p -v -B 10 -c USBasp -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h

Fuse calculator

Low High Extended BOD avrdude -p m328p -v -B 10 -c USBasp
0xFF 0xDA 0xFE 1,8 V -U lfuse:w:0xff:m -U hfuse:w:0xda:m -U efuse:w:0xfe:m
0xFF 0xDA 0xFD 2,7 V -U lfuse:w:0xff:m -U hfuse:w:0xda:m -U efuse:w:0xfd:m
0xFF 0xDA 0xFF DISABLE -U lfuse:w:0xff:m -U hfuse:w:0xda:m -U efuse:w:0xff:m


write fuses (default for Arduino Duemilanove, Pro Mini 8 - 16 MHz, 2,7 V BOD):
avrdude -p m328p -v -B 10 -c USBasp -U lfuse:w:0xff:m -U hfuse:w:0xda:m -U efuse:w:0xfd:m

write fuse (1,8 V BOD):
avrdude -p m328p -v -B 10 -c USBasp -U efuse:w:0xfe:m

write bootloader:
avrdude -p m328p -c USBasp -e -U flash:w:ATmegaBOOT_168_atmega328.hex:i
avrdude -p m328p -c USBasp -e -U flash:w:optiboot_atmega328.hex:i
avrdude -p m328p -c USBasp -e -U flash:w:ATmegaBOOT_168_atmega328_pro_8MHz.hex:i

read flash:
avrdude -p m328p -c USBasp -U flash:r:-:i
avrdude -p m328p -P usb -c USBasp -U flash:r:flash.hex:i

read eeprom:
avrdude -p m328p -v -c USBasp -U eeprom:r:-:i
avrdude -p m328p -v -c USBasp -U eeprom:r:eeprom.hex:i

erase flash:
avrdude -p m328p -c USBasp -e

 

HEX file checksum calculator

Firmware for microcontrollers are often stored in Intel HEX files. For testing and debugging sometimes it is necessary to change some values directly in the HEX file. The Intel HEX file format is easy to read and to modify except the checksum.

Analyse HEX file line

Please enter one line of HEX file to analyze it, to calculate and verify the checksum. If you don't know the checksum, you can omit it.