📄 avrdude.1
字号:
default the.Pa /dev/ppi0port is used, but if the programmer type normally connects to theserial port, the.Pa /dev/cuaa0port is the default. If you need to use a different parallel orserial port, use this option to specify the alternate port name..PpFor the JTAG ICE mkII, if.Nmhas been configured with libusb support,.Ar portcan alternatively be specified as.Ar usb Ns Op \&: Ns Ar serialno .This will cause.Nmto search a JTAG ICE mkII on USB.If.Ar serialnois also specified, it will be matched against the serial number readfrom any JTAG ICE mkII found on USB.The match is done after stripping any existing colons from the givenserial number, and right-to-left, so only the least significant bytesfrom the serial number need to be given..It Fl qDisable (or quell) output of the progress bar while reading or writingto the device. Specify it a second time for even quieter operation..It Fl sDisable safemode prompting. When safemode discovers that one or morefuse bits have unintentionally changed, it will prompt forconfirmation regarding whether or not it should attempt to recover thefuse bit(s). Specifying this flag disables the prompt and assumesthat the fuse bit(s) should be recovered without asking forconfirmation first..It Fl tTells.Nmto enter the interactive ``terminal'' mode instead of up- or downloadingfiles. See below for a detailed description of the terminal mode..It Fl uDisable the safemode fuse bit checks. Safemode is enabled by defaultand is intended to prevent unintentional fuse bit changes. Whenenabled, safemode will issue a warning if the any fuse bits are foundto be different at program exit than they were when.Nmwas invoked. Safemode won't alter fuse bits itself, but rather willprompt for instructions, unless the terminal is non-interactive, inwhich case safemode is disabled. See the.Fl soption to disable safemode prompting..It Xo Fl U Ar memtype Ns.Ar \&: Ns Ar op Ns.Ar \&: Ns Ar filename Ns.Op \&: Ns Ar format.XcPerform a memory operation as indicated. The.Ar memtypefield specifies the memory type to operate on.The available memory types are device-dependant, the actualconfiguration can be viewed with the.Cm partcommand in terminal mode.Typically, a device's memory configuration at least containsthe memory types.Ar flashand.Ar eeprom .All memory types currently known are:.Bl -tag -width "calibration" -compact.It calibrationOne or more bytes of RC oscillator calibration data..It eepromThe EEPROM of the device..It efuseThe extended fuse byte..It flashThe flash ROM of the device..It fuseThe fuse byte in devices that have only a single fuse byte..It hfuseThe high fuse byte..It lfuseThe low fuse byte..It lockThe lock byte..It signatureThe three device signature bytes (device ID)..El.PpThe.Ar opfield specifies what operation to perform:.Bl -tag -width noreset.It Ar rread device memory and write to the specified file.It Ar wread data from the specified file and write to the device memory.It Ar vread data from both the device and the specified file and perform a verify.El.PpThe.Ar filenamefield indicates the name of the file to read or write.The.Ar formatfield is optional and contains the format of the file to read orwrite..Ar Formatcan be one of:.Bl -tag -width sss.It Ar iIntel Hex.It Ar sMotorola S-record.It Ar rraw binary; little-endian byte order, in the case of the flash ROM data.It Ar mimmediate; actual byte values specified on the command line, seperatedby commas or spaces. This is good for programming fuse bytes withouthaving to create a single-byte file or enter terminal mode..It Ar aauto detect; valid for input only, and only if the input is notprovided at.Em stdin ..El.PpThe default is to use auto detection for input files, and raw binaryformat for output files.Note that if.Ar filenamecontains a colon, the.Ar formatfield is no longer optional since the filename part following the colonwould otherwise be misinterpreted as.Ar format ..It Fl vEnable verbose output..It Fl VDisable automatic verify check when uploading data..It Fl yTells.Nmto use the last four bytes of the connected parts' EEPROM memory totrack the number of times the device has been erased. When thisoption is used and the.Fl eflag is specified to generate a chip erase, the previous counter willbe saved before the chip erase, it is then incremented, and writtenback after the erase cycle completes. Presumably, the device wouldonly be erased just before being programmed, and thus, this can beutilized to give an indication of how many erase-rewrite cycles thepart has undergone. Since the FLASH memory can only endure a finitenumber of erase-rewrite cycles, one can use this option to track whena part is nearing the limit. The typical limit for Atmel AVR FLASH is1000 cycles. Of course, if the application needs the last four bytesof EEPROM memory, this option should not be used..It Fl Y Ar cyclesInstructs.Nmto initialize the erase-rewrite cycle counter residing at the last fourbytes of EEPROM memory to the specified value. If the applicationneeds the last four bytes of EEPROM memory, this option should not beused..El.Ss Terminal modeIn this mode,.Nmonly initializes communication with the MCU, and then awaits usercommands on standard input. Commands and parameters may beabbreviated to the shortest unambiguous form. Terminal mode providesa command history using.Xr readline 3 ,so previously entered command lines can be recalled and edited. Thefollowing commands are currently implemented:.Bl -tag -offset indent -width indent.It Ar dump memtype addr nbytesRead.Ar nbytesbytes from the specified memory area, and display them in the usualhexadecimal and ASCII form..It Ar dumpContinue dumping the memory contents for another.Ar nbyteswhere the previous.Ar dumpcommand left off..It Ar write memtype addr byte1 ... byteNManually program the respective memory cells, starting at address.Ar addr ,using the values.Ar byte1through.Ar byteN .This feature is not implemented for bank-addressed memories such asthe flash memory of ATMega devices..It Ar erasePerform a chip erase..It Ar send b1 b2 b3 b4Send raw instruction codes to the AVR device. If you need access to afeature of an AVR part that is not directly supported by.Nm ,this command allows you to use it, even though.Nmdoes not implement the command..It Ar sigDisplay the device signature bytes..It Ar partDisplay the current part settings and parameters. Includes chipspecific information including all memory types supported by thedevice, read/write timing, etc..It Ar vtarg voltageSet the target's supply voltage to.Ar voltageVolts..Em Only supported on the STK500 programmer..It Ar varef voltageSet the adjustable voltage source to.Ar voltageVolts.This voltage is normally used to drive the target's.Em Arefinput on the STK500..Em Only supported on the STK500 programmer..It Ar fosc freq Ns Op M Ns \&| Ns kSet the master oscillator to.Ar freqHz.An optional trailing letter.Ar \&Mmultiplies by 1E6, a trailing letter.Ar \&kby 1E3..Em Only supported on the STK500 programmer..It Ar fosc offTurn the master oscillator off..Em Only supported on the STK500 programmer..It Ar sck period.Em STK500 programmer only:Set the SCK clock period to.Ar periodmicroseconds..Pp.Em JTAG ICE only:Set the JTAG ICE bit clock period to.Ar periodmicroseconds.Note that unlike STK500 settings, this setting will be reverted toits default value (approximately 1 microsecond) when the programmingsoftware signs off from the JTAG ICE..It Ar parms.Em STK500 programmer only:Display the current voltage and master oscillator parameters..Pp.Em JTAG ICE only:Display the current target supply voltage and JTAG bit clock rate/period..It Ar \&?.It Ar helpGive a short on-line summary of the available commands..It Ar quitLeave terminal mode and thus.Nm avrdude ..El.Ss Default Parallel port pin connections(these can be changed, see the.Fl coption).TSll.\fBPin number\fP \fBFunction\fP2-5 Vcc (optional power supply to MCU)7 /RESET (to MCU)8 SCK (to MCU)9 MOSI (to MCU)10 MISO (from MCU)18-25 GND.TE.Sh FILES.Bl -tag -offset indent -width /dev/ppi0XXX.It Pa /dev/ppi0default device to be used for communication with the programminghardware.It Pa ${PREFIX}/etc/avrdude.confprogrammer and parts configuration file.It Pa ${HOME}/.avrdudercprogrammer and parts configuration file (per-user overrides).It Pa ~/.inputrcInitialization file for the.Xr readline 3library.It Pa ${PREFIX}/share/doc/avrdude/avrdude.pdfSchematic of programming hardware.El.\" .Sh EXAMPLES.\" .Sh DIAGNOSTICS.Sh SEE ALSO.Xr avr-objcopy 1 ,.Xr ppi 4 ,.Xr readline 3.PpThe AVR microcontroller product description can be found at.Pp.Dl "http://www.atmel.com/products/AVR/".\" .Sh HISTORY.Sh AUTHORS.Nm Avrdudewas written by Brian S. Dean <bsd@bsdhome.com>..PpThis man page by.ie t J\(:org Wunsch..el Joerg Wunsch..Sh BUGSPlease report bugs via.Dl "http://savannah.nongnu.org/bugs/?group=avrdude" ..PpThe JTAGICE mkII programmer currently cannot write to the flash ROMone byte at a time.For that reason, updating the flash ROM from terminal mode does notwork..PpThe device IDs used by AVR910 and AVR109 do not match, so theavr109 (aka. butterfly) programmer might report.Dl "selected device is not supported by programmer" .Use the -F option to force.Nmto contiue anway.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -