[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.1 Option Descriptions

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 partno

This 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:

c128

AT90CAN128

pwm2

AT90PWM2

pwm3

AT90PWM3

1200

AT90S1200

2313

AT90S2313

2333

AT90S2333

2343

AT90S2343 (*)

4414

AT90S4414

4433

AT90S4433

4434

AT90S4434

8515

AT90S8515

8535

AT90S8535

m103

ATmega103

m128

ATmega128

m1280

ATmega1280

m1281

ATmega1281

m16

ATmega16

m161

ATmega161

m162

ATmega162

m163

ATmega163

m164

ATmega164

m169

ATmega169

m2560

ATmega2560 (**)

m2561

ATmega2561 (**)

m32

ATmega32

m324

ATmega324

m329

ATmega329

m3290

ATmega3290

m48

ATmega48

m64

ATmega64

m640

ATmega640

m644

ATmega644

m649

ATmega649

m6490

ATmega6490

m8

ATmega8

m8515

ATmega8515

m8535

ATmega8535

m88

ATmega88

t12

ATtiny12

t13

ATtiny13

t15

ATtiny15

t2313

ATtiny2313

t25

ATtiny25

t26

ATtiny26

t45

ATtiny45

t85

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 baudrate

Override the RS-232 connection baud rate specified in the respective programmer's entry of the configuration file.

-B bitclock

Specify 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-id

Specify 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

ABCmini Board, aka Dick Smith HOTCHIP

alf

Nightshade ALF-PgmAVR,
http://nightshade.homeip.net/

atisp

AT-ISP V1.1 programming cable for AVR-SDK1 from,
http://micro-research.co.th/

avr109

Atmel AppNote AVR109 Boot Loader

avr910

Atmel Low Cost Serial Programmer

avr911

Atmel AppNote AVR911 AVROSP (an alias for avr109)

avrisp

Atmel AVR ISP (an alias for stk500)

avrisp2

Atmel AVR ISP mkII (alias for stk500v2)

avrispmkII

Atmel AVR ISP mkII (alias for stk500v2)

avrispv2

Atmel AVR ISP, running a version 2.x firmware (an alias for stk500v2)

bascom

Bascom SAMPLE programming cable

blaster

Altera ByteBlaster

bsd

Brian Dean's Programmer,
http://www.bsdhome.com/avrdude/

butterfly

Atmel Butterfly Development Board

c2n232i

C2N232I, reset=dtr sck=!rts mosi=!txd miso=!cts,
http://www.ktverkko.fi/~msmakela/8bit/c2n232/hardware/index.en.html

dapa

Direct AVR Parallel Access cable

dasa

serial port banging, reset=rts sck=dtr mosi=txd miso=cts

dasa3

serial port banging, reset=!dtr sck=rts mosi=txd miso=cts

dragon_dw

AVR Dragon in debugWire mode

dragon_hvsp

AVR Dragon in high-voltage serial programming mode

dragon_isp

AVR Dragon in ISP mode

dragon_jtag

AVR Dragon in JTAG mode

dragon_pp

AVR Dragon in (high-voltage) parallel programming mode

dt006

Dontronics DT006

ere-isp-avr

ERE ISP-AVR,
http://www.ere.co.th/download/sch050713.pdf

frank-stk200

Frank's STK200 clone,
http://electropol.free.fr/spip/spip.php?article15

futurlec

Futurlec.com programming cable

jtag1

Atmel JTAG ICE mkI, running at 115200 Bd

jtag1slow

Atmel JTAG ICE mkI, running at 19200 Bd

jtag2slow

Atmel JTAG ICE mkII (default speed 19200 Bd)

jtag2

Atmel JTAG ICE mkII, running at 115200 Bd

jtag2fast

Atmel JTAG ICE mkII, running at 115200 Bd

jtag2isp

Atmel JTAG ICE mkII in ISP mode.

jtag2dw

Atmel JTAG ICE mkII in debugWire mode.

jtagmkI

Atmel JTAG ICE mkI, running at 115200 Bd

jtagmkII

Atmel JTAG ICE mkII (default speed 19200 Bd)

pavr

Jason Kyle's pAVR Serial Programmer

picoweb

Picoweb Programming Cable,
http://www.picoweb.net/

pony-stk200

Pony Prog STK200

ponyser

design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts

siprog

Lancos SI-Prog,
http://www.lancos.com/siprogsch.html

sp12

Steve Bolt's Programmer

stk200

STK200

stk500

Atmel STK500, probing for either version 1.x or 2.x firmware

stk500hvsp

Atmel STK500 in high-voltage serial programming mode(version 2.x firmware only)

stk500pp

Atmel STK500 in parallel programming mode (version 2.xfirmware only)

stk500v1

Atmel STK500, running a version 1.x firmware

stk500v2

Atmel STK500, running a version 2.x firmware

usbasp

USBasp,
http://www.fischl.de/usbasp/

usbtiny

USBtiny simple USB programmer,
http://www.ladyada.net/make/usbtinyisp/

xil

Xilinx JTAG cable

-C config-file

Use 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.

-D

Disable auto erase for flash. When the -U option with flash memory is ustar rootroot AVRDUDE: 2.1 Option Descriptions

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.1 Option Descriptions

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 partno

This 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:

c128

AT90CAN128

pwm2

AT90PWM2

pwm3

AT90PWM3

1200

AT90S1200

2313

AT90S2313

2333

AT90S2333

2343

AT90S2343 (*)

4414

AT90S4414

4433

AT90S4433

4434

AT90S4434

8515

AT90S8515

8535

AT90S8535

m103

ATmega103

m128

ATmega128

m1280

ATmega1280

m1281

ATmega1281

m16

ATmega16

m161

ATmega161

m162

ATmega162

m163

ATmega163

m164

ATmega164

m169

ATmega169

m2560

ATmega2560 (**)

m2561

ATmega2561 (**)

m32

ATmega32

m324

ATmega324

m329

ATmega329

m3290

ATmega3290

m48

ATmega48

m64

ATmega64

m640

ATmega640

m644

ATmega644

m649

ATmega649

m6490

ATmega6490

m8

ATmega8

m8515

ATmega8515

m8535

ATmega8535

m88

ATmega88

t12

ATtiny12

t13

ATtiny13

t15

ATtiny15

t2313

ATtiny2313

t25

ATtiny25

t26

ATtiny26

t45

ATtiny45

t85

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 baudrate

Override the RS-232 connection baud rate specified in the respective programmer's entry of the configuration file.

-B bitclock

Specify 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-id

Specify 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

ABCmini Board, aka Dick Smith HOTCHIP

alf

Nightshade ALF-PgmAVR,
http://nightshade.homeip.net/

atisp

AT-ISP V1.1 programming cable for AVR-SDK1 from,
http://micro-research.co.th/

avr109

Atmel AppNote AVR109 Boot Loader

avr910

Atmel Low Cost Serial Programmer

avr911

Atmel AppNote AVR911 AVROSP (an alias for avr109)

avrisp

Atmel AVR ISP (an alias for stk500)

avrisp2

Atmel AVR ISP mkII (alias for stk500v2)

avrispmkII

Atmel AVR ISP mkII (alias for stk500v2)

avrispv2

Atmel AVR ISP, running a version 2.x firmware (an alias for stk500v2)

bascom

Bascom SAMPLE programming cable

blaster

Altera ByteBlaster

bsd

Brian Dean's Programmer,
http://www.bsdhome.com/avrdude/

butterfly

Atmel Butterfly Development Board

c2n232i

C2N232I, reset=dtr sck=!rts mosi=!txd miso=!cts,
http://www.ktverkko.fi/~msmakela/8bit/c2n232/hardware/index.en.html

dapa

Direct AVR Parallel Access cable

dasa

serial port banging, reset=rts sck=dtr mosi=txd miso=cts

dasa3

serial port banging, reset=!dtr sck=rts mosi=txd miso=cts

dragon_dw

AVR Dragon in debugWire mode

dragon_hvsp

AVR Dragon in high-voltage serial programming mode

dragon_isp

AVR Dragon in ISP mode

dragon_jtag

AVR Dragon in JTAG mode

dragon_pp

AVR Dragon in (high-voltage) parallel programming mode

dt006

Dontronics DT006

ere-isp-avr

ERE ISP-AVR,
http://www.ere.co.th/download/sch050713.pdf

frank-stk200

Frank's STK200 clone,
http://electropol.free.fr/spip/spip.php?article15

futurlec

Futurlec.com programming cable

jtag1

Atmel JTAG ICE mkI, running at 115200 Bd

jtag1slow

Atmel JTAG ICE mkI, running at 19200 Bd

jtag2slow

Atmel JTAG ICE mkII (default speed 19200 Bd)

jtag2

Atmel JTAG ICE mkII, running at 115200 Bd

jtag2fast

Atmel JTAG ICE mkII, running at 115200 Bd

jtag2isp

Atmel JTAG ICE mkII in ISP mode.

jtag2dw

Atmel JTAG ICE mkII in debugWire mode.

jtagmkI

Atmel JTAG ICE mkI, running at 115200 Bd

jtagmkII

Atmel JTAG ICE mkII (default speed 19200 Bd)

pavr

Jason Kyle's pAVR Serial Programmer

picoweb

Picoweb Programming Cable,
http://www.picoweb.net/

pony-stk20