← 返回命令列表

Linux command

avrdude 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Upload

avrdude -p [atmega328p] -c [arduino] -P [/dev/ttyUSB0] -U flash:w:[firmware.hex]

Read

avrdude -p [atmega328p] -c [usbasp] -U flash:r:[backup.hex]:i

Example

avrdude -p [atmega328p] -c [usbasp] -U lfuse:w:[0xE2]:m

Verify

avrdude -p [atmega328p] -c [arduino] -P [/dev/ttyUSB0] -U flash:v:[firmware.hex]

说明

avrdude (AVR Downloader Uploader) is a utility for programming Atmel AVR microcontrollers. It supports numerous programmers and can read/write flash, EEPROM, fuse bits, and lock bits. The tool is essential for Arduino development and embedded systems work with AVR chips.

参数

-p _partno_
Specify AVR device (e.g., atmega328p, attiny85)
-c _programmer_
Programmer type (arduino, usbasp, avrisp2)
-P _port_
Communication port (/dev/ttyUSB0, COM3)
-U _memtype:op:file:format_
Memory operation (flash:w:file.hex:i)
-b _baudrate_
Override baud rate
-B _bitclock_
Bit clock period
-v
Verbose output
-n
Dry run (no writes)
-F
Force (override signature check)

FAQ

What is the avrdude command used for?

avrdude (AVR Downloader Uploader) is a utility for programming Atmel AVR microcontrollers. It supports numerous programmers and can read/write flash, EEPROM, fuse bits, and lock bits. The tool is essential for Arduino development and embedded systems work with AVR chips.

How do I run a basic avrdude example?

Run `avrdude -p [atmega328p] -c [arduino] -P [/dev/ttyUSB0] -U flash:w:[firmware.hex]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p _partno_ do in avrdude?

Specify AVR device (e.g., atmega328p, attiny85)