| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
AVRDUDE is a command line tool, used as follows:
avrdude -p partno options … |
Command line options are used to control AVRDUDE's behaviour. The following options are recognized:
-p partnoThis is the only mandatory option and it tells AVRDUDE what type of part (MCU) that is connected to the programmer. The partno parameter is the part's id listed in the configuration file. Specify -p ? to list all parts in the configuration file. If a part is unknown to AVRDUDE, it means that there is no config file entry for that part, but it can be added to the configuration file if you have the Atmel datasheet so that you can enter the programming specifications. Currently, the following MCU types are understood:
| AT90CAN128 |
| AT90PWM2 |
| AT90PWM3 |
| AT90S1200 |
| AT90S2313 |
| AT90S2333 |
| AT90S2343 (*) |
| AT90S4414 |
| AT90S4433 |
| AT90S4434 |
| AT90S8515 |
| AT90S8535 |
| ATmega103 |
| ATmega128 |
| ATmega1280 |
| ATmega1281 |
| ATmega16 |
| ATmega161 |
| ATmega162 |
| ATmega163 |
| ATmega164 |
| ATmega169 |
| ATmega2560 (**) |
| ATmega2561 (**) |
| ATmega32 |
| ATmega324 |
| ATmega329 |
| ATmega3290 |
| ATmega48 |
| ATmega64 |
| ATmega640 |
| ATmega644 |
| ATmega649 |
| ATmega6490 |
| ATmega8 |
| ATmega8515 |
| ATmega8535 |
| ATmega88 |
| ATtiny12 |
| ATtiny13 |
| ATtiny15 |
| ATtiny2313 |
| ATtiny25 |
| ATtiny26 |
| ATtiny45 |
| ATtiny85 |
(*) The AT90S2323 and ATtiny22 use the same algorithm.
(**) Flash addressing above 128 KB is not supported by all programming hardware. Known to work are jtag2, stk500v2, and bit-bang programmers.
-b baudrateOverride the RS-232 connection baud rate specified in the respective programmer's entry of the configuration file.
-B bitclockSpecify the bit clock period for the JTAG interface or the ISP clock (JTAG ICE only). The value is a floating-point number in microseconds. The default value of the JTAG ICE results in about 1 microsecond bit clock period, suitable for target MCUs running at 4 MHz clock and above. Unlike certain parameters in the STK500, the JTAG ICE resets all its parameters to default values when the programming software signs off from the ICE, so for MCUs running at lower clock speeds, this parameter must be specified on the command-line.
-c programmer-idSpecify the programmer to be used. AVRDUDE knows about several common programmers. Use this option to specify which one to use. The programmer-id parameter is the programmer's id listed in the configuration file. Specify -c ? to list all programmers in the configuration file. If you have a programmer that is unknown to AVRDUDE, and the programmer is controlled via the PC parallel port, there's a good chance that it can be easily added to the configuration file without any code changes to AVRDUDE. Simply copy an existing entry and change the pin definitions to match that of the unknown programmer. Currently, the following programmer ids are understood and supported:
|
ABCmini Board, aka Dick Smith HOTCHIP |
|
Nightshade ALF-PgmAVR, |
|
AT-ISP V1.1 programming cable for AVR-SDK1 from, |
|
Atmel AppNote AVR109 Boot Loader |
|
Atmel Low Cost Serial Programmer |
|
Atmel AppNote AVR911 AVROSP (an alias for avr109) |
|
Atmel AVR ISP (an alias for stk500) |
|
Atmel AVR ISP mkII (alias for stk500v2) |
|
Atmel AVR ISP mkII (alias for stk500v2) |
|
Atmel AVR ISP, running a version 2.x firmware (an alias for stk500v2) |
|
Bascom SAMPLE programming cable |
|
Altera ByteBlaster |
|
Brian Dean's Programmer, |
|
Atmel Butterfly Development Board |
|
C2N232I, reset=dtr sck=!rts mosi=!txd miso=!cts, |
|
Direct AVR Parallel Access cable |
|
serial port banging, reset=rts sck=dtr mosi=txd miso=cts |
|
serial port banging, reset=!dtr sck=rts mosi=txd miso=cts |
|
AVR Dragon in debugWire mode |
|
AVR Dragon in high-voltage serial programming mode |
|
AVR Dragon in ISP mode |
|
AVR Dragon in JTAG mode |
|
AVR Dragon in (high-voltage) parallel programming mode |
|
Dontronics DT006 |
|
ERE ISP-AVR, |
|
Frank's STK200 clone, |
|
Futurlec.com programming cable |
|
Atmel JTAG ICE mkI, running at 115200 Bd |
|
Atmel JTAG ICE mkI, running at 19200 Bd |
|
Atmel JTAG ICE mkII (default speed 19200 Bd) |
|
Atmel JTAG ICE mkII, running at 115200 Bd |
|
Atmel JTAG ICE mkII, running at 115200 Bd |
|
Atmel JTAG ICE mkII in ISP mode. |
|
Atmel JTAG ICE mkII in debugWire mode. |
|
Atmel JTAG ICE mkI, running at 115200 Bd |
|
Atmel JTAG ICE mkII (default speed 19200 Bd) |
|
Jason Kyle's pAVR Serial Programmer |
|
Picoweb Programming Cable, |
|
Pony Prog STK200 |
|
design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts |
|
Lancos SI-Prog, |
|
Steve Bolt's Programmer |
|
STK200 |
|
Atmel STK500, probing for either version 1.x or 2.x firmware |
|
Atmel STK500 in high-voltage serial programming mode(version 2.x firmware only) |
|
Atmel STK500 in parallel programming mode (version 2.xfirmware only) |
|
Atmel STK500, running a version 1.x firmware |
|
Atmel STK500, running a version 2.x firmware |
|
USBasp, |
|
USBtiny simple USB programmer, |
|
Xilinx JTAG cable |
-C config-fileUse the specified config file for configuration data. This file contains all programmer and part definitions that AVRDUDE knows about. If you have a programmer or part that AVRDUDE does not know about, you can add it to the config file (be sure and submit a patch back to the author so that it can be incorporated for the next version). If not specified, AVRDUDE reads the configuration file from /usr/local/etc/avrdude.conf (FreeBSD and Linux). See Appendix A for the method of searching for the configuration file for Windows.
-DDisable auto erase for flash. When the -U option with flash memory is ustar root root
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
AVRDUDE is a command line tool, used as follows:
avrdude -p partno options … |
Command line options are used to control AVRDUDE's behaviour. The following options are recognized:
-p partnoThis is the only mandatory option and it tells AVRDUDE what type of part (MCU) that is connected to the programmer. The partno parameter is the part's id listed in the configuration file. Specify -p ? to list all parts in the configuration file. If a part is unknown to AVRDUDE, it means that there is no config file entry for that part, but it can be added to the configuration file if you have the Atmel datasheet so that you can enter the programming specifications. Currently, the following MCU types are understood:
| AT90CAN128 |
| AT90PWM2 |
| AT90PWM3 |
| AT90S1200 |
| AT90S2313 |
| AT90S2333 |
| AT90S2343 (*) |
| AT90S4414 |
| AT90S4433 |
| AT90S4434 |
| AT90S8515 |
| AT90S8535 |
| ATmega103 |
| ATmega128 |
| ATmega1280 |
| ATmega1281 |
| ATmega16 |
| ATmega161 |
| ATmega162 |
| ATmega163 |
| ATmega164 |
| ATmega169 |
| ATmega2560 (**) |
| ATmega2561 (**) |
| ATmega32 |
| ATmega324 |
| ATmega329 |
| ATmega3290 |
| ATmega48 |
| ATmega64 |
| ATmega640 |
| ATmega644 |
| ATmega649 |
| ATmega6490 |
| ATmega8 |
| ATmega8515 |
| ATmega8535 |
| ATmega88 |
| ATtiny12 |
| ATtiny13 |
| ATtiny15 |
| ATtiny2313 |
| ATtiny25 |
| ATtiny26 |
| ATtiny45 |
| ATtiny85 |
(*) The AT90S2323 and ATtiny22 use the same algorithm.
(**) Flash addressing above 128 KB is not supported by all programming hardware. Known to work are jtag2, stk500v2, and bit-bang programmers.
-b baudrateOverride the RS-232 connection baud rate specified in the respective programmer's entry of the configuration file.
-B bitclockSpecify the bit clock period for the JTAG interface or the ISP clock (JTAG ICE only). The value is a floating-point number in microseconds. The default value of the JTAG ICE results in about 1 microsecond bit clock period, suitable for target MCUs running at 4 MHz clock and above. Unlike certain parameters in the STK500, the JTAG ICE resets all its parameters to default values when the programming software signs off from the ICE, so for MCUs running at lower clock speeds, this parameter must be specified on the command-line.
-c programmer-idSpecify the programmer to be used. AVRDUDE knows about several common programmers. Use this option to specify which one to use. The programmer-id parameter is the programmer's id listed in the configuration file. Specify -c ? to list all programmers in the configuration file. If you have a programmer that is unknown to AVRDUDE, and the programmer is controlled via the PC parallel port, there's a good chance that it can be easily added to the configuration file without any code changes to AVRDUDE. Simply copy an existing entry and change the pin definitions to match that of the unknown programmer. Currently, the following programmer ids are understood and supported:
|
ABCmini Board, aka Dick Smith HOTCHIP |
|
Nightshade ALF-PgmAVR, |
|
AT-ISP V1.1 programming cable for AVR-SDK1 from, |
|
Atmel AppNote AVR109 Boot Loader |
|
Atmel Low Cost Serial Programmer |
|
Atmel AppNote AVR911 AVROSP (an alias for avr109) |
|
Atmel AVR ISP (an alias for stk500) |
|
Atmel AVR ISP mkII (alias for stk500v2) |
|
Atmel AVR ISP mkII (alias for stk500v2) |
|
Atmel AVR ISP, running a version 2.x firmware (an alias for stk500v2) |
|
Bascom SAMPLE programming cable |
|
Altera ByteBlaster |
|
Brian Dean's Programmer, |
|
Atmel Butterfly Development Board |
|
C2N232I, reset=dtr sck=!rts mosi=!txd miso=!cts, |
|
Direct AVR Parallel Access cable |
|
serial port banging, reset=rts sck=dtr mosi=txd miso=cts |
|
serial port banging, reset=!dtr sck=rts mosi=txd miso=cts |
|
AVR Dragon in debugWire mode |
|
AVR Dragon in high-voltage serial programming mode |
|
AVR Dragon in ISP mode |
|
AVR Dragon in JTAG mode |
|
AVR Dragon in (high-voltage) parallel programming mode |
|
Dontronics DT006 |
|
ERE ISP-AVR, |
|
Frank's STK200 clone, |
|
Futurlec.com programming cable |
|
Atmel JTAG ICE mkI, running at 115200 Bd |
|
Atmel JTAG ICE mkI, running at 19200 Bd |
|
Atmel JTAG ICE mkII (default speed 19200 Bd) |
|
Atmel JTAG ICE mkII, running at 115200 Bd |
|
Atmel JTAG ICE mkII, running at 115200 Bd |
|
Atmel JTAG ICE mkII in ISP mode. |
|
Atmel JTAG ICE mkII in debugWire mode. |
|
Atmel JTAG ICE mkI, running at 115200 Bd |
|
Atmel JTAG ICE mkII (default speed 19200 Bd) |
|
Jason Kyle's pAVR Serial Programmer |
|
Picoweb Programming Cable, |
|