mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-06-02 09:46:34 +03:00
242 lines
13 KiB
HTML
242 lines
13 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
|
<html>
|
|
<!-- Created on June 25, 2025 by texi2html 1.82
|
|
texi2html was written by:
|
|
Lionel Cons <Lionel.Cons@cern.ch> (original author)
|
|
Karl Berry <karl@freefriends.org>
|
|
Olaf Bachmann <obachman@mathematik.uni-kl.de>
|
|
and many others.
|
|
Maintained by: Many creative people.
|
|
Send bugs and suggestions to <texi2html-bug@nongnu.org>
|
|
-->
|
|
<head>
|
|
<title>AVRDUDE: 4.4 Part Definitions</title>
|
|
|
|
<meta name="description" content="AVRDUDE: 4.4 Part Definitions">
|
|
<meta name="keywords" content="AVRDUDE: 4.4 Part Definitions">
|
|
<meta name="resource-type" content="document">
|
|
<meta name="distribution" content="global">
|
|
<meta name="Generator" content="texi2html 1.82">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<style type="text/css">
|
|
<!--
|
|
a.summary-letter {text-decoration: none}
|
|
blockquote.smallquotation {font-size: smaller}
|
|
pre.display {font-family: serif}
|
|
pre.format {font-family: serif}
|
|
pre.menu-comment {font-family: serif}
|
|
pre.menu-preformatted {font-family: serif}
|
|
pre.smalldisplay {font-family: serif; font-size: smaller}
|
|
pre.smallexample {font-size: smaller}
|
|
pre.smallformat {font-family: serif; font-size: smaller}
|
|
pre.smalllisp {font-size: smaller}
|
|
span.roman {font-family:serif; font-weight:normal;}
|
|
span.sansserif {font-family:sans-serif; font-weight:normal;}
|
|
ul.toc {list-style: none}
|
|
body { background-color: #ffd; }
|
|
h1 { text-shadow: .05em .05em #ccc; }
|
|
table {
|
|
border: 3px solid #ccf;
|
|
background-color: white;
|
|
}
|
|
div.smallexample {
|
|
background-color: #dfd;
|
|
border: 3px solid #cfc;
|
|
}
|
|
div.example {
|
|
background-color: #dfd;
|
|
border: 3px solid #cfc;
|
|
}
|
|
samp {
|
|
color: blue;
|
|
}
|
|
code {
|
|
color: green;
|
|
}
|
|
|
|
-->
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
|
|
|
|
<a name="Part-Definitions"></a>
|
|
<table cellpadding="1" cellspacing="1" border="0">
|
|
<tr><td valign="middle" align="left">[<a href="avrdude_14.html#Serial-Adapter-Definitions" title="Previous section in reading order"> < </a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_16.html#Parent-Part" title="Next section in reading order"> > </a>]</td>
|
|
<td valign="middle" align="left"> </td>
|
|
<td valign="middle" align="left">[<a href="avrdude_11.html#Configuration-Files" title="Beginning of this chapter or previous chapter"> << </a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_11.html#Configuration-Files" title="Up section"> Up </a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_19.html#Autogenerated-Files" title="Next chapter"> >> </a>]</td>
|
|
<td valign="middle" align="left"> </td>
|
|
<td valign="middle" align="left"> </td>
|
|
<td valign="middle" align="left"> </td>
|
|
<td valign="middle" align="left"> </td>
|
|
<td valign="middle" align="left">[<a href="avrdude.html#Top" title="Cover (top) of document">Top</a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_51.html#Index" title="Index">Index</a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
|
|
</tr></table>
|
|
<hr size="1">
|
|
<a name="index-part-1"></a>
|
|
<a name="Part-Definitions-1"></a>
|
|
<h2 class="section">4.4 Part Definitions</h2>
|
|
<a name="index-Part-definitions"></a>
|
|
|
|
<table><tr><td> </td><td><pre class="smallexample">part
|
|
desc = <description>; # quoted string, the long part name, eg, "ATmega328p"
|
|
id = <id>; # quoted string, normally an abbreviated part name
|
|
variants = <str1> [, <str2> ...]; # quoted strings, each starts so "<alt-name>: ..."
|
|
family_id = <id>; # quoted string, e.g., "megaAVR" or "tinyAVR"
|
|
prog_modes = PM_<i/f> {| PM_<i/f>} # interfaces, e.g., PM_SPM|PM_ISP|PM_HVPP|PM_debugWIRE
|
|
mcuid = <num>; # unique id in 0..2039 for 8-bit AVRs
|
|
archnum = <num>; # avr-gcc architecture number; -1 if not 8-bit AVR
|
|
n_interrupts = <num>; # number of interrupts, used for vector bootloaders
|
|
n_page_erase = <num>; # if set, number of pages erased during SPM erase
|
|
n_boot_sections = <num>; # Number of boot sections
|
|
boot_section_size = <num>; # Size of (smallest) boot section, if any
|
|
hvupdi_variant = <num>; # numeric: -1 or 0..3; how to enable UPDI with HV
|
|
stk500_devcode = <num>; # numeric
|
|
avr910_devcode = <num>; # numeric
|
|
is_at90s1200 = <yes/no>; # AT90S1200 part
|
|
signature = <num> <num> <num>; # signature bytes
|
|
usbpid = <num>; # DFU USB PID
|
|
chip_erase_delay = <num>; # microseconds
|
|
reset = dedicated | io;
|
|
retry_pulse = reset | sck;
|
|
# STK500 parameters (parallel programming IO lines)
|
|
pagel = <num>; # page load pin name in hex, e.g., 0xD7
|
|
bs2 = <num>; # byte select 2 pin name in hex, e.g., 0xA0
|
|
serial = <yes/no>; # can use serial programming
|
|
parallel = <yes/no/pseudo>; # can use parallel programming
|
|
# STK500v2 parameters, to be taken from Atmel's ATDF files
|
|
timeout = <num>;
|
|
stabdelay = <num>;
|
|
cmdexedelay = <num>;
|
|
synchloops = <num>;
|
|
bytedelay = <num>;
|
|
pollvalue = <num>;
|
|
pollindex = <num>;
|
|
predelay = <num>;
|
|
postdelay = <num>;
|
|
pollmethod = <num>;
|
|
hvspcmdexedelay = <num>;
|
|
# STK500v2 HV programming parameters, from ATDFs
|
|
pp_controlstack = <num>, <num>, ...; # PP only
|
|
hvsp_controlstack = <num>, <num>, ...; # HVSP only
|
|
flash_instr = <num>, <num>, <num>;
|
|
eeprom_instr = <num>, <num>, ...;
|
|
hventerstabdelay = <num>;
|
|
progmodedelay = <num>; # PP only
|
|
latchcycles = <num>;
|
|
togglevtg = <num>;
|
|
poweroffdelay = <num>;
|
|
resetdelayms = <num>;
|
|
resetdelayus = <num>;
|
|
hvleavestabdelay = <num>;
|
|
resetdelay = <num>;
|
|
synchcycles = <num>; # HVSP only
|
|
chiperasepulsewidth = <num>; # PP only
|
|
chiperasepolltimeout = <num>;
|
|
chiperasetime = <num>; # HVSP only
|
|
programfusepulsewidth = <num>; # PP only
|
|
programfusepolltimeout = <num>;
|
|
programlockpulsewidth = <num>; # PP only
|
|
programlockpolltimeout = <num>;
|
|
# debugWIRE and/or JTAG ICE mkII parameters, also from ATDF files
|
|
allowfullpagebitstream = <yes/no>;
|
|
enablepageprogramming = <yes/no>;
|
|
idr = <num>; # IO addr of IDR (OCD) reg
|
|
rampz = <num>; # IO addr of RAMPZ reg
|
|
spmcr = <num>; # mem addr of SPMC[S]R reg
|
|
eecr = <num>; # mem addr of EECR reg
|
|
eind = <num>; # mem addr of EIND reg
|
|
mcu_base = <num>; # MCU control block in ATxmega devices
|
|
nvm_base = <num>; # NVM controller in ATxmega devices
|
|
ocd_base = <num>; # OCD module in AVR8X/UPDI devices
|
|
syscfg_base = <num>; # Chip revision ID in AVR8X/UPDI devices
|
|
ocdrev = <num>; # JTAGICE3 parameter from ATDF files
|
|
pgm_enable = <instruction format>;
|
|
chip_erase = <instruction format>;
|
|
# parameters for bootloaders
|
|
autobaud_sync = <num>; # autobaud detection byte, default 0x30
|
|
factory_fcpu = <num>; # F_CPU in Hz on reset and factory-set fuses
|
|
|
|
memory <memstr>
|
|
paged = <yes/no>; # yes/no (flash of classic parts only)
|
|
offset = <num>; # memory offset
|
|
size = <num>; # bytes
|
|
page_size = <num>; # bytes
|
|
num_pages = <num>; # numeric
|
|
initval = <num>; # factory setting of fuses and lockbits
|
|
bitmask = <num>; # bits used (only in fuses and lockbits)
|
|
n_word_writes = <num>; # TPI only: if set, number of words to write
|
|
min_write_delay = <num>; # micro-seconds
|
|
max_write_delay = <num>; # micro-seconds
|
|
readback = <num> <num>; # pair of byte values
|
|
readback_p1 = <num>; # byte value (first component)
|
|
readback_p2 = <num>; # byte value (second component)
|
|
pwroff_after_write = <yes/no>; # yes/no
|
|
mode = <num>; # STK500 v2 file parameter from ATDF files
|
|
delay = <num>; # "
|
|
blocksize = <num>; # "
|
|
readsize = <num>; # "
|
|
read = <instruction format>;
|
|
write = <instruction format>;
|
|
read_lo = <instruction format>;
|
|
read_hi = <instruction format>;
|
|
write_lo = <instruction format>;
|
|
write_hi = <instruction format>;
|
|
loadpage_lo = <instruction format>;
|
|
loadpage_hi = <instruction format>;
|
|
writepage = <instruction format>;
|
|
;
|
|
;
|
|
</pre></td></tr></table>
|
|
|
|
<p>If any of the above parameters are not specified, the default value of 0
|
|
is used for numerics (except for <code>mcuid</code>, <code>hvupdi_variant</code>,
|
|
<code>ocdrev</code>, <code>initval</code> and <code>bitmask</code>, all of which default to
|
|
-1, and for <code>autobaud_sync</code> which defaults to 0x30) or the empty
|
|
string <code>""</code> for string values. If a required parameter is left empty,
|
|
AVRDUDE will complain. Almost all occurrences of numbers (with the
|
|
exception of pin numbers and where they are separated by space, e.g., in
|
|
signature and readback) can also be given as simple expressions involving
|
|
arithemtic and bitwise operators.
|
|
</p>
|
|
<table class="menu" border="0" cellspacing="0">
|
|
<tr><td align="left" valign="top"><a href="avrdude_16.html#Parent-Part">4.4.1 Parent Part</a></td><td> </td><td align="left" valign="top">
|
|
</td></tr>
|
|
<tr><td align="left" valign="top"><a href="avrdude_17.html#Instruction-Format">4.4.2 Instruction Format</a></td><td> </td><td align="left" valign="top">
|
|
</td></tr>
|
|
</table>
|
|
|
|
<hr size="1">
|
|
<table cellpadding="1" cellspacing="1" border="0">
|
|
<tr><td valign="middle" align="left">[<a href="avrdude_14.html#Serial-Adapter-Definitions" title="Previous section in reading order"> < </a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_16.html#Parent-Part" title="Next section in reading order"> > </a>]</td>
|
|
<td valign="middle" align="left"> </td>
|
|
<td valign="middle" align="left">[<a href="avrdude_11.html#Configuration-Files" title="Beginning of this chapter or previous chapter"> << </a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_11.html#Configuration-Files" title="Up section"> Up </a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_19.html#Autogenerated-Files" title="Next chapter"> >> </a>]</td>
|
|
<td valign="middle" align="left"> </td>
|
|
<td valign="middle" align="left"> </td>
|
|
<td valign="middle" align="left"> </td>
|
|
<td valign="middle" align="left"> </td>
|
|
<td valign="middle" align="left">[<a href="avrdude.html#Top" title="Cover (top) of document">Top</a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_51.html#Index" title="Index">Index</a>]</td>
|
|
<td valign="middle" align="left">[<a href="avrdude_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
|
|
</tr></table>
|
|
<p>
|
|
<font size="-1">
|
|
This document was generated on <i>June 25, 2025</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html 1.82</i></a>.
|
|
</font>
|
|
<br>
|
|
|
|
</p>
|
|
</body>
|
|
</html>
|