Skip to content
mcuee edited this page Oct 11, 2023 · 34 revisions

= FAQ for avrdude =

1) How to read the fuse settings with avrdude 7.0 and later?

If you want to do more, try "terminal mode" (-t). You can browse around interactively through your device, including the fuse values. Non-interactively, it would need -U options, like:

avrdude … -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h

2) optiboot timeout too fast, how to use it effectively in terminal mode?

You can use piping.

echo "dump eeprom 0 0x10" | .\avrdude_pr1121v1 -c arduino -P COM4 -b 115200 -t

3) How to use avrdude for Arduino Nano Every

Please refer to the above issue for different ways to apply the 1200bps touch for the Arduino Nano Every for different OS.

4) How to write write all or some ELF sections at once?

Please refer to the above issue for the ways to write all ELF sections at once. Step 1: to check the unique memory sections.

avrdude `avrdude -pATmega328p/At | grep ^.ptmm.A | cut -f3 | uniq | sed "s/.*/-U &:w:blink.elf:a/"`

Or

$ avrdude -pm32u4/ot|grep write|cut -f3|uniq
eeprom
flash
lfuse
hfuse
efuse
lock

Step 2: to write the avrdude command based on the output of Step 1.

avrdude -v -pm32u4 -cusbasp -U{eeprom,flash,{l,h,e}fuse,lock}:w:"$1":e "${@:2}"

5) Flashing boards like Arduino Leonardo can be tricky

Please refer to the following discussion for the tips under different OS.

PR #1507 will address this issue.

6) New version 3.8 drivers for CH340 under Windows may cause troubles, please downgrade to version 3.5

Please refer to the following issue. It has the driver attached as well.

Clone this wiki locally