Avrdude

From ElectroDragon
Jump to navigation Jump to search

Use


Avrdude GUI


Commands and Options

Description CMD
Use terminal mode
  • avrdude -p m8 -c usbasp -C ..\etc\avrdude.conf -t
  • dump eeprom 0 512
Fusebit setup avrdude -P comport -b 19200 -c avrisp -p m328p -v -e -U efuse:w:0x05:m -U hfuse:w:0xD6:m -U lfuse:w:0xFF:m
Upload flash avrdude -P comport -b 19200 -c avrisp -p m328p -v -e -U flash:w:hexfilename.hex -U lock:w:0x0F:m
  • -c choose programmer
Programmer Arduino as ISP -> avrisp
usbasp -> usbasp
  • -C config file -> ..\etc\avrdude.conf
  • -p mode
  • -t terminal mode
  • -P choose port
  • -U flash:w:"E:\xxx\Desktop\aaa.hex":a, write flash
  • -U flash:r:"E:\he\Desktop\aaa.hex":a, read flash
  • -U eeprom:w:"E:\he\Desktop\aaa.eep":a, auto
  • -P comport, -b baudrate, -B bitlock
  • L low fuse, H high fuse, E extended fuse, Lock bits
  • -F force, -V disable verify, -D disable flash erase, -e erase flash and eeprom, -n do not write,
  • -vvvv verbose

Tutorial

  • dump memory tutorial

Documents

Boards file of arduino bootloader

  • uno.vid.0=0x2341
  • uno.pid.0=0x0043
  • uno.vid.1=0x2341
  • uno.pid.1=0x0001
  • uno.vid.2=0x2A03
  • uno.pid.2=0x0043
  • uno.vid.3=0x2341
  • uno.pid.3=0x0243
  • uno.upload.tool=avrdude
  • uno.upload.protocol=arduino
  • uno.upload.maximum_size=32256
  • uno.upload.maximum_data_size=2048
  • uno.upload.speed=115200
  • uno.bootloader.tool=avrdude
  • uno.bootloader.low_fuses=0xFF
  • uno.bootloader.high_fuses=0xDE
  • uno.bootloader.extended_fuses=0x05
  • uno.bootloader.unlock_bits=0x3F
  • uno.bootloader.lock_bits=0x0F
  • uno.bootloader.file=optiboot/optiboot_atmega328.hex
  • uno.build.mcu=atmega328p
  • uno.build.f_cpu=16000000L
  • uno.build.board=AVR_UNO
  • uno.build.core=arduino
  • uno.build.variant=standard

Driver

Drive Purpose -
libusbK avrdude -
lisusb-win32 digi spark, EDAtiny -

Fuse Bit

Type Board Low High Extend Lock
EDAtiny 0xE1 0xDD 0xFE -
UNO FF DE 05 0F