2001-09-19 17:04:25 +00:00
|
|
|
# $Id$
|
|
|
|
#
|
2003-02-06 05:13:32 +00:00
|
|
|
# AVRDUDE Configuration File
|
2001-09-19 17:04:25 +00:00
|
|
|
#
|
2003-02-06 05:13:32 +00:00
|
|
|
# This file contains configuration data used by AVRDUDE which describes
|
2001-10-14 23:17:26 +00:00
|
|
|
# the programming hardware pinouts and also provides part definitions.
|
2003-02-06 05:13:32 +00:00
|
|
|
# AVRDUDE's "-C" command line option specifies the location of the
|
2001-12-15 22:17:46 +00:00
|
|
|
# configuration file. The "-c" option names the programmer configuration
|
2001-10-14 23:17:26 +00:00
|
|
|
# which must match one of the entry's "id" parameter. The "-p" option
|
2003-02-06 05:13:32 +00:00
|
|
|
# identifies which part AVRDUDE is going to be programming and must match
|
2001-10-14 23:17:26 +00:00
|
|
|
# one of the parts' "id" parameter.
|
2001-09-19 17:04:25 +00:00
|
|
|
#
|
2001-10-14 23:17:26 +00:00
|
|
|
# Possible entry formats are:
|
2001-09-19 17:04:25 +00:00
|
|
|
#
|
2001-10-14 23:17:26 +00:00
|
|
|
# programmer
|
2004-01-03 18:36:44 +00:00
|
|
|
# id = <id1> [, <id2> [, <id3>] ...] ; # <idN> are quoted strings
|
|
|
|
# desc = <description> ; # quoted string
|
2006-09-19 22:27:30 +00:00
|
|
|
# type = par | stk500 | stk500v2 | stk500pp | stk500hvsp | stk500generic |
|
2008-03-14 13:00:08 +00:00
|
|
|
# stk600 | stk600pp | stk600hvsp |
|
2006-09-10 20:41:00 +00:00
|
|
|
# avr910 | butterfly | usbasp |
|
2006-11-20 23:23:37 +00:00
|
|
|
# jtagmki | jtagmkii | jtagmkii_isp | jtagmkii_dw |
|
|
|
|
# dragon_dw | dragon_jtag | dragon_isp | dragon_pp |
|
2006-11-01 21:47:25 +00:00
|
|
|
# dragon_hvsp; # programmer type
|
2004-01-03 18:36:44 +00:00
|
|
|
# baudrate = <num> ; # baudrate for avr910-programmer
|
|
|
|
# vcc = <num1> [, <num2> ... ] ; # pin number(s)
|
|
|
|
# reset = <num> ; # pin number
|
|
|
|
# sck = <num> ; # pin number
|
|
|
|
# mosi = <num> ; # pin number
|
|
|
|
# miso = <num> ; # pin number
|
|
|
|
# errled = <num> ; # pin number
|
|
|
|
# rdyled = <num> ; # pin number
|
|
|
|
# pgmled = <num> ; # pin number
|
|
|
|
# vfyled = <num> ; # pin number
|
2001-10-14 23:17:26 +00:00
|
|
|
# ;
|
2001-09-19 17:04:25 +00:00
|
|
|
#
|
2001-10-14 23:17:26 +00:00
|
|
|
# part
|
|
|
|
# id = <id> ; # quoted string
|
|
|
|
# desc = <description> ; # quoted string
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
# has_jtag = <yes/no> ; # part has JTAG i/f
|
2006-11-20 23:23:37 +00:00
|
|
|
# has_debugwire = <yes/no> ; # part has debugWire i/f
|
2003-03-18 05:49:29 +00:00
|
|
|
# devicecode = <num> ; # deprecated, use stk500_devcode
|
2003-03-17 06:20:02 +00:00
|
|
|
# stk500_devcode = <num> ; # numeric
|
|
|
|
# avr910_devcode = <num> ; # numeric
|
2006-02-27 17:18:42 +00:00
|
|
|
# signature = <num> <num> <num> ; # signature bytes
|
2001-10-14 23:17:26 +00:00
|
|
|
# chip_erase_delay = <num> ; # micro-seconds
|
2003-02-21 18:12:57 +00:00
|
|
|
# reset = dedicated | io;
|
|
|
|
# retry_pulse = reset | sck;
|
2001-11-24 01:44:06 +00:00
|
|
|
# pgm_enable = <instruction format> ;
|
|
|
|
# chip_erase = <instruction format> ;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
# chip_erase_delay = <num> ; # chip erase delay (us)
|
|
|
|
# # STK500 parameters (parallel programming IO lines)
|
|
|
|
# pagel = <num> ; # pin name in hex, i.e., 0xD7
|
|
|
|
# bs2 = <num> ; # pin name in hex, i.e., 0xA0
|
|
|
|
# serial = <yes/no> ; # can use serial downloading
|
|
|
|
# parallel = <yes/no/pseudo>; # can use par. programming
|
|
|
|
# # STK500v2 parameters, to be taken from Atmel's XML files
|
|
|
|
# timeout = <num> ;
|
|
|
|
# stabdelay = <num> ;
|
2006-07-21 21:53:49 +00:00
|
|
|
# cmdexedelay = <num> ;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
# synchloops = <num> ;
|
|
|
|
# bytedelay = <num> ;
|
|
|
|
# pollvalue = <num> ;
|
|
|
|
# pollindex = <num> ;
|
|
|
|
# predelay = <num> ;
|
|
|
|
# postdelay = <num> ;
|
|
|
|
# pollmethod = <num> ;
|
|
|
|
# mode = <num> ;
|
|
|
|
# delay = <num> ;
|
|
|
|
# blocksize = <num> ;
|
|
|
|
# readsize = <num> ;
|
2006-07-21 21:53:49 +00:00
|
|
|
# hvspcmdexedelay = <num> ;
|
|
|
|
# # STK500v2 HV programming parameters, from XML
|
|
|
|
# pp_controlstack = <num>, <num>, ...; # PP only
|
|
|
|
# hvsp_controlstack = <num>, <num>, ...; # HVSP only
|
|
|
|
# hventerstabdelay = <num>;
|
|
|
|
# progmodedelay = <num>; # PP only
|
2006-07-19 21:28:14 +00:00
|
|
|
# latchcycles = <num>;
|
|
|
|
# togglevtg = <num>;
|
|
|
|
# poweroffdelay = <num>;
|
|
|
|
# resetdelayms = <num>;
|
|
|
|
# resetdelayus = <num>;
|
2006-07-21 21:53:49 +00:00
|
|
|
# hvleavestabdelay = <num>;
|
2006-07-19 21:28:14 +00:00
|
|
|
# resetdelay = <num>;
|
2006-07-21 21:53:49 +00:00
|
|
|
# synchcycles = <num>; # HVSP only
|
|
|
|
# chiperasepulsewidth = <num>; # PP only
|
2006-07-19 21:28:14 +00:00
|
|
|
# chiperasepolltimeout = <num>;
|
2006-07-21 21:53:49 +00:00
|
|
|
# chiperasetime = <num>; # HVSP only
|
|
|
|
# programfusepulsewidth = <num>; # PP only
|
2006-07-19 21:28:14 +00:00
|
|
|
# programfusepolltimeout = <num>;
|
2006-07-21 21:53:49 +00:00
|
|
|
# programlockpulsewidth = <num>; # PP only
|
2006-07-19 21:28:14 +00:00
|
|
|
# programlockpolltimeout = <num>;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
# # JTAG ICE mkII parameters, also from XML 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.
|
Quite some cleanup of the JTAG ICE mkII stuff.
. Implement the new EECRAddress field in the device descriptor that is
required by the 4.x firmware; make an uneducated guess about what
firmware requires what length of device descriptor -- perhaps Atmel
can be convinced to publish an official matrix for that.
. Specify EECR in the config file where required. Obviously, only
locations that differ from the 0x3c default are mentioned in the
XML files, so by now, this only affects the AT90CAN128 for us.
. After clarification with Atmel, EnablePageProgramming should really
default to 1, and only cleared if specified by an XML parameter. So
far, only the XML files for the ATmega256x and ATmega406 do specify
it at all, and they specify a 1, too.
. Drop the entire OCDEN fuse heuristic. If OCDEN is unprogrammed at
startup, issue a warning that single-byte EEPROM updates won't be
possible. Leave it to the user to program the fuse if desired.
That way, we won't run into any issue of prematurely wearing out the
hfuse EEPROM cell. Interestingly enough, this also solved the
problem of the target not restarting from scratch upon sign-off.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@461 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-11 20:06:23 +00:00
|
|
|
# eecr = <num> ; # mem addr of EECR reg.
|
|
|
|
# # (only when != 0x3c)
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
#
|
2001-11-24 01:44:06 +00:00
|
|
|
# memory <memtype>
|
2001-10-16 23:32:30 +00:00
|
|
|
# paged = <yes/no> ; # yes / no
|
2001-10-14 23:17:26 +00:00
|
|
|
# size = <num> ; # bytes
|
2001-10-16 23:32:30 +00:00
|
|
|
# page_size = <num> ; # bytes
|
|
|
|
# num_pages = <num> ; # numeric
|
2001-10-14 23:17:26 +00:00
|
|
|
# min_write_delay = <num> ; # micro-seconds
|
|
|
|
# max_write_delay = <num> ; # micro-seconds
|
|
|
|
# readback_p1 = <num> ; # byte value
|
|
|
|
# readback_p2 = <num> ; # byte value
|
2002-02-14 02:59:39 +00:00
|
|
|
# pwroff_after_write = <yes/no> ; # yes / no
|
2001-11-24 01:44:06 +00:00
|
|
|
# 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> ;
|
2001-10-14 23:17:26 +00:00
|
|
|
# ;
|
|
|
|
# ;
|
2001-09-19 17:04:25 +00:00
|
|
|
#
|
2001-11-24 01:44:06 +00:00
|
|
|
# If any of the above parameters are not specified, the default value
|
|
|
|
# of 0 is used for numerics or the empty string ("") for string
|
2003-02-06 05:13:32 +00:00
|
|
|
# values. If a required parameter is left empty, AVRDUDE will
|
2001-11-24 01:44:06 +00:00
|
|
|
# complain.
|
|
|
|
#
|
|
|
|
# NOTES:
|
2002-12-01 15:05:56 +00:00
|
|
|
# * 'devicecode' is the device code used by the STK500 (see codes
|
|
|
|
# listed below)
|
2001-11-24 01:44:06 +00:00
|
|
|
# * Not all memory types will implement all instructions.
|
|
|
|
# * AVR Fuse bits and Lock bits are implemented as a type of memory.
|
|
|
|
# * Example memory types are:
|
|
|
|
# "flash", "eeprom", "fuse", "lfuse" (low fuse), "hfuse" (high
|
|
|
|
# fuse), "signature", "calibration", "lock"
|
2003-02-06 05:13:32 +00:00
|
|
|
# * The memory type specified on the avrdude command line must match
|
2001-11-24 01:44:06 +00:00
|
|
|
# one of the memory types defined for the specified chip.
|
2003-02-06 05:13:32 +00:00
|
|
|
# * The pwroff_after_write flag causes avrdude to attempt to
|
2002-02-14 02:59:39 +00:00
|
|
|
# power the device off and back on after an unsuccessful write to
|
|
|
|
# the affected memory area if VCC programmer pins are defined. If
|
|
|
|
# VCC pins are not defined for the programmer, a message
|
|
|
|
# indicating that the device needs a power-cycle is printed out.
|
|
|
|
# This flag was added to work around a problem with the
|
|
|
|
# at90s4433/2333's; see the at90s4433 errata at:
|
|
|
|
#
|
|
|
|
# http://www.atmel.com/atmel/acrobat/doc1280.pdf
|
2001-11-24 01:44:06 +00:00
|
|
|
#
|
|
|
|
# INSTRUCTION FORMATS
|
|
|
|
#
|
|
|
|
# Instruction formats are specified as a comma seperated list of
|
|
|
|
# string values containing information (bit specifiers) about each
|
|
|
|
# of the 32 bits of the instruction. Bit specifiers may be one of
|
|
|
|
# the following formats:
|
|
|
|
#
|
|
|
|
# '1' = the bit is always set on input as well as output
|
|
|
|
#
|
|
|
|
# '0' = the bit is always clear on input as well as output
|
|
|
|
#
|
|
|
|
# 'x' = the bit is ignored on input and output
|
|
|
|
#
|
|
|
|
# 'a' = the bit is an address bit, the bit-number matches this bit
|
|
|
|
# specifier's position within the current instruction byte
|
|
|
|
#
|
|
|
|
# 'aN' = the bit is the Nth address bit, bit-number = N, i.e., a12
|
|
|
|
# is address bit 12 on input, a0 is address bit 0.
|
|
|
|
#
|
|
|
|
# 'i' = the bit is an input data bit
|
|
|
|
#
|
|
|
|
# 'o' = the bit is an output data bit
|
|
|
|
#
|
|
|
|
# Each instruction must be composed of 32 bit specifiers. The
|
|
|
|
# instruction specification closely follows the instruction data
|
|
|
|
# provided in Atmel's data sheets for their parts.
|
2001-10-14 23:17:26 +00:00
|
|
|
#
|
|
|
|
# See below for some examples.
|
|
|
|
#
|
2002-12-01 15:05:56 +00:00
|
|
|
#
|
|
|
|
# The following are STK500 part device codes to use for the
|
|
|
|
# "devicecode" field of the part. These came from Atmel's software
|
|
|
|
# section avr061.zip which accompanies the application note
|
|
|
|
# AVR061 available from:
|
|
|
|
#
|
|
|
|
# http://www.atmel.com/atmel/acrobat/doc2525.pdf
|
|
|
|
#
|
|
|
|
|
|
|
|
#define ATTINY10 0x10
|
|
|
|
#define ATTINY11 0x11
|
|
|
|
#define ATTINY12 0x12
|
2004-06-22 17:38:54 +00:00
|
|
|
#define ATTINY15 0x13
|
|
|
|
#define ATTINY13 0x14
|
2002-12-01 15:05:56 +00:00
|
|
|
|
|
|
|
#define ATTINY22 0x20
|
|
|
|
#define ATTINY26 0x21
|
|
|
|
#define ATTINY28 0x22
|
2004-06-22 17:38:54 +00:00
|
|
|
#define ATTINY2313 0x23
|
2002-12-01 15:05:56 +00:00
|
|
|
|
|
|
|
#define AT90S1200 0x33
|
|
|
|
|
|
|
|
#define AT90S2313 0x40
|
|
|
|
#define AT90S2323 0x41
|
|
|
|
#define AT90S2333 0x42
|
|
|
|
#define AT90S2343 0x43
|
|
|
|
|
|
|
|
#define AT90S4414 0x50
|
|
|
|
#define AT90S4433 0x51
|
|
|
|
#define AT90S4434 0x52
|
2004-06-22 17:38:54 +00:00
|
|
|
#define ATMEGA48 0x59
|
2002-12-01 15:05:56 +00:00
|
|
|
|
|
|
|
#define AT90S8515 0x60
|
|
|
|
#define AT90S8535 0x61
|
|
|
|
#define AT90C8534 0x62
|
|
|
|
#define ATMEGA8515 0x63
|
|
|
|
#define ATMEGA8535 0x64
|
|
|
|
|
|
|
|
#define ATMEGA8 0x70
|
2004-06-22 17:38:54 +00:00
|
|
|
#define ATMEGA88 0x73
|
2005-11-04 13:51:32 +00:00
|
|
|
#define ATMEGA168 0x86
|
2002-12-01 15:05:56 +00:00
|
|
|
|
|
|
|
#define ATMEGA161 0x80
|
|
|
|
#define ATMEGA163 0x81
|
|
|
|
#define ATMEGA16 0x82
|
|
|
|
#define ATMEGA162 0x83
|
|
|
|
#define ATMEGA169 0x84
|
|
|
|
|
|
|
|
#define ATMEGA323 0x90
|
|
|
|
#define ATMEGA32 0x91
|
|
|
|
|
2003-11-14 04:43:55 +00:00
|
|
|
#define ATMEGA64 0xA0
|
|
|
|
|
2002-12-01 15:05:56 +00:00
|
|
|
#define ATMEGA103 0xB1
|
|
|
|
#define ATMEGA128 0xB2
|
2004-06-22 17:38:54 +00:00
|
|
|
#define AT90CAN128 0xB3
|
2007-10-29 22:43:00 +00:00
|
|
|
#define AT90CAN64 0xB3
|
|
|
|
#define AT90CAN32 0xB3
|
2002-12-01 15:05:56 +00:00
|
|
|
|
|
|
|
#define AT86RF401 0xD0
|
|
|
|
|
|
|
|
#define AT89START 0xE0
|
|
|
|
#define AT89S51 0xE0
|
|
|
|
#define AT89S52 0xE1
|
|
|
|
|
2006-08-21 21:00:45 +00:00
|
|
|
# The following table lists the devices in the original AVR910
|
|
|
|
# appnote:
|
|
|
|
# |Device |Signature | Code |
|
|
|
|
# +-------+----------+------+
|
|
|
|
# |tiny12 | 1E 90 05 | 0x55 |
|
|
|
|
# |tiny15 | 1E 90 06 | 0x56 |
|
|
|
|
# | | | |
|
|
|
|
# | S1200 | 1E 90 01 | 0x13 |
|
|
|
|
# | | | |
|
|
|
|
# | S2313 | 1E 91 01 | 0x20 |
|
|
|
|
# | S2323 | 1E 91 02 | 0x48 |
|
|
|
|
# | S2333 | 1E 91 05 | 0x34 |
|
|
|
|
# | S2343 | 1E 91 03 | 0x4C |
|
|
|
|
# | | | |
|
|
|
|
# | S4414 | 1E 92 01 | 0x28 |
|
|
|
|
# | S4433 | 1E 92 03 | 0x30 |
|
|
|
|
# | S4434 | 1E 92 02 | 0x6C |
|
|
|
|
# | | | |
|
|
|
|
# | S8515 | 1E 93 01 | 0x38 |
|
|
|
|
# | S8535 | 1E 93 03 | 0x68 |
|
|
|
|
# | | | |
|
|
|
|
# |mega32 | 1E 95 01 | 0x72 |
|
|
|
|
# |mega83 | 1E 93 05 | 0x65 |
|
|
|
|
# |mega103| 1E 97 01 | 0x41 |
|
|
|
|
# |mega161| 1E 94 01 | 0x60 |
|
|
|
|
# |mega163| 1E 94 02 | 0x64 |
|
|
|
|
|
|
|
|
# Appnote AVR109 also has a table of AVR910 device codes, which
|
|
|
|
# lists:
|
|
|
|
# dev avr910 signature
|
|
|
|
# ATmega8 0x77 0x1E 0x93 0x07
|
|
|
|
# ATmega8515 0x3B 0x1E 0x93 0x06
|
|
|
|
# ATmega8535 0x6A 0x1E 0x93 0x08
|
|
|
|
# ATmega16 0x75 0x1E 0x94 0x03
|
|
|
|
# ATmega162 0x63 0x1E 0x94 0x04
|
|
|
|
# ATmega163 0x66 0x1E 0x94 0x02
|
|
|
|
# ATmega169 0x79 0x1E 0x94 0x05
|
|
|
|
# ATmega32 0x7F 0x1E 0x95 0x02
|
|
|
|
# ATmega323 0x73 0x1E 0x95 0x01
|
|
|
|
# ATmega64 0x46 0x1E 0x96 0x02
|
|
|
|
# ATmega128 0x44 0x1E 0x97 0x02
|
2007-05-16 21:29:36 +00:00
|
|
|
#
|
|
|
|
# These codes refer to "BOOT" device codes which are apparently
|
|
|
|
# different than standard device codes, for whatever reasons
|
|
|
|
# (often one above the standard code).
|
|
|
|
|
|
|
|
# There are several extended versions of AVR910 implementations around
|
|
|
|
# in the Internet. These add the following codes (only devices that
|
|
|
|
# actually exist are listed):
|
|
|
|
|
|
|
|
# ATmega8515 0x3A
|
|
|
|
# ATmega128 0x43
|
|
|
|
# ATmega64 0x45
|
|
|
|
# ATtiny26 0x5E
|
|
|
|
# ATmega8535 0x69
|
|
|
|
# ATmega32 0x72
|
|
|
|
# ATmega16 0x74
|
|
|
|
# ATmega8 0x76
|
|
|
|
# ATmega169 0x78
|
2002-12-01 15:05:56 +00:00
|
|
|
|
2003-02-21 18:46:51 +00:00
|
|
|
#
|
|
|
|
# Overall avrdude defaults
|
|
|
|
#
|
2003-02-25 00:57:27 +00:00
|
|
|
default_parallel = "@DEFAULT_PAR_PORT@";
|
|
|
|
default_serial = "@DEFAULT_SER_PORT@";
|
2003-02-21 18:46:51 +00:00
|
|
|
|
|
|
|
|
2002-12-01 15:05:56 +00:00
|
|
|
#
|
|
|
|
# PROGRAMMER DEFINITIONS
|
|
|
|
#
|
2001-10-14 23:17:26 +00:00
|
|
|
|
2003-03-04 16:28:25 +00:00
|
|
|
programmer
|
|
|
|
id = "avrisp";
|
|
|
|
desc = "Atmel AVR ISP";
|
|
|
|
type = stk500;
|
|
|
|
;
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
programmer
|
|
|
|
id = "avrispv2";
|
|
|
|
desc = "Atmel AVR ISP V2";
|
|
|
|
type = stk500v2;
|
|
|
|
;
|
|
|
|
|
2006-01-12 23:13:50 +00:00
|
|
|
programmer
|
|
|
|
id = "avrispmkII";
|
|
|
|
desc = "Atmel AVR ISP mkII";
|
|
|
|
type = stk500v2;
|
|
|
|
;
|
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "avrisp2";
|
|
|
|
desc = "Atmel AVR ISP mkII";
|
|
|
|
type = stk500v2;
|
|
|
|
;
|
|
|
|
|
2006-08-31 21:19:58 +00:00
|
|
|
# This is supposed to be the "default" STK500 entry.
|
2006-09-19 22:27:30 +00:00
|
|
|
# Attempts to select the correct firmware version
|
|
|
|
# by probing for it. Better use one of the entries
|
|
|
|
# below instead.
|
2002-12-01 04:30:01 +00:00
|
|
|
programmer
|
|
|
|
id = "stk500";
|
|
|
|
desc = "Atmel STK500";
|
2006-09-19 22:27:30 +00:00
|
|
|
type = stk500generic;
|
2002-12-01 04:30:01 +00:00
|
|
|
;
|
|
|
|
|
2006-08-31 21:19:58 +00:00
|
|
|
programmer
|
|
|
|
id = "stk500v1";
|
|
|
|
desc = "Atmel STK500 Version 1.x firmware";
|
|
|
|
type = stk500;
|
|
|
|
;
|
|
|
|
|
2008-06-13 21:19:46 +00:00
|
|
|
programmer
|
|
|
|
id = "mib510";
|
|
|
|
desc = "Crossbow MIB510 programming board";
|
|
|
|
type = stk500;
|
|
|
|
;
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
programmer
|
|
|
|
id = "stk500v2";
|
2006-08-31 21:19:58 +00:00
|
|
|
desc = "Atmel STK500 Version 2.x firmware";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
type = stk500v2;
|
|
|
|
;
|
|
|
|
|
2006-07-16 21:30:14 +00:00
|
|
|
programmer
|
|
|
|
id = "stk500pp";
|
|
|
|
desc = "Atmel STK500 V2 in parallel programming mode";
|
|
|
|
type = stk500pp;
|
|
|
|
;
|
|
|
|
|
2006-07-21 21:53:49 +00:00
|
|
|
programmer
|
|
|
|
id = "stk500hvsp";
|
|
|
|
desc = "Atmel STK500 V2 in high-voltage serial programming mode";
|
|
|
|
type = stk500hvsp;
|
|
|
|
;
|
|
|
|
|
2008-03-14 13:00:08 +00:00
|
|
|
programmer
|
|
|
|
id = "stk600";
|
|
|
|
desc = "Atmel STK600";
|
|
|
|
type = stk600;
|
|
|
|
;
|
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "stk600pp";
|
|
|
|
desc = "Atmel STK600 in parallel programming mode";
|
|
|
|
type = stk600pp;
|
|
|
|
;
|
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "stk600hvsp";
|
|
|
|
desc = "Atmel STK600 in high-voltage serial programming mode";
|
|
|
|
type = stk600hvsp;
|
|
|
|
;
|
|
|
|
|
2003-03-16 18:19:37 +00:00
|
|
|
programmer
|
|
|
|
id = "avr910";
|
|
|
|
desc = "Atmel Low Cost Serial Programmer";
|
|
|
|
type = avr910;
|
|
|
|
;
|
|
|
|
|
2006-09-10 20:41:00 +00:00
|
|
|
programmer
|
|
|
|
id = "usbasp";
|
|
|
|
desc = "USBasp, http://www.fischl.de/usbasp/";
|
|
|
|
type = usbasp;
|
|
|
|
;
|
|
|
|
|
2007-10-29 18:03:02 +00:00
|
|
|
programmer
|
|
|
|
id = "usbtiny";
|
|
|
|
desc = "USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/";
|
|
|
|
type = usbtiny;
|
|
|
|
;
|
|
|
|
|
2003-11-30 15:16:48 +00:00
|
|
|
programmer
|
|
|
|
id = "butterfly";
|
|
|
|
desc = "Atmel Butterfly Development Board";
|
|
|
|
type = butterfly;
|
|
|
|
;
|
|
|
|
|
2005-07-28 16:06:35 +00:00
|
|
|
programmer
|
|
|
|
id = "avr109";
|
|
|
|
desc = "Atmel AppNote AVR109 Boot Loader";
|
|
|
|
type = butterfly;
|
|
|
|
;
|
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "avr911";
|
|
|
|
desc = "Atmel AppNote AVR911 AVROSP";
|
|
|
|
type = butterfly;
|
|
|
|
;
|
|
|
|
|
2005-11-25 06:14:06 +00:00
|
|
|
programmer
|
|
|
|
id = "jtagmkI";
|
|
|
|
desc = "Atmel JTAG ICE (mkI)";
|
|
|
|
baudrate = 115200; # default is 115200
|
|
|
|
type = jtagmki;
|
|
|
|
;
|
|
|
|
|
|
|
|
# easier to type
|
|
|
|
programmer
|
|
|
|
id = "jtag1";
|
|
|
|
desc = "Atmel JTAG ICE (mkI)";
|
|
|
|
baudrate = 115200; # default is 115200
|
|
|
|
type = jtagmki;
|
|
|
|
;
|
|
|
|
|
|
|
|
# easier to type
|
|
|
|
programmer
|
|
|
|
id = "jtag1slow";
|
|
|
|
desc = "Atmel JTAG ICE (mkI)";
|
|
|
|
baudrate = 19200;
|
|
|
|
type = jtagmki;
|
|
|
|
;
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
programmer
|
|
|
|
id = "jtagmkII";
|
|
|
|
desc = "Atmel JTAG ICE mkII";
|
|
|
|
baudrate = 19200; # default is 19200
|
|
|
|
type = jtagmkii;
|
|
|
|
;
|
|
|
|
|
|
|
|
# easier to type
|
|
|
|
programmer
|
2005-09-14 19:49:27 +00:00
|
|
|
id = "jtag2slow";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
desc = "Atmel JTAG ICE mkII";
|
|
|
|
baudrate = 19200; # default is 19200
|
|
|
|
type = jtagmkii;
|
|
|
|
;
|
|
|
|
|
2005-05-14 07:57:24 +00:00
|
|
|
# JTAG ICE mkII @ 115200 Bd
|
|
|
|
programmer
|
|
|
|
id = "jtag2fast";
|
|
|
|
desc = "Atmel JTAG ICE mkII";
|
|
|
|
baudrate = 115200;
|
|
|
|
type = jtagmkii;
|
|
|
|
;
|
|
|
|
|
2005-09-14 19:49:27 +00:00
|
|
|
# make the fast one the default, people will love that
|
|
|
|
programmer
|
|
|
|
id = "jtag2";
|
|
|
|
desc = "Atmel JTAG ICE mkII";
|
|
|
|
baudrate = 115200;
|
|
|
|
type = jtagmkii;
|
|
|
|
;
|
|
|
|
|
2006-09-06 20:06:07 +00:00
|
|
|
# JTAG ICE mkII in ISP mode
|
|
|
|
programmer
|
|
|
|
id = "jtag2isp";
|
|
|
|
desc = "Atmel JTAG ICE mkII in ISP mode";
|
|
|
|
baudrate = 115200;
|
|
|
|
type = jtagmkii_isp;
|
|
|
|
;
|
|
|
|
|
2006-11-20 23:23:37 +00:00
|
|
|
# JTAG ICE mkII in debugWire mode
|
|
|
|
programmer
|
|
|
|
id = "jtag2dw";
|
|
|
|
desc = "Atmel JTAG ICE mkII in debugWire mode";
|
|
|
|
baudrate = 115200;
|
|
|
|
type = jtagmkii_dw;
|
|
|
|
;
|
|
|
|
|
2006-10-26 21:14:10 +00:00
|
|
|
# AVR Dragon in JTAG mode
|
|
|
|
programmer
|
|
|
|
id = "dragon_jtag";
|
|
|
|
desc = "Atmel AVR Dragon in JTAG mode";
|
|
|
|
baudrate = 115200;
|
|
|
|
type = dragon_jtag;
|
|
|
|
;
|
|
|
|
|
|
|
|
# AVR Dragon in ISP mode
|
|
|
|
programmer
|
|
|
|
id = "dragon_isp";
|
|
|
|
desc = "Atmel AVR Dragon in ISP mode";
|
|
|
|
baudrate = 115200;
|
|
|
|
type = dragon_isp;
|
|
|
|
;
|
|
|
|
|
2006-11-01 21:47:25 +00:00
|
|
|
# AVR Dragon in PP mode
|
|
|
|
programmer
|
|
|
|
id = "dragon_pp";
|
|
|
|
desc = "Atmel AVR Dragon in PP mode";
|
|
|
|
baudrate = 115200;
|
|
|
|
type = dragon_pp;
|
|
|
|
;
|
|
|
|
|
|
|
|
# AVR Dragon in HVSP mode
|
|
|
|
programmer
|
|
|
|
id = "dragon_hvsp";
|
|
|
|
desc = "Atmel AVR Dragon in HVSP mode";
|
|
|
|
baudrate = 115200;
|
|
|
|
type = dragon_hvsp;
|
|
|
|
;
|
|
|
|
|
2006-11-20 23:23:37 +00:00
|
|
|
# AVR Dragon in debugWire mode
|
|
|
|
programmer
|
|
|
|
id = "dragon_dw";
|
|
|
|
desc = "Atmel AVR Dragon in debugWire mode";
|
|
|
|
baudrate = 115200;
|
|
|
|
type = dragon_dw;
|
|
|
|
;
|
|
|
|
|
2003-03-16 18:19:37 +00:00
|
|
|
programmer
|
|
|
|
id = "pavr";
|
|
|
|
desc = "Jason Kyle's pAVR Serial Programmer";
|
|
|
|
type = avr910;
|
|
|
|
;
|
|
|
|
|
2005-11-01 23:02:06 +00:00
|
|
|
@HAVE_PARPORT_BEGIN@ Inclusion of the following depends on --enable-parport
|
|
|
|
# Parallel port programmers.
|
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "bsd";
|
|
|
|
desc = "Brian Dean's Programmer, http://www.bsdhome.com/avrdude/";
|
|
|
|
type = par;
|
|
|
|
vcc = 2, 3, 4, 5;
|
|
|
|
reset = 7;
|
|
|
|
sck = 8;
|
|
|
|
mosi = 9;
|
|
|
|
miso = 10;
|
|
|
|
;
|
|
|
|
|
2001-12-29 21:37:20 +00:00
|
|
|
programmer
|
|
|
|
id = "stk200";
|
|
|
|
desc = "STK200";
|
2003-02-13 19:27:50 +00:00
|
|
|
type = par;
|
2001-12-29 21:37:20 +00:00
|
|
|
buff = 4, 5;
|
|
|
|
sck = 6;
|
|
|
|
mosi = 7;
|
|
|
|
reset = 9;
|
|
|
|
miso = 10;
|
|
|
|
;
|
|
|
|
|
2003-03-05 13:47:37 +00:00
|
|
|
# The programming dongle used by the popular Ponyprog
|
|
|
|
# utility. It is almost similar to the STK200 one,
|
|
|
|
# except that there is a LED indicating that the
|
|
|
|
# programming is currently in progress.
|
|
|
|
|
|
|
|
programmer
|
2003-04-17 17:34:01 +00:00
|
|
|
id = "pony-stk200";
|
|
|
|
desc = "Pony Prog STK200";
|
2003-03-05 13:47:37 +00:00
|
|
|
type = par;
|
|
|
|
buff = 4, 5;
|
|
|
|
sck = 6;
|
|
|
|
mosi = 7;
|
|
|
|
reset = 9;
|
|
|
|
miso = 10;
|
|
|
|
pgmled = 8;
|
|
|
|
;
|
|
|
|
|
2001-10-14 23:17:26 +00:00
|
|
|
programmer
|
|
|
|
id = "dt006";
|
|
|
|
desc = "Dontronics DT006";
|
2003-02-13 19:27:50 +00:00
|
|
|
type = par;
|
2001-10-14 23:17:26 +00:00
|
|
|
reset = 4;
|
2001-10-15 00:16:12 +00:00
|
|
|
sck = 5;
|
|
|
|
mosi = 2;
|
|
|
|
miso = 11;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
|
|
|
|
2003-03-17 17:57:55 +00:00
|
|
|
programmer
|
|
|
|
id = "bascom";
|
|
|
|
desc = "Bascom SAMPLE programming cable";
|
|
|
|
type = par;
|
|
|
|
reset = 4;
|
|
|
|
sck = 5;
|
|
|
|
mosi = 2;
|
|
|
|
miso = 11;
|
|
|
|
;
|
|
|
|
|
2001-10-14 23:17:26 +00:00
|
|
|
programmer
|
|
|
|
id = "alf";
|
2003-08-24 18:31:08 +00:00
|
|
|
desc = "Nightshade ALF-PgmAVR, http://nightshade.homeip.net/";
|
2003-02-13 19:27:50 +00:00
|
|
|
type = par;
|
2001-10-14 23:17:26 +00:00
|
|
|
vcc = 2, 3, 4, 5;
|
|
|
|
buff = 6;
|
|
|
|
reset = 7;
|
|
|
|
sck = 8;
|
|
|
|
mosi = 9;
|
|
|
|
miso = 10;
|
|
|
|
errled = 1;
|
|
|
|
rdyled = 14;
|
|
|
|
pgmled = 16;
|
|
|
|
vfyled = 17;
|
|
|
|
;
|
|
|
|
|
2003-06-18 02:47:52 +00:00
|
|
|
programmer
|
|
|
|
id = "sp12";
|
|
|
|
desc = "Steve Bolt's Programmer";
|
|
|
|
type = par;
|
|
|
|
vcc = 4,5,6,7,8;
|
|
|
|
reset = 3;
|
|
|
|
sck = 2;
|
|
|
|
mosi = 9;
|
|
|
|
miso = 11;
|
|
|
|
;
|
2003-07-22 01:29:19 +00:00
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "picoweb";
|
2003-08-24 18:31:08 +00:00
|
|
|
desc = "Picoweb Programming Cable, http://www.picoweb.net/";
|
2003-07-22 01:29:19 +00:00
|
|
|
type = par;
|
|
|
|
reset = 2;
|
|
|
|
sck = 3;
|
|
|
|
mosi = 4;
|
|
|
|
miso = 13;
|
|
|
|
;
|
2001-12-29 21:47:05 +00:00
|
|
|
|
2003-10-02 18:59:47 +00:00
|
|
|
programmer
|
|
|
|
id = "abcmini";
|
|
|
|
desc = "ABCmini Board, aka Dick Smith HOTCHIP";
|
|
|
|
type = par;
|
|
|
|
reset = 4;
|
|
|
|
sck = 3;
|
|
|
|
mosi = 2;
|
|
|
|
miso = 10;
|
|
|
|
;
|
2002-12-01 04:30:01 +00:00
|
|
|
|
2004-01-27 15:16:16 +00:00
|
|
|
programmer
|
|
|
|
id = "futurlec";
|
|
|
|
desc = "Futurlec.com programming cable.";
|
|
|
|
type = par;
|
|
|
|
reset = 3;
|
|
|
|
sck = 2;
|
|
|
|
mosi = 1;
|
|
|
|
miso = 10;
|
|
|
|
;
|
2002-12-01 04:30:01 +00:00
|
|
|
|
2004-12-22 01:30:30 +00:00
|
|
|
|
|
|
|
# From the contributor of the "xil" jtag cable:
|
|
|
|
# The "vcc" definition isn't really vcc (the cable gets its power from
|
|
|
|
# the programming circuit) but is necessary to switch one of the
|
|
|
|
# buffer lines (trying to add it to the "buff" lines doesn't work).
|
|
|
|
# With this, TMS connects to RESET, TDI to MOSI, TDO to MISO and TCK
|
|
|
|
# to SCK (plus vcc/gnd of course)
|
|
|
|
programmer
|
|
|
|
id = "xil";
|
|
|
|
desc = "Xilinx JTAG cable";
|
|
|
|
type = par;
|
|
|
|
mosi = 2;
|
|
|
|
sck = 3;
|
|
|
|
reset = 4;
|
|
|
|
buff = 5;
|
|
|
|
miso = 13;
|
|
|
|
vcc = 6;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2005-09-16 21:34:22 +00:00
|
|
|
programmer
|
|
|
|
id = "dapa";
|
|
|
|
desc = "Direct AVR Parallel Access cable";
|
|
|
|
type = par;
|
2005-09-18 00:44:20 +00:00
|
|
|
vcc = 3;
|
2005-09-16 21:34:22 +00:00
|
|
|
reset = 16;
|
|
|
|
sck = 1;
|
|
|
|
mosi = 2;
|
|
|
|
miso = 11;
|
|
|
|
;
|
|
|
|
|
2006-04-14 12:18:39 +00:00
|
|
|
programmer
|
|
|
|
id = "atisp";
|
|
|
|
desc = "AT-ISP V1.1 programming cable for AVR-SDK1 from <http://micro-research.co.th/> micro-research.co.th";
|
|
|
|
type = par;
|
|
|
|
reset = ~6;
|
|
|
|
sck = ~8;
|
|
|
|
mosi = ~7;
|
|
|
|
miso = ~10;
|
|
|
|
;
|
|
|
|
|
2006-04-18 15:32:01 +00:00
|
|
|
programmer
|
|
|
|
id = "ere-isp-avr";
|
2006-04-21 12:50:17 +00:00
|
|
|
desc = "ERE ISP-AVR <http://www.ere.co.th/download/sch050713.pdf>";
|
2006-04-18 15:32:01 +00:00
|
|
|
type = par;
|
|
|
|
reset = ~4;
|
|
|
|
sck = 3;
|
|
|
|
mosi = 2;
|
|
|
|
miso = 10;
|
|
|
|
;
|
|
|
|
|
2006-08-30 05:13:15 +00:00
|
|
|
programmer
|
|
|
|
id = "blaster";
|
|
|
|
desc = "Altera ByteBlaster";
|
|
|
|
type = par;
|
|
|
|
sck = 2;
|
|
|
|
miso = 11;
|
|
|
|
reset = 3;
|
|
|
|
mosi = 8;
|
|
|
|
buff = 14;
|
|
|
|
;
|
|
|
|
|
2006-12-21 21:44:14 +00:00
|
|
|
# It is almost same as pony-stk200, except vcc on pin 5 to auto
|
|
|
|
# disconnect port (download on http://electropol.free.fr)
|
|
|
|
programmer
|
|
|
|
id = "frank-stk200";
|
|
|
|
desc = "Frank STK200";
|
|
|
|
type = par;
|
|
|
|
vcc = 5;
|
|
|
|
sck = 6;
|
|
|
|
mosi = 7;
|
|
|
|
reset = 9;
|
|
|
|
miso = 10;
|
|
|
|
pgmled = 8;
|
2006-12-22 22:52:34 +00:00
|
|
|
;
|
2006-08-30 05:13:15 +00:00
|
|
|
|
2005-11-01 23:02:06 +00:00
|
|
|
@HAVE_PARPORT_END@
|
2005-09-16 21:34:22 +00:00
|
|
|
|
2005-09-17 19:54:47 +00:00
|
|
|
#
|
|
|
|
# some ultra cheap programmers use bitbanging on the
|
|
|
|
# serialport.
|
|
|
|
#
|
2006-08-30 14:09:58 +00:00
|
|
|
# PC - DB9 - Pins for RS232:
|
|
|
|
#
|
|
|
|
# GND 5 -- |O
|
|
|
|
# | O| <- 9 RI
|
|
|
|
# DTR 4 <- |O |
|
|
|
|
# | O| <- 8 CTS
|
|
|
|
# TXD 3 <- |O |
|
|
|
|
# | O| -> 7 RTS
|
|
|
|
# RXD 2 -> |O |
|
|
|
|
# | O| <- 6 DSR
|
|
|
|
# DCD 1 -> |O
|
|
|
|
#
|
|
|
|
# Using RXD is currently not supported.
|
|
|
|
# Using RI is not supported under Win32 but is supported under Posix.
|
2005-09-17 19:54:47 +00:00
|
|
|
|
|
|
|
# serial ponyprog design (dasa2 in uisp)
|
|
|
|
# reset=!txd sck=rts mosi=dtr miso=cts
|
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "ponyser";
|
2006-08-30 14:09:58 +00:00
|
|
|
desc = "design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts";
|
2005-09-17 19:54:47 +00:00
|
|
|
type = serbb;
|
|
|
|
reset = ~3;
|
2006-08-30 14:09:58 +00:00
|
|
|
sck = 7;
|
2005-09-17 19:54:47 +00:00
|
|
|
mosi = 4;
|
2006-08-30 14:09:58 +00:00
|
|
|
miso = 8;
|
|
|
|
;
|
|
|
|
|
|
|
|
# Same as above, different name
|
|
|
|
# reset=!txd sck=rts mosi=dtr miso=cts
|
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "siprog";
|
|
|
|
desc = "Lancos SI-Prog <http://www.lancos.com/siprogsch.html>";
|
|
|
|
type = serbb;
|
|
|
|
reset = ~3;
|
|
|
|
sck = 7;
|
|
|
|
mosi = 4;
|
|
|
|
miso = 8;
|
2005-09-17 19:54:47 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
# unknown (dasa in uisp)
|
|
|
|
# reset=rts sck=dtr mosi=txd miso=cts
|
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "dasa";
|
|
|
|
desc = "serial port banging, reset=rts sck=dtr mosi=txd miso=cts";
|
|
|
|
type = serbb;
|
2006-08-30 14:09:58 +00:00
|
|
|
reset = 7;
|
2005-09-17 19:54:47 +00:00
|
|
|
sck = 4;
|
|
|
|
mosi = 3;
|
2006-08-30 14:09:58 +00:00
|
|
|
miso = 8;
|
2005-09-17 19:54:47 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
# unknown (dasa3 in uisp)
|
|
|
|
# reset=!dtr sck=rts mosi=txd miso=cts
|
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "dasa3";
|
|
|
|
desc = "serial port banging, reset=!dtr sck=rts mosi=txd miso=cts";
|
|
|
|
type = serbb;
|
|
|
|
reset = ~4;
|
2006-08-30 14:09:58 +00:00
|
|
|
sck = 7;
|
2005-09-17 19:54:47 +00:00
|
|
|
mosi = 3;
|
2006-08-30 14:09:58 +00:00
|
|
|
miso = 8;
|
2005-09-17 19:54:47 +00:00
|
|
|
;
|
|
|
|
|
2007-10-29 22:37:38 +00:00
|
|
|
# C2N232i (jumper configuration "auto")
|
|
|
|
# reset=dtr sck=!rts mosi=!txd miso=!cts
|
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "c2n232i";
|
|
|
|
desc = "serial port banging, reset=dtr sck=!rts mosi=!txd miso=!cts";
|
|
|
|
type = serbb;
|
|
|
|
reset = 4;
|
|
|
|
sck = ~7;
|
|
|
|
mosi = ~3;
|
|
|
|
miso = ~8;
|
|
|
|
;
|
|
|
|
|
2002-12-01 15:05:56 +00:00
|
|
|
#
|
|
|
|
# PART DEFINITIONS
|
|
|
|
#
|
2002-12-01 04:30:01 +00:00
|
|
|
|
2006-07-22 20:21:38 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny11
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
# This is an HVSP-only device.
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t11";
|
|
|
|
desc = "ATtiny11";
|
|
|
|
stk500_devcode = 0x11;
|
|
|
|
signature = 0x1e 0x90 0x04;
|
|
|
|
chip_erase_delay = 20000;
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
hvsp_controlstack =
|
2006-08-10 15:40:33 +00:00
|
|
|
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
|
|
|
|
0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
|
|
|
|
0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
|
2006-07-22 20:21:38 +00:00
|
|
|
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
hvspcmdexedelay = 0;
|
|
|
|
synchcycles = 6;
|
|
|
|
latchcycles = 1;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 25;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 50;
|
|
|
|
hvleavestabdelay = 100;
|
|
|
|
resetdelay = 25;
|
|
|
|
chiperasepolltimeout = 40;
|
|
|
|
chiperasetime = 0;
|
|
|
|
programfusepolltimeout = 25;
|
|
|
|
programlockpolltimeout = 25;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
size = 64;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2006-08-10 15:40:33 +00:00
|
|
|
delay = 5;
|
2006-07-22 20:21:38 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
size = 1024;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2006-08-10 15:40:33 +00:00
|
|
|
delay = 3;
|
2006-07-22 20:21:38 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2003-06-17 21:35:39 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny12
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t12";
|
|
|
|
desc = "ATtiny12";
|
|
|
|
stk500_devcode = 0x12;
|
2003-11-20 04:05:53 +00:00
|
|
|
avr910_devcode = 0x55;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x90 0x05;
|
2003-06-17 21:35:39 +00:00
|
|
|
chip_erase_delay = 20000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
hvsp_controlstack =
|
|
|
|
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
|
|
|
|
0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
|
|
|
|
0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
|
|
|
|
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
hvspcmdexedelay = 0;
|
|
|
|
synchcycles = 6;
|
|
|
|
latchcycles = 1;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 25;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 50;
|
|
|
|
hvleavestabdelay = 100;
|
|
|
|
resetdelay = 25;
|
|
|
|
chiperasepolltimeout = 40;
|
|
|
|
chiperasetime = 0;
|
|
|
|
programfusepolltimeout = 25;
|
|
|
|
programlockpolltimeout = 25;
|
|
|
|
|
2003-06-17 21:35:39 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 64;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 8;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2003-06-17 21:35:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
size = 1024;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
write_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 5;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2003-06-17 21:35:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x x x x o o x";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-06-17 21:35:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-06-17 21:35:39 +00:00
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2004-06-22 17:38:54 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny13
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t13";
|
|
|
|
desc = "ATtiny13";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB4, 0x0E, 0x1E;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
|
|
|
0xBC, 0x0E, 0xB4, 0x0E, 0xBA, 0x0D, 0xBB, 0xBC,
|
|
|
|
0x99, 0xE1, 0xBB, 0xAC;
|
2004-06-22 17:38:54 +00:00
|
|
|
stk500_devcode = 0x14;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x90 0x07;
|
2004-06-22 17:38:54 +00:00
|
|
|
chip_erase_delay = 4000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-07-21 21:53:49 +00:00
|
|
|
hvsp_controlstack =
|
|
|
|
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
|
|
|
|
0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
|
|
|
|
0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
|
|
|
|
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
hvspcmdexedelay = 0;
|
|
|
|
synchcycles = 6;
|
|
|
|
latchcycles = 1;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 25;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 90;
|
|
|
|
hvleavestabdelay = 100;
|
|
|
|
resetdelay = 25;
|
|
|
|
chiperasepolltimeout = 40;
|
|
|
|
chiperasetime = 0;
|
|
|
|
programfusepolltimeout = 25;
|
|
|
|
programlockpolltimeout = 25;
|
|
|
|
|
2004-06-22 17:38:54 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 64;
|
2006-07-21 21:53:49 +00:00
|
|
|
page_size = 4;
|
2004-06-22 17:38:54 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 5;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
2004-06-22 17:38:54 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 1024;
|
|
|
|
page_size = 32;
|
|
|
|
num_pages = 32;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 a8",
|
|
|
|
" a7 a6 a5 a4 x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 32;
|
|
|
|
readsize = 256;
|
2004-06-22 17:38:54 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2006-08-21 19:43:05 +00:00
|
|
|
size = 2;
|
2004-06-22 17:38:54 +00:00
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
2006-08-21 19:43:05 +00:00
|
|
|
"0 0 0 0 0 0 0 a0 o o o o o o o o";
|
2004-06-22 17:38:54 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
;
|
|
|
|
|
2003-06-17 21:35:39 +00:00
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny15
|
|
|
|
#------------------------------------------------------------
|
2002-12-01 04:30:01 +00:00
|
|
|
|
2002-06-22 14:03:53 +00:00
|
|
|
part
|
|
|
|
id = "t15";
|
|
|
|
desc = "ATtiny15";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x13;
|
2003-06-17 21:35:39 +00:00
|
|
|
avr910_devcode = 0x56;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x90 0x06;
|
2003-11-20 04:05:53 +00:00
|
|
|
chip_erase_delay = 8200;
|
2002-06-22 14:03:53 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
hvsp_controlstack =
|
|
|
|
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
|
|
|
|
0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
|
|
|
|
0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
|
|
|
|
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
hvspcmdexedelay = 5;
|
|
|
|
synchcycles = 6;
|
|
|
|
latchcycles = 16;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 25;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 50;
|
|
|
|
hvleavestabdelay = 100;
|
|
|
|
resetdelay = 25;
|
|
|
|
chiperasepolltimeout = 40;
|
|
|
|
chiperasetime = 0;
|
|
|
|
programfusepolltimeout = 25;
|
|
|
|
programlockpolltimeout = 25;
|
|
|
|
|
2002-06-22 14:03:53 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 64;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 8200;
|
|
|
|
max_write_delay = 8200;
|
2002-06-22 14:03:53 +00:00
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2002-06-22 14:03:53 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
size = 1024;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 4100;
|
|
|
|
max_write_delay = 4100;
|
2002-06-22 14:03:53 +00:00
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
write_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 5;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2002-06-22 14:03:53 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x x x x o o x";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2002-06-22 14:03:53 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x o o o o x x o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
|
|
|
|
"x x x x x x x x i i i i 1 1 i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2002-06-22 14:03:53 +00:00
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90s1200
|
|
|
|
#------------------------------------------------------------
|
2001-12-29 21:47:05 +00:00
|
|
|
|
2001-10-14 23:17:26 +00:00
|
|
|
part
|
|
|
|
id = "1200";
|
|
|
|
desc = "AT90S1200";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x33;
|
|
|
|
avr910_devcode = 0x13;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x90 0x01;
|
2003-05-14 03:54:17 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
2001-10-14 23:17:26 +00:00
|
|
|
chip_erase_delay = 20000;
|
2001-11-21 05:50:59 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 1;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 0;
|
|
|
|
pollvalue = 0xFF;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 0;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 15;
|
|
|
|
chiperasepolltimeout = 0;
|
|
|
|
programfusepulsewidth = 2;
|
|
|
|
programfusepolltimeout = 0;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 1;
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "eeprom"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 64;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 9000;
|
2001-10-14 23:17:26 +00:00
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0xff;
|
2001-12-29 21:37:20 +00:00
|
|
|
read = "1 0 1 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
2001-12-29 21:37:20 +00:00
|
|
|
write = "1 1 0 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 32;
|
|
|
|
readsize = 256;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "flash"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 1024;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 9000;
|
2001-10-14 23:17:26 +00:00
|
|
|
readback_p1 = 0xff;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0xff;
|
2001-11-21 05:50:59 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
2001-11-24 01:44:06 +00:00
|
|
|
" i i i i i i i i";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
|
|
|
write_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x02;
|
|
|
|
delay = 15;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2001-11-21 05:50:59 +00:00
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2002-02-14 02:48:07 +00:00
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90s4414
|
|
|
|
#------------------------------------------------------------
|
2002-02-14 02:48:07 +00:00
|
|
|
|
|
|
|
part
|
|
|
|
id = "4414";
|
|
|
|
desc = "AT90S4414";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x50;
|
2003-05-02 16:23:30 +00:00
|
|
|
avr910_devcode = 0x28;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x92 0x01;
|
2002-02-14 02:48:07 +00:00
|
|
|
chip_erase_delay = 20000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 0;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 15;
|
|
|
|
chiperasepolltimeout = 0;
|
|
|
|
programfusepulsewidth = 2;
|
|
|
|
programfusepolltimeout = 0;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 1;
|
|
|
|
|
2002-02-14 02:48:07 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 256;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0x80;
|
|
|
|
readback_p2 = 0x7f;
|
|
|
|
read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2002-02-14 02:48:07 +00:00
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0x7f;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0x7f;
|
2002-02-14 02:48:07 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
write_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2002-02-14 02:48:07 +00:00
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
2006-09-18 21:48:36 +00:00
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90s2313
|
|
|
|
#------------------------------------------------------------
|
2001-10-16 02:47:55 +00:00
|
|
|
|
2001-10-14 23:17:26 +00:00
|
|
|
part
|
|
|
|
id = "2313";
|
|
|
|
desc = "AT90S2313";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x40;
|
2003-05-02 16:23:30 +00:00
|
|
|
avr910_devcode = 0x20;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x91 0x01;
|
2001-10-14 23:17:26 +00:00
|
|
|
chip_erase_delay = 20000;
|
2001-11-21 05:50:59 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 0;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 15;
|
|
|
|
chiperasepolltimeout = 0;
|
|
|
|
programfusepulsewidth = 2;
|
|
|
|
programfusepolltimeout = 0;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 1;
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "eeprom"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 128;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 9000;
|
2001-10-14 23:17:26 +00:00
|
|
|
readback_p1 = 0x80;
|
|
|
|
readback_p2 = 0x7f;
|
2001-12-29 21:37:20 +00:00
|
|
|
read = "1 0 1 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
2001-12-29 21:37:20 +00:00
|
|
|
write = "1 1 0 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "flash"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 2048;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 9000;
|
2001-10-14 23:17:26 +00:00
|
|
|
readback_p1 = 0x7f;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0x7f;
|
2001-11-21 05:50:59 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
2001-11-24 01:44:06 +00:00
|
|
|
" i i i i i i i i";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
|
|
|
write_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2001-11-21 05:50:59 +00:00
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
2006-09-18 21:48:36 +00:00
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
;
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x i i x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90s2333
|
|
|
|
#------------------------------------------------------------
|
2001-10-16 02:47:55 +00:00
|
|
|
|
2001-10-14 23:17:26 +00:00
|
|
|
part
|
|
|
|
id = "2333";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
##### WARNING: No XML file for device 'AT90S2333'! #####
|
2001-10-14 23:17:26 +00:00
|
|
|
desc = "AT90S2333";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x42;
|
2003-06-17 21:35:39 +00:00
|
|
|
avr910_devcode = 0x34;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x91 0x05;
|
2001-10-14 23:17:26 +00:00
|
|
|
chip_erase_delay = 20000;
|
2001-11-21 05:50:59 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
memory "eeprom"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 128;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0xff;
|
2001-12-29 21:37:20 +00:00
|
|
|
read = "1 0 1 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
2001-12-29 21:37:20 +00:00
|
|
|
write = "1 1 0 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "flash"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 2048;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0xff;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0xff;
|
2001-11-21 05:50:59 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
2001-11-24 01:44:06 +00:00
|
|
|
" i i i i i i i i";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
|
|
|
write_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2002-02-09 21:53:51 +00:00
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
2002-02-15 02:06:58 +00:00
|
|
|
pwroff_after_write = yes;
|
2002-02-09 21:53:51 +00:00
|
|
|
read = "0 1 0 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x x x x o o x";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
|
|
|
|
2003-02-19 09:01:54 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
# AT90s2343 (also AT90s2323 and ATtiny22)
|
2003-02-19 09:01:54 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "2343";
|
|
|
|
desc = "AT90S2343";
|
2003-05-02 16:23:30 +00:00
|
|
|
stk500_devcode = 0x43;
|
|
|
|
avr910_devcode = 0x4c;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x91 0x03;
|
2003-02-19 09:01:54 +00:00
|
|
|
chip_erase_delay = 18000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
hvsp_controlstack =
|
|
|
|
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
|
|
|
|
0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
|
|
|
|
0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
|
|
|
|
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
hvspcmdexedelay = 0;
|
|
|
|
synchcycles = 6;
|
|
|
|
latchcycles = 1;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 25;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 50;
|
|
|
|
hvleavestabdelay = 100;
|
|
|
|
resetdelay = 25;
|
|
|
|
chiperasepolltimeout = 40;
|
|
|
|
chiperasetime = 0;
|
|
|
|
programfusepolltimeout = 25;
|
|
|
|
programlockpolltimeout = 25;
|
|
|
|
|
2003-02-19 09:01:54 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 128;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2003-02-19 09:01:54 +00:00
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
size = 2048;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0xff;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0xff;
|
2003-02-19 09:01:54 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
write_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 128;
|
2003-02-19 09:01:54 +00:00
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x o o o x x x x o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x o o o x x x x o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90s4433
|
|
|
|
#------------------------------------------------------------
|
2001-10-16 02:47:55 +00:00
|
|
|
|
2001-10-14 23:17:26 +00:00
|
|
|
part
|
|
|
|
id = "4433";
|
|
|
|
desc = "AT90S4433";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x51;
|
2003-05-02 16:23:30 +00:00
|
|
|
avr910_devcode = 0x30;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x92 0x03;
|
2001-10-14 23:17:26 +00:00
|
|
|
chip_erase_delay = 20000;
|
2001-11-21 05:50:59 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 0;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 15;
|
|
|
|
chiperasepolltimeout = 0;
|
|
|
|
programfusepulsewidth = 2;
|
|
|
|
programfusepolltimeout = 0;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 1;
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "eeprom"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 256;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0xff;
|
2001-12-30 00:07:29 +00:00
|
|
|
read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
2001-12-30 00:07:29 +00:00
|
|
|
write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "flash"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0xff;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0xff;
|
2001-11-21 05:50:59 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
2001-11-24 01:44:06 +00:00
|
|
|
" i i i i i i i i";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
|
|
|
write_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2001-11-21 05:50:59 +00:00
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2002-02-09 21:53:51 +00:00
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
2002-02-15 02:06:58 +00:00
|
|
|
pwroff_after_write = yes;
|
2002-02-09 21:53:51 +00:00
|
|
|
read = "0 1 0 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x x x x o o x";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90s4434
|
|
|
|
#------------------------------------------------------------
|
2001-10-16 02:47:55 +00:00
|
|
|
|
2001-10-14 23:17:26 +00:00
|
|
|
part
|
|
|
|
id = "4434";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
##### WARNING: No XML file for device 'AT90S4434'! #####
|
2001-10-14 23:17:26 +00:00
|
|
|
desc = "AT90S4434";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x52;
|
2003-05-02 16:23:30 +00:00
|
|
|
avr910_devcode = 0x6c;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x92 0x02;
|
2001-10-14 23:17:26 +00:00
|
|
|
chip_erase_delay = 20000;
|
2001-11-21 05:50:59 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
memory "eeprom"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 256;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0xff;
|
2001-12-29 21:37:20 +00:00
|
|
|
read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
2001-12-29 21:37:20 +00:00
|
|
|
write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "flash"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0xff;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0xff;
|
2001-11-21 05:50:59 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
2001-11-24 01:44:06 +00:00
|
|
|
" i i i i i i i i";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
|
|
|
write_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2002-02-14 02:48:07 +00:00
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
read = "0 1 0 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x x x x o o x";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2001-09-19 17:04:25 +00:00
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90s8515
|
|
|
|
#------------------------------------------------------------
|
2001-10-16 02:47:55 +00:00
|
|
|
|
2001-10-14 23:17:26 +00:00
|
|
|
part
|
|
|
|
id = "8515";
|
|
|
|
desc = "AT90S8515";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x60;
|
|
|
|
avr910_devcode = 0x38;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x93 0x01;
|
2001-10-14 23:17:26 +00:00
|
|
|
chip_erase_delay = 20000;
|
2001-11-21 05:50:59 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
2003-03-05 02:33:30 +00:00
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
2001-11-21 05:50:59 +00:00
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-07-19 21:25:08 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
2006-07-21 21:53:49 +00:00
|
|
|
hventerstabdelay = 100;
|
2006-07-19 21:25:08 +00:00
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 0;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
2006-07-21 21:53:49 +00:00
|
|
|
hvleavestabdelay = 15;
|
2006-07-19 21:25:08 +00:00
|
|
|
resetdelay = 15;
|
|
|
|
chiperasepulsewidth = 15;
|
|
|
|
chiperasepolltimeout = 0;
|
|
|
|
programfusepulsewidth = 2;
|
|
|
|
programfusepolltimeout = 0;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 1;
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "eeprom"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 512;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 9000;
|
2001-10-14 23:17:26 +00:00
|
|
|
readback_p1 = 0x80;
|
|
|
|
readback_p2 = 0x7f;
|
2001-12-29 21:37:20 +00:00
|
|
|
read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
2001-12-29 21:37:20 +00:00
|
|
|
write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "flash"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 8192;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 9000;
|
2001-10-14 23:17:26 +00:00
|
|
|
readback_p1 = 0x7f;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0x7f;
|
2001-11-21 05:50:59 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
2001-11-24 01:44:06 +00:00
|
|
|
" i i i i i i i i";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
|
|
|
write_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2001-11-21 05:50:59 +00:00
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2002-02-14 02:48:07 +00:00
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2002-02-14 02:48:07 +00:00
|
|
|
;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2001-09-19 17:04:25 +00:00
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90s8535
|
|
|
|
#------------------------------------------------------------
|
2001-10-16 02:47:55 +00:00
|
|
|
|
2001-10-14 23:17:26 +00:00
|
|
|
part
|
|
|
|
id = "8535";
|
|
|
|
desc = "AT90S8535";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x61;
|
2003-05-02 16:23:30 +00:00
|
|
|
avr910_devcode = 0x68;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x93 0x03;
|
2001-10-14 23:17:26 +00:00
|
|
|
chip_erase_delay = 20000;
|
2001-11-21 05:50:59 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 0;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 15;
|
|
|
|
chiperasepolltimeout = 0;
|
|
|
|
programfusepulsewidth = 2;
|
|
|
|
programfusepolltimeout = 0;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 1;
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "eeprom"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 512;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0xff;
|
2001-12-29 21:37:20 +00:00
|
|
|
read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
2001-12-29 21:37:20 +00:00
|
|
|
write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "flash"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 8192;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 20000;
|
|
|
|
readback_p1 = 0xff;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0xff;
|
2001-11-21 05:50:59 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
2001-11-24 01:44:06 +00:00
|
|
|
" i i i i i i i i";
|
2001-11-21 05:50:59 +00:00
|
|
|
|
|
|
|
write_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2001-11-21 05:50:59 +00:00
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2003-11-08 21:15:42 +00:00
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x o";
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-11-08 21:15:42 +00:00
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x o o x x x x x x";
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-11-08 21:15:42 +00:00
|
|
|
;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2001-09-19 17:04:25 +00:00
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega103
|
|
|
|
#------------------------------------------------------------
|
2001-10-16 02:47:55 +00:00
|
|
|
|
2001-10-14 23:17:26 +00:00
|
|
|
part
|
2001-10-31 02:18:08 +00:00
|
|
|
id = "m103";
|
2001-10-14 23:17:26 +00:00
|
|
|
desc = "ATMEGA103";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0xB1;
|
2003-05-02 16:23:30 +00:00
|
|
|
avr910_devcode = 0x41;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x97 0x01;
|
2001-10-14 23:17:26 +00:00
|
|
|
chip_erase_delay = 112000;
|
2001-11-21 05:50:59 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x8E, 0x9E, 0x2E, 0x3E, 0xAE, 0xBE,
|
|
|
|
0x4E, 0x5E, 0xCE, 0xDE, 0x6E, 0x7E, 0xEE, 0xDE,
|
|
|
|
0x66, 0x76, 0xE6, 0xF6, 0x6A, 0x7A, 0xEA, 0x7A,
|
|
|
|
0x7F, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 0;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 15;
|
|
|
|
chiperasepolltimeout = 0;
|
|
|
|
programfusepulsewidth = 2;
|
|
|
|
programfusepolltimeout = 0;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 10;
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "eeprom"
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 9000;
|
2005-09-17 21:01:35 +00:00
|
|
|
readback_p1 = 0x80;
|
|
|
|
readback_p2 = 0x7f;
|
2001-11-21 05:50:59 +00:00
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "flash"
|
2001-10-16 23:32:30 +00:00
|
|
|
paged = yes;
|
2001-10-14 23:17:26 +00:00
|
|
|
size = 131072;
|
2001-10-16 23:32:30 +00:00
|
|
|
page_size = 256;
|
|
|
|
num_pages = 512;
|
2001-10-14 23:17:26 +00:00
|
|
|
min_write_delay = 22000;
|
|
|
|
max_write_delay = 56000;
|
|
|
|
readback_p1 = 0xff;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0xff;
|
2002-04-07 16:03:58 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x11;
|
|
|
|
delay = 70;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
2002-04-07 16:03:58 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x o x o 1 o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 1 i 1 i i",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x x x x o o x";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2002-04-07 16:03:58 +00:00
|
|
|
;
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
2001-10-14 23:17:26 +00:00
|
|
|
;
|
2001-09-19 17:04:25 +00:00
|
|
|
|
2001-10-16 02:47:55 +00:00
|
|
|
|
2003-11-14 04:43:55 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega64
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m64";
|
|
|
|
desc = "ATMEGA64";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
has_jtag = yes;
|
2003-11-14 04:43:55 +00:00
|
|
|
stk500_devcode = 0xA0;
|
2007-05-16 21:29:36 +00:00
|
|
|
avr910_devcode = 0x45;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x96 0x02;
|
2003-11-14 04:43:55 +00:00
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
idr = 0x22;
|
|
|
|
spmcr = 0x68;
|
2005-05-10 21:04:55 +00:00
|
|
|
allowfullpagebitstream = yes;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2003-11-14 04:43:55 +00:00
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 2048;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
2005-09-16 21:23:14 +00:00
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
2003-11-14 04:43:55 +00:00
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
2005-09-16 21:23:14 +00:00
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
2003-11-14 04:43:55 +00:00
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2003-11-14 04:43:55 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 65536;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
2003-11-20 04:05:53 +00:00
|
|
|
max_write_delay = 4500;
|
2003-11-14 04:43:55 +00:00
|
|
|
readback_p1 = 0xff;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0xff;
|
2003-11-14 04:43:55 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
2005-08-28 22:23:35 +00:00
|
|
|
|
2003-11-14 04:43:55 +00:00
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2003-11-14 04:43:55 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-11-14 04:43:55 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-11-14 04:43:55 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-11-14 04:43:55 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-11-14 04:43:55 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2006-08-21 19:43:05 +00:00
|
|
|
size = 4;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
2003-11-14 04:43:55 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega128
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
2002-04-05 22:41:38 +00:00
|
|
|
part
|
|
|
|
id = "m128";
|
|
|
|
desc = "ATMEGA128";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
has_jtag = yes;
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0xB2;
|
2007-05-16 21:29:36 +00:00
|
|
|
avr910_devcode = 0x43;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x97 0x02;
|
2002-04-05 22:41:38 +00:00
|
|
|
chip_erase_delay = 9000;
|
2003-02-20 14:11:34 +00:00
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
2002-04-05 22:41:38 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
idr = 0x22;
|
|
|
|
spmcr = 0x68;
|
|
|
|
rampz = 0x3b;
|
2005-05-10 21:04:55 +00:00
|
|
|
allowfullpagebitstream = yes;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2002-04-05 22:41:38 +00:00
|
|
|
memory "eeprom"
|
2003-02-20 14:11:34 +00:00
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
2002-04-05 22:41:38 +00:00
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
2005-09-16 21:23:14 +00:00
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
2002-04-05 22:41:38 +00:00
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
2005-09-16 21:23:14 +00:00
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
2002-04-05 22:41:38 +00:00
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 12;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2002-04-05 22:41:38 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2002-04-05 22:41:38 +00:00
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 131072;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 512;
|
|
|
|
min_write_delay = 4500;
|
2003-11-20 04:05:53 +00:00
|
|
|
max_write_delay = 4500;
|
2002-04-05 22:41:38 +00:00
|
|
|
readback_p1 = 0xff;
|
2003-11-20 04:05:53 +00:00
|
|
|
readback_p2 = 0xff;
|
2002-04-05 22:41:38 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2002-04-05 22:41:38 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
2002-10-11 19:32:12 +00:00
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
2002-04-05 22:41:38 +00:00
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2002-04-05 22:41:38 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2002-04-05 22:41:38 +00:00
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
2002-10-11 19:32:12 +00:00
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
2002-04-05 22:41:38 +00:00
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2002-04-05 22:41:38 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2002-04-05 22:41:38 +00:00
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2002-04-05 22:41:38 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2002-04-05 22:41:38 +00:00
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2002-04-05 22:41:38 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2002-04-05 22:41:38 +00:00
|
|
|
memory "calibration"
|
2005-09-17 19:54:47 +00:00
|
|
|
size = 4;
|
2005-09-17 19:57:15 +00:00
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
2002-04-05 22:41:38 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2002-04-05 22:41:38 +00:00
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2004-12-22 01:24:39 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90CAN128
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "c128";
|
|
|
|
desc = "AT90CAN128";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
has_jtag = yes;
|
2004-12-22 01:24:39 +00:00
|
|
|
stk500_devcode = 0xB3;
|
|
|
|
# avr910_devcode = 0x43;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x97 0x81;
|
2004-12-22 01:24:39 +00:00
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
Quite some cleanup of the JTAG ICE mkII stuff.
. Implement the new EECRAddress field in the device descriptor that is
required by the 4.x firmware; make an uneducated guess about what
firmware requires what length of device descriptor -- perhaps Atmel
can be convinced to publish an official matrix for that.
. Specify EECR in the config file where required. Obviously, only
locations that differ from the 0x3c default are mentioned in the
XML files, so by now, this only affects the AT90CAN128 for us.
. After clarification with Atmel, EnablePageProgramming should really
default to 1, and only cleared if specified by an XML parameter. So
far, only the XML files for the ATmega256x and ATmega406 do specify
it at all, and they specify a 1, too.
. Drop the entire OCDEN fuse heuristic. If OCDEN is unprogrammed at
startup, issue a warning that single-byte EEPROM updates won't be
possible. Leave it to the user to program the fuse if desired.
That way, we won't run into any issue of prematurely wearing out the
hfuse EEPROM cell. Interestingly enough, this also solved the
problem of the target not restarting from scratch upon sign-off.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@461 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-11 20:06:23 +00:00
|
|
|
eecr = 0x3f;
|
2005-06-15 04:46:12 +00:00
|
|
|
allowfullpagebitstream = no;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2004-12-22 01:24:39 +00:00
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
2004-12-22 01:24:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 131072;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 512;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
2007-10-29 22:43:00 +00:00
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90CAN64
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "c64";
|
|
|
|
desc = "AT90CAN64";
|
|
|
|
has_jtag = yes;
|
|
|
|
stk500_devcode = 0xB3;
|
|
|
|
# avr910_devcode = 0x43;
|
|
|
|
signature = 0x1e 0x96 0x81;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
|
|
|
eecr = 0x3f;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 2048;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 65536;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90CAN32
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "c32";
|
|
|
|
desc = "AT90CAN32";
|
|
|
|
has_jtag = yes;
|
|
|
|
stk500_devcode = 0xB3;
|
|
|
|
# avr910_devcode = 0x43;
|
|
|
|
signature = 0x1e 0x95 0x81;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
|
|
|
eecr = 0x3f;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 1024;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 32768;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
2004-12-22 01:24:39 +00:00
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
2004-12-22 01:24:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2004-12-22 01:24:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2004-12-22 01:24:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2004-12-22 01:24:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2004-12-22 01:24:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega16
|
|
|
|
#------------------------------------------------------------
|
2002-04-05 22:41:38 +00:00
|
|
|
|
2001-10-16 02:47:55 +00:00
|
|
|
part
|
2001-10-31 02:18:08 +00:00
|
|
|
id = "m16";
|
2001-10-16 02:47:55 +00:00
|
|
|
desc = "ATMEGA16";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
has_jtag = yes;
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x82;
|
2007-05-16 21:29:36 +00:00
|
|
|
avr910_devcode = 0x74;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x94 0x03;
|
2003-03-05 01:42:57 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
2001-10-16 02:47:55 +00:00
|
|
|
chip_erase_delay = 9000;
|
2001-11-21 05:50:59 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
2002-04-07 16:03:58 +00:00
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
2001-11-21 05:50:59 +00:00
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-07-16 21:30:14 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
2006-07-21 21:53:49 +00:00
|
|
|
hventerstabdelay = 100;
|
2006-07-16 21:30:14 +00:00
|
|
|
progmodedelay = 100;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
2006-07-21 21:53:49 +00:00
|
|
|
hvleavestabdelay = 15;
|
2006-07-16 21:30:14 +00:00
|
|
|
resetdelay = 15;
|
2006-07-19 21:25:08 +00:00
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
2006-07-16 21:30:14 +00:00
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
2005-05-10 21:04:55 +00:00
|
|
|
allowfullpagebitstream = yes;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "eeprom"
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
2001-10-16 02:47:55 +00:00
|
|
|
size = 512;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
2001-11-21 05:50:59 +00:00
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
2002-04-07 16:03:58 +00:00
|
|
|
" 0 0 x x x x a9 a8",
|
2001-11-21 05:50:59 +00:00
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
2002-04-07 16:03:58 +00:00
|
|
|
" 0 0 x x x x a9 a8",
|
2001-11-21 05:50:59 +00:00
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
mode = 0x04;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2001-10-16 02:47:55 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "flash"
|
2001-10-16 23:32:30 +00:00
|
|
|
paged = yes;
|
2001-10-16 02:47:55 +00:00
|
|
|
size = 16384;
|
2001-10-16 23:32:30 +00:00
|
|
|
page_size = 128;
|
|
|
|
num_pages = 128;
|
2001-10-16 02:47:55 +00:00
|
|
|
min_write_delay = 4500;
|
2003-11-20 04:05:53 +00:00
|
|
|
max_write_delay = 4500;
|
2001-10-16 02:47:55 +00:00
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
2002-04-07 16:03:58 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2002-04-07 16:03:58 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2002-04-07 16:03:58 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2002-04-07 16:03:58 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2001-10-16 02:47:55 +00:00
|
|
|
;
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
2005-11-28 09:47:23 +00:00
|
|
|
memory "calibration"
|
2006-08-21 19:43:05 +00:00
|
|
|
size = 4;
|
2005-11-28 09:47:23 +00:00
|
|
|
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
2006-08-21 19:43:05 +00:00
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
2005-11-28 09:47:23 +00:00
|
|
|
;
|
2001-10-16 02:47:55 +00:00
|
|
|
;
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
|
2005-06-14 20:18:42 +00:00
|
|
|
#------------------------------------------------------------
|
2007-05-15 20:39:40 +00:00
|
|
|
# ATmega164P
|
2005-06-14 20:18:42 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
# close to ATmega16
|
|
|
|
|
|
|
|
part
|
2007-05-15 20:39:40 +00:00
|
|
|
id = "m164p";
|
|
|
|
desc = "ATMEGA164P";
|
2005-06-14 20:18:42 +00:00
|
|
|
has_jtag = yes;
|
2007-10-29 21:24:28 +00:00
|
|
|
stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
|
2005-06-14 20:18:42 +00:00
|
|
|
avr910_devcode = 0x74;
|
2006-07-11 21:05:33 +00:00
|
|
|
signature = 0x1e 0x94 0x0a;
|
2005-06-14 20:18:42 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-06-14 20:18:42 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
|
|
|
size = 512;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
2005-06-14 20:18:42 +00:00
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 16384;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 20:18:42 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 20:18:42 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 20:18:42 +00:00
|
|
|
;
|
2005-06-14 21:44:34 +00:00
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x 1 1 1 1 1 i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 21:44:34 +00:00
|
|
|
;
|
|
|
|
|
2005-06-14 20:18:42 +00:00
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
2007-05-15 20:39:40 +00:00
|
|
|
# ATmega324P
|
2005-06-14 20:18:42 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
|
2007-05-15 20:39:40 +00:00
|
|
|
# similar to ATmega164P
|
2005-06-14 20:18:42 +00:00
|
|
|
|
|
|
|
part
|
2007-05-15 20:39:40 +00:00
|
|
|
id = "m324p";
|
|
|
|
desc = "ATMEGA324P";
|
2005-06-14 20:18:42 +00:00
|
|
|
has_jtag = yes;
|
2007-10-29 21:24:28 +00:00
|
|
|
stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
|
2005-06-14 20:18:42 +00:00
|
|
|
avr910_devcode = 0x74;
|
2006-07-11 21:05:33 +00:00
|
|
|
signature = 0x1e 0x95 0x08;
|
2005-06-14 20:18:42 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-06-14 20:18:42 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
|
|
|
size = 1024;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
2005-06-14 20:18:42 +00:00
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 32768;
|
2006-08-21 19:09:32 +00:00
|
|
|
page_size = 128;
|
|
|
|
num_pages = 256;
|
2005-06-14 20:18:42 +00:00
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
2006-08-21 19:09:32 +00:00
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
2005-06-14 20:18:42 +00:00
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
2006-08-21 19:09:32 +00:00
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
2005-06-14 20:18:42 +00:00
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
2006-08-21 19:09:32 +00:00
|
|
|
" a7 a6 x x x x x x",
|
2005-06-14 20:18:42 +00:00
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 20:18:42 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 20:18:42 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 20:18:42 +00:00
|
|
|
;
|
2005-06-14 21:44:34 +00:00
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x 1 1 1 1 1 i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 21:44:34 +00:00
|
|
|
;
|
|
|
|
|
2005-06-14 20:18:42 +00:00
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega644
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
# similar to ATmega164
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m644";
|
|
|
|
desc = "ATMEGA644";
|
|
|
|
has_jtag = yes;
|
2007-10-29 21:24:28 +00:00
|
|
|
stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
|
2005-06-14 20:18:42 +00:00
|
|
|
avr910_devcode = 0x74;
|
2006-07-10 20:24:27 +00:00
|
|
|
signature = 0x1e 0x96 0x09;
|
2005-06-14 20:18:42 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-06-14 20:18:42 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 2048;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
2005-06-14 20:18:42 +00:00
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 65536;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 20:18:42 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 20:18:42 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 20:18:42 +00:00
|
|
|
;
|
2005-06-14 21:44:34 +00:00
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x 1 1 1 1 1 i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-06-14 21:44:34 +00:00
|
|
|
;
|
|
|
|
|
2005-06-14 20:18:42 +00:00
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2007-05-15 20:39:40 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega644P
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
# similar to ATmega164p
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m644p";
|
|
|
|
desc = "ATMEGA644P";
|
|
|
|
has_jtag = yes;
|
2007-10-29 21:24:28 +00:00
|
|
|
stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
|
2007-05-15 20:39:40 +00:00
|
|
|
avr910_devcode = 0x74;
|
|
|
|
signature = 0x1e 0x96 0x0a;
|
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 2048;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 65536;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x 1 1 1 1 1 i i i";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2005-06-14 20:18:42 +00:00
|
|
|
|
2003-09-08 14:51:28 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega162
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m162";
|
|
|
|
desc = "ATMEGA162";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
has_jtag = yes;
|
2003-09-08 14:51:28 +00:00
|
|
|
stk500_devcode = 0x83;
|
2006-08-21 21:00:45 +00:00
|
|
|
avr910_devcode = 0x63;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x94 0x04;
|
2003-11-20 04:05:53 +00:00
|
|
|
chip_erase_delay = 9000;
|
2006-01-17 21:01:25 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
2003-09-08 14:51:28 +00:00
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
idr = 0x04;
|
|
|
|
spmcr = 0x57;
|
2005-05-10 21:04:55 +00:00
|
|
|
allowfullpagebitstream = yes;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2003-09-08 14:51:28 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 16384;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 128;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
2003-09-08 14:51:28 +00:00
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
2005-12-07 19:19:20 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
|
|
|
|
|
|
|
;
|
2003-09-08 14:51:28 +00:00
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
|
|
|
size = 512;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
2003-09-08 14:51:28 +00:00
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
2003-09-08 14:51:28 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 16000;
|
|
|
|
max_write_delay = 16000;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 16000;
|
|
|
|
max_write_delay = 16000;
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 16000;
|
|
|
|
max_write_delay = 16000;
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2005-06-14 21:44:34 +00:00
|
|
|
"x x x x x x x x 1 1 1 1 1 i i i";
|
2003-09-08 14:51:28 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 16000;
|
|
|
|
max_write_delay = 16000;
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------
|
2003-02-18 18:47:59 +00:00
|
|
|
# ATmega163
|
2001-11-21 05:50:59 +00:00
|
|
|
#------------------------------------------------------------
|
2003-02-18 18:47:59 +00:00
|
|
|
|
2001-11-17 20:48:17 +00:00
|
|
|
part
|
|
|
|
id = "m163";
|
|
|
|
desc = "ATMEGA163";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x81;
|
2003-05-02 16:23:30 +00:00
|
|
|
avr910_devcode = 0x64;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x94 0x02;
|
2001-11-17 20:48:17 +00:00
|
|
|
chip_erase_delay = 32000;
|
2003-03-05 01:42:57 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
2001-11-21 05:50:59 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
2006-08-13 22:26:45 +00:00
|
|
|
|
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 0;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 30;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 2;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 2;
|
|
|
|
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "eeprom"
|
2001-11-17 20:48:17 +00:00
|
|
|
size = 512;
|
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
2001-11-21 05:50:59 +00:00
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
2001-11-17 20:48:17 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2001-11-21 02:46:55 +00:00
|
|
|
memory "flash"
|
2001-11-17 20:48:17 +00:00
|
|
|
paged = yes;
|
|
|
|
size = 16384;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 16000;
|
|
|
|
max_write_delay = 16000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
2001-11-21 05:50:59 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2001-11-21 02:46:55 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2001-11-21 02:46:55 +00:00
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
2001-11-21 05:50:59 +00:00
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o x x o o o o";
|
2001-11-21 02:46:55 +00:00
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i 1 1 i i i i";
|
2001-11-17 20:48:17 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2001-11-21 02:46:55 +00:00
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
2001-11-21 05:50:59 +00:00
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x x x x x 1 o o o";
|
2001-11-21 02:46:55 +00:00
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x 1 1 1 1 1 i i i";
|
2001-11-21 02:46:55 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2001-11-21 02:46:55 +00:00
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
2001-11-21 05:50:59 +00:00
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x 0 x x x x x o o o o o o";
|
2001-11-21 02:46:55 +00:00
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2001-11-21 02:46:55 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2001-11-21 02:46:55 +00:00
|
|
|
memory "signature"
|
2001-11-21 05:50:59 +00:00
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
2001-11-21 02:46:55 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
2001-11-21 02:46:55 +00:00
|
|
|
memory "calibration"
|
2001-11-21 05:50:59 +00:00
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
2001-11-17 20:48:17 +00:00
|
|
|
;
|
|
|
|
|
2003-02-18 19:09:07 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega169
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m169";
|
|
|
|
desc = "ATMEGA169";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
has_jtag = yes;
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x85;
|
2007-05-16 21:29:36 +00:00
|
|
|
avr910_devcode = 0x78;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x94 0x05;
|
2003-11-20 04:05:53 +00:00
|
|
|
chip_erase_delay = 9000;
|
2003-02-18 19:09:07 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
|
2003-02-18 19:09:07 +00:00
|
|
|
memory "eeprom"
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
2003-02-18 19:09:07 +00:00
|
|
|
size = 512;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-02-18 19:09:07 +00:00
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2006-01-12 20:56:43 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
2003-02-18 19:09:07 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 16384;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 128;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
2003-02-18 19:09:07 +00:00
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2003-02-18 19:09:07 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2005-09-14 02:11:49 +00:00
|
|
|
"x x x x x x x x x x x x i i i i";
|
2003-02-18 19:09:07 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
2005-06-11 21:27:09 +00:00
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega329
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m329";
|
|
|
|
desc = "ATMEGA329";
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x85; # no STK500 support, only STK500v2
|
|
|
|
# avr910_devcode = 0x?; # try the ATmega169 one:
|
|
|
|
avr910_devcode = 0x75;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x95 0x03;
|
2005-06-11 21:27:09 +00:00
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-06-11 21:27:09 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
2005-08-17 19:40:21 +00:00
|
|
|
size = 1024;
|
2005-06-11 21:27:09 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-06-11 21:27:09 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 32768;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
2005-06-11 21:27:09 +00:00
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x x i i i";
|
2005-06-11 21:27:09 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2007-10-29 21:45:22 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega329P
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# Identical to ATmega329 except of the signature
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m329p";
|
|
|
|
desc = "ATMEGA329P";
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x85; # no STK500 support, only STK500v2
|
|
|
|
# avr910_devcode = 0x?; # try the ATmega169 one:
|
|
|
|
avr910_devcode = 0x75;
|
|
|
|
signature = 0x1e 0x95 0x0b;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
|
|
|
size = 1024;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 32768;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2005-06-11 21:27:09 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega3290
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
# identical to ATmega329
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m3290";
|
|
|
|
desc = "ATMEGA3290";
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x85; # no STK500 support, only STK500v2
|
|
|
|
# avr910_devcode = 0x?; # try the ATmega169 one:
|
|
|
|
avr910_devcode = 0x75;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x95 0x04;
|
2005-06-11 21:27:09 +00:00
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
2007-10-29 21:45:22 +00:00
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
|
|
|
size = 1024;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a3 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 32768;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega3290P
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
# identical to ATmega3290 except of the signature
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m3290p";
|
|
|
|
desc = "ATMEGA3290P";
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x85; # no STK500 support, only STK500v2
|
|
|
|
# avr910_devcode = 0x?; # try the ATmega169 one:
|
|
|
|
avr910_devcode = 0x75;
|
|
|
|
signature = 0x1e 0x95 0x0c;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
2006-08-13 22:26:45 +00:00
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-06-11 21:27:09 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
2005-08-17 19:40:21 +00:00
|
|
|
size = 1024;
|
2005-06-11 21:27:09 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a3 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-06-11 21:27:09 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 32768;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
2005-06-11 21:27:09 +00:00
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x x i i i";
|
2005-06-11 21:27:09 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega649
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m649";
|
|
|
|
desc = "ATMEGA649";
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x85; # no STK500 support, only STK500v2
|
|
|
|
# avr910_devcode = 0x?; # try the ATmega169 one:
|
|
|
|
avr910_devcode = 0x75;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x96 0x03;
|
2005-06-11 21:27:09 +00:00
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-06-11 21:27:09 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
2005-08-17 19:40:21 +00:00
|
|
|
size = 2048;
|
2005-06-11 21:27:09 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-06-11 21:27:09 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 65536;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
2005-06-13 21:24:06 +00:00
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
2005-06-11 21:27:09 +00:00
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
2005-06-13 21:24:06 +00:00
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
2005-06-11 21:27:09 +00:00
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
2005-06-13 21:24:06 +00:00
|
|
|
" a7 x x x x x x x",
|
2005-06-11 21:27:09 +00:00
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
2005-06-11 21:27:09 +00:00
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x x i i i";
|
2005-06-11 21:27:09 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega6490
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
# identical to ATmega649
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m6490";
|
|
|
|
desc = "ATMEGA6490";
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x85; # no STK500 support, only STK500v2
|
|
|
|
# avr910_devcode = 0x?; # try the ATmega169 one:
|
|
|
|
avr910_devcode = 0x75;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x96 0x04;
|
2005-06-11 21:27:09 +00:00
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-06-11 21:27:09 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
2005-08-17 19:40:21 +00:00
|
|
|
size = 2048;
|
2005-06-11 21:27:09 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-06-11 21:27:09 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 20;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 65536;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
2005-06-13 21:24:06 +00:00
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
2005-06-11 21:27:09 +00:00
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
2005-06-13 21:24:06 +00:00
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
2005-06-11 21:27:09 +00:00
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
2005-06-13 21:24:06 +00:00
|
|
|
" a7 x x x x x x x",
|
2005-06-11 21:27:09 +00:00
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
2005-06-11 21:27:09 +00:00
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x x i i i";
|
2005-06-11 21:27:09 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
2003-02-18 19:09:07 +00:00
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
2001-11-21 05:50:59 +00:00
|
|
|
|
2003-03-29 15:02:07 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega32
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m32";
|
|
|
|
desc = "ATMEGA32";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
has_jtag = yes;
|
2003-03-29 15:02:07 +00:00
|
|
|
stk500_devcode = 0x91;
|
2003-05-02 16:23:30 +00:00
|
|
|
avr910_devcode = 0x72;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x95 0x02;
|
2003-11-20 04:05:53 +00:00
|
|
|
chip_erase_delay = 9000;
|
2003-03-29 15:02:07 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
2005-05-10 21:04:55 +00:00
|
|
|
allowfullpagebitstream = yes;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2003-03-29 15:02:07 +00:00
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
|
|
|
size = 1024;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
mode = 0x04;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2003-03-29 15:02:07 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 32768;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
2003-11-20 04:05:53 +00:00
|
|
|
max_write_delay = 4500;
|
2003-03-29 15:02:07 +00:00
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2003-03-29 15:02:07 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2006-08-21 19:43:05 +00:00
|
|
|
size = 4;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
2003-03-29 15:02:07 +00:00
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2003-11-20 04:05:53 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega161
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m161";
|
|
|
|
desc = "ATMEGA161";
|
|
|
|
stk500_devcode = 0x80;
|
|
|
|
avr910_devcode = 0x60;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x94 0x01;
|
2003-11-20 04:05:53 +00:00
|
|
|
chip_erase_delay = 28000;
|
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 0;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 30;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 2;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 2;
|
|
|
|
|
2003-11-20 04:05:53 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
|
|
|
min_write_delay = 3400;
|
|
|
|
max_write_delay = 3400;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 5;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2003-11-20 04:05:53 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 16384;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 14000;
|
|
|
|
max_write_delay = 14000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 16;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2003-11-20 04:05:53 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x o x o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 i 1 i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2003-03-29 15:02:07 +00:00
|
|
|
|
2003-02-18 18:47:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega8
|
|
|
|
#------------------------------------------------------------
|
2001-11-21 05:50:59 +00:00
|
|
|
|
2001-10-31 02:18:08 +00:00
|
|
|
part
|
|
|
|
id = "m8";
|
|
|
|
desc = "ATMEGA8";
|
2003-03-17 06:20:02 +00:00
|
|
|
stk500_devcode = 0x70;
|
2007-05-16 21:29:36 +00:00
|
|
|
avr910_devcode = 0x76;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x93 0x07;
|
2003-03-05 01:42:57 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xc2;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
chip_erase_delay = 10000;
|
2001-11-21 05:50:59 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
2002-04-07 16:03:58 +00:00
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
2001-11-21 05:50:59 +00:00
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-04 20:49:00 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 2;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
resetdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "eeprom"
|
2001-10-31 02:18:08 +00:00
|
|
|
size = 512;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
2001-11-21 05:50:59 +00:00
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
2002-04-07 16:03:58 +00:00
|
|
|
" 0 0 x x x x x a8",
|
2001-11-21 05:50:59 +00:00
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
2002-04-07 16:03:58 +00:00
|
|
|
" 0 0 x x x x x a8",
|
2001-11-21 05:50:59 +00:00
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
2007-01-13 22:57:14 +00:00
|
|
|
delay = 20;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2001-10-31 02:18:08 +00:00
|
|
|
;
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "flash"
|
2001-10-31 02:18:08 +00:00
|
|
|
paged = yes;
|
2003-04-16 22:44:55 +00:00
|
|
|
size = 8192;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
2003-11-20 04:05:53 +00:00
|
|
|
max_write_delay = 4500;
|
2003-04-16 22:44:55 +00:00
|
|
|
readback_p1 = 0xff;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
readback_p2 = 0x00;
|
2003-04-16 22:44:55 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x21;
|
2007-01-13 22:57:14 +00:00
|
|
|
delay = 10;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2003-04-16 22:44:55 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2003-06-17 21:35:39 +00:00
|
|
|
size = 4;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
2003-04-16 22:44:55 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2003-10-13 17:53:56 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega8515
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m8515";
|
|
|
|
desc = "ATMEGA8515";
|
|
|
|
stk500_devcode = 0x63;
|
2007-05-16 21:29:36 +00:00
|
|
|
avr910_devcode = 0x3A;
|
2006-12-11 14:23:46 +00:00
|
|
|
signature = 0x1e 0x93 0x06;
|
2003-10-13 17:53:56 +00:00
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2003-10-13 17:53:56 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2003-10-13 17:53:56 +00:00
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 8192;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
2003-11-20 04:05:53 +00:00
|
|
|
max_write_delay = 4500;
|
2003-10-13 17:53:56 +00:00
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2003-10-13 17:53:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2005-10-14 19:33:19 +00:00
|
|
|
size = 4;
|
2005-10-14 20:00:01 +00:00
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
2003-10-13 17:53:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
2003-10-13 21:20:01 +00:00
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
2003-10-13 17:53:56 +00:00
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-04-16 22:44:55 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega8535
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m8535";
|
|
|
|
desc = "ATMEGA8535";
|
2003-04-17 22:50:41 +00:00
|
|
|
stk500_devcode = 0x64;
|
2007-05-16 21:29:36 +00:00
|
|
|
avr910_devcode = 0x69;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x93 0x08;
|
2003-04-16 22:44:55 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 6;
|
|
|
|
togglevtg = 0;
|
|
|
|
poweroffdelay = 0;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2003-04-16 22:44:55 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
2003-04-16 22:44:55 +00:00
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
2001-10-31 02:18:08 +00:00
|
|
|
size = 8192;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
2003-11-20 04:05:53 +00:00
|
|
|
max_write_delay = 4500;
|
2001-10-31 02:18:08 +00:00
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
2002-04-07 16:03:58 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2002-04-07 16:03:58 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2001-10-31 02:18:08 +00:00
|
|
|
;
|
2002-04-07 16:03:58 +00:00
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 2000;
|
|
|
|
max_write_delay = 2000;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2006-08-21 19:43:05 +00:00
|
|
|
size = 4;
|
2002-04-07 16:03:58 +00:00
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
|
2006-08-21 19:43:05 +00:00
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
2002-04-07 16:03:58 +00:00
|
|
|
;
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
2001-10-31 02:18:08 +00:00
|
|
|
;
|
|
|
|
|
2003-04-16 23:00:29 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny26
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t26";
|
|
|
|
desc = "ATTINY26";
|
|
|
|
stk500_devcode = 0x21;
|
2003-11-20 04:05:53 +00:00
|
|
|
avr910_devcode = 0x5e;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x91 0x09;
|
2003-04-16 23:00:29 +00:00
|
|
|
pagel = 0xb3;
|
|
|
|
bs2 = 0xb2;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
|
|
|
|
0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
|
|
|
|
0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
|
|
|
|
0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 2;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2003-04-16 23:00:29 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 128;
|
|
|
|
min_write_delay = 9000;
|
2003-11-20 04:05:53 +00:00
|
|
|
max_write_delay = 9000;
|
2003-04-16 23:00:29 +00:00
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2003-04-16 23:00:29 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 2048;
|
|
|
|
page_size = 32;
|
|
|
|
num_pages = 64;
|
|
|
|
min_write_delay = 4500;
|
2003-11-20 04:05:53 +00:00
|
|
|
max_write_delay = 4500;
|
2003-04-16 23:00:29 +00:00
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x21;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 16;
|
|
|
|
readsize = 256;
|
2003-04-16 23:00:29 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-04-16 23:00:29 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-04-16 23:00:29 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x x x x i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x x x x o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-04-16 23:00:29 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 4;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
;
|
|
|
|
|
2004-06-22 17:38:54 +00:00
|
|
|
|
2006-09-01 20:48:04 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny261
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# Close to ATtiny26
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t261";
|
|
|
|
desc = "ATTINY261";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB4, 0x00, 0x10;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
|
|
|
0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
|
|
|
|
0x99, 0xE1, 0xBB, 0xAC;
|
2006-09-01 20:48:04 +00:00
|
|
|
# stk500_devcode = 0x21;
|
|
|
|
# avr910_devcode = 0x5e;
|
|
|
|
signature = 0x1e 0x91 0x0c;
|
|
|
|
pagel = 0xb3;
|
|
|
|
bs2 = 0xb2;
|
|
|
|
chip_erase_delay = 4000;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
|
|
|
pp_controlstack =
|
|
|
|
0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
|
|
|
|
0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
|
|
|
|
0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
|
|
|
|
0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 2;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no;
|
|
|
|
size = 128;
|
|
|
|
page_size = 4;
|
|
|
|
num_pages = 32;
|
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
|
|
|
|
read = "1 0 1 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 2048;
|
|
|
|
page_size = 32;
|
|
|
|
num_pages = 64;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x x x x a9 a8",
|
|
|
|
" a7 a6 a5 a4 x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 32;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
2006-09-15 21:41:29 +00:00
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-09-01 20:48:04 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
2006-09-15 21:41:29 +00:00
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x o";
|
2006-09-01 20:48:04 +00:00
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2006-09-15 21:41:29 +00:00
|
|
|
size = 1;
|
2006-09-01 20:48:04 +00:00
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
2006-09-15 21:41:29 +00:00
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
2006-09-01 20:48:04 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny461
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# Close to ATtiny261
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t461";
|
|
|
|
desc = "ATTINY461";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB4, 0x00, 0x10;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
|
|
|
0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
|
|
|
|
0x99, 0xE1, 0xBB, 0xAC;
|
2006-09-01 20:48:04 +00:00
|
|
|
# stk500_devcode = 0x21;
|
|
|
|
# avr910_devcode = 0x5e;
|
|
|
|
signature = 0x1e 0x92 0x08;
|
|
|
|
pagel = 0xb3;
|
|
|
|
bs2 = 0xb2;
|
|
|
|
chip_erase_delay = 4000;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
|
|
|
pp_controlstack =
|
|
|
|
0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
|
|
|
|
0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
|
|
|
|
0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
|
|
|
|
0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 2;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no;
|
|
|
|
size = 256;
|
|
|
|
page_size = 4;
|
|
|
|
num_pages = 64;
|
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
|
|
|
|
read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 4096;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 64;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
2006-09-15 21:41:29 +00:00
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-09-01 20:48:04 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
2006-09-15 21:41:29 +00:00
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x o";
|
2006-09-01 20:48:04 +00:00
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2006-09-15 21:41:29 +00:00
|
|
|
size = 1;
|
2006-09-01 20:48:04 +00:00
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
2006-09-15 21:41:29 +00:00
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
2006-09-01 20:48:04 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny861
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# Close to ATtiny461
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t861";
|
|
|
|
desc = "ATTINY861";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB4, 0x00, 0x10;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
|
|
|
0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
|
|
|
|
0x99, 0xE1, 0xBB, 0xAC;
|
2006-09-01 20:48:04 +00:00
|
|
|
# stk500_devcode = 0x21;
|
|
|
|
# avr910_devcode = 0x5e;
|
|
|
|
signature = 0x1e 0x93 0x0d;
|
|
|
|
pagel = 0xb3;
|
|
|
|
bs2 = 0xb2;
|
|
|
|
chip_erase_delay = 4000;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 0;
|
|
|
|
|
|
|
|
pp_controlstack =
|
|
|
|
0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
|
|
|
|
0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
|
|
|
|
0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
|
|
|
|
0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 2;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no;
|
|
|
|
size = 512;
|
|
|
|
num_pages = 128;
|
|
|
|
page_size = 4;
|
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
|
|
|
|
read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 8192;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
2006-09-15 21:41:29 +00:00
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-09-01 20:48:04 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
2006-09-15 21:41:29 +00:00
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x o";
|
2006-09-01 20:48:04 +00:00
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2006-09-15 21:41:29 +00:00
|
|
|
size = 1;
|
2006-09-01 20:48:04 +00:00
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
2006-09-15 21:41:29 +00:00
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
2006-09-01 20:48:04 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2004-06-22 17:38:54 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega48
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m48";
|
|
|
|
desc = "ATMEGA48";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB6, 0x01, 0x11;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
|
|
|
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
|
|
|
0x99, 0xF9, 0xBB, 0xAF;
|
2004-06-22 17:38:54 +00:00
|
|
|
stk500_devcode = 0x59;
|
|
|
|
# avr910_devcode = 0x;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x92 0x05;
|
2004-06-22 17:38:54 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xc2;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
chip_erase_delay = 45000;
|
2004-06-22 17:38:54 +00:00
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-04 20:49:00 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
resetdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2004-06-22 17:38:54 +00:00
|
|
|
memory "eeprom"
|
2006-08-14 22:00:47 +00:00
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
2004-06-22 17:38:54 +00:00
|
|
|
size = 256;
|
|
|
|
min_write_delay = 3600;
|
|
|
|
max_write_delay = 3600;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2006-08-14 22:00:47 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 5;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
2004-06-22 17:38:54 +00:00
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 4096;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 64;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
2004-06-22 17:38:54 +00:00
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2004-06-22 17:38:54 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
2005-12-01 19:55:17 +00:00
|
|
|
"x x x x x x x x x x x x x x x o";
|
2004-06-22 17:38:54 +00:00
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2005-12-01 19:55:17 +00:00
|
|
|
"x x x x x x x x x x x x x x x i";
|
2004-06-22 17:38:54 +00:00
|
|
|
;
|
|
|
|
|
2006-08-21 20:19:35 +00:00
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
2004-06-22 17:38:54 +00:00
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega88
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m88";
|
|
|
|
desc = "ATMEGA88";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB6, 0x01, 0x11;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
|
|
|
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
|
|
|
0x99, 0xF9, 0xBB, 0xAF;
|
2004-06-22 17:38:54 +00:00
|
|
|
stk500_devcode = 0x73;
|
|
|
|
# avr910_devcode = 0x;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x93 0x0a;
|
2004-06-22 17:38:54 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xc2;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-04 20:49:00 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
resetdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2004-06-22 17:38:54 +00:00
|
|
|
memory "eeprom"
|
2006-08-14 22:00:47 +00:00
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
2004-06-22 17:38:54 +00:00
|
|
|
size = 512;
|
|
|
|
min_write_delay = 3600;
|
|
|
|
max_write_delay = 3600;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2006-08-14 22:00:47 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 5;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
2004-06-22 17:38:54 +00:00
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 8192;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
2004-06-22 17:38:54 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
2005-12-01 19:55:17 +00:00
|
|
|
"x x x x x x x x x x x x x o o o";
|
2004-06-22 17:38:54 +00:00
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2005-12-01 19:55:17 +00:00
|
|
|
"x x x x x x x x x x x x x i i i";
|
2004-06-22 17:38:54 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2005-11-04 13:51:32 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega168
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m168";
|
|
|
|
desc = "ATMEGA168";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB6, 0x01, 0x11;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
|
|
|
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
|
|
|
0x99, 0xF9, 0xBB, 0xAF;
|
2005-11-04 13:51:32 +00:00
|
|
|
stk500_devcode = 0x86;
|
|
|
|
# avr910_devcode = 0x;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x94 0x06;
|
2005-11-04 13:51:32 +00:00
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xc2;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-04 20:49:00 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
resetdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-11-04 13:51:32 +00:00
|
|
|
memory "eeprom"
|
2006-08-14 22:00:47 +00:00
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
2005-11-04 13:51:32 +00:00
|
|
|
size = 512;
|
|
|
|
min_write_delay = 3600;
|
|
|
|
max_write_delay = 3600;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
2006-08-14 22:00:47 +00:00
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 5;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
2005-11-04 13:51:32 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 16384;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 x x x x x x",
|
|
|
|
" x x x x x x x x";
|
2005-11-05 13:02:55 +00:00
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
|
|
|
|
2005-11-04 13:51:32 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
2005-12-01 19:55:17 +00:00
|
|
|
"x x x x x x x x x x x x x o o o";
|
2005-11-04 13:51:32 +00:00
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2005-12-01 19:55:17 +00:00
|
|
|
"x x x x x x x x x x x x x i i i";
|
2005-11-04 13:51:32 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
2004-06-22 17:38:54 +00:00
|
|
|
|
2004-07-04 12:09:29 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny2313
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t2313";
|
|
|
|
desc = "ATtiny2313";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB2, 0x0F, 0x1F;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
|
|
|
0xBA, 0x0F, 0xB2, 0x0F, 0xBA, 0x0D, 0xBB, 0xBC,
|
|
|
|
0x99, 0xE1, 0xBB, 0xAC;
|
2004-07-04 12:09:29 +00:00
|
|
|
stk500_devcode = 0x23;
|
2006-08-21 21:00:45 +00:00
|
|
|
## Use the ATtiny26 devcode:
|
|
|
|
avr910_devcode = 0x5e;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x91 0x0a;
|
2004-07-04 12:09:29 +00:00
|
|
|
pagel = 0xD4;
|
|
|
|
bs2 = 0xD6;
|
|
|
|
reset = io;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
|
|
|
|
0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
|
|
|
|
0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
|
|
|
|
0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2004-07-04 12:09:29 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 128;
|
2006-08-22 22:05:19 +00:00
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
2004-07-04 12:09:29 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
2004-07-04 12:09:29 +00:00
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 2048;
|
|
|
|
page_size = 32;
|
|
|
|
num_pages = 64;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
# The information in the data sheet of April/2004 is wrong, this works:
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
# The information in the data sheet of April/2004 is wrong, this works:
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
# The information in the data sheet of April/2004 is wrong, this works:
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 x x x x",
|
|
|
|
" x x x x x x x x";
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 32;
|
|
|
|
readsize = 256;
|
2004-07-04 12:09:29 +00:00
|
|
|
;
|
|
|
|
# ATtiny2313 has Signature Bytes: 0x1E 0x91 0x0A.
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-11-12 16:11:55 +00:00
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2004-07-04 12:09:29 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2004-07-04 12:09:29 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2004-07-04 12:09:29 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2004-07-04 12:09:29 +00:00
|
|
|
;
|
|
|
|
# The Tiny2313 has calibration data for both 4 MHz and 8 MHz.
|
|
|
|
# The information in the data sheet of April/2004 is wrong, this works:
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 2;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
Mega-commit to bring in both, the STK500v2 support from Erik
Walthinsen, as well as JTAG ICE mkII support (by me).
Erik's submission has been cleaned up a little bit, mostly to add his
name and the current year to the copyright of the new file, remove
trailing white space before importing the files, and fix the minor
syntax errors in his avrdude.conf.in additions (missing semicolons).
The JTAG ICE mkII support should be considered alpha to beta quality
at this point. Few things are still to be done, like defering the
hfuse (OCDEN) tweaks until they are really required. Also, for
reasons not yet known, the target MCU doesn't start to run after
signing off from the ICE, it needs a power-cycle first (at least on my
STK500).
Note that for the JTAG ICE, I did change a few things in the internal
API. Notably I made the serial receive timeout configurable by the
backends via an exported variable (done in both the Posix and the
Win32 implementation), and I made the serial_recv() function return a
-1 instead of bailing out with exit(1) upon encountering a receive
timeout (currently only done in the Posix implementation). Both
measures together allow me to receive a datastreem from the ICE at 115
kbps on a somewhat lossy PCI multi-UART card that occasionally drops a
character. The JTAG ICE mkII protocol has enough of safety layers to
allow recovering from these events, but the previous code wasn't
prepared for any kind of recovery. The Win32 change for this still
has to be done, and the traditional drivers need to be converted to
exit(1) upon encountering a timeout (as they're now getting a -1
returned they didn't see before in that case).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@451 81a1dc3b-b13d-400b-aceb-764788c761c2
2005-05-10 19:17:12 +00:00
|
|
|
|
2005-08-16 19:34:56 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90PWM2
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "pwm2";
|
|
|
|
desc = "AT90PWM2";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB6, 0x01, 0x11;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
|
|
|
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
|
|
|
0x99, 0xF9, 0xBB, 0xAF;
|
2005-08-16 19:34:56 +00:00
|
|
|
stk500_devcode = 0x65;
|
|
|
|
## avr910_devcode = ?;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x93 0x81;
|
2005-08-16 19:34:56 +00:00
|
|
|
pagel = 0xD8;
|
|
|
|
bs2 = 0xE2;
|
|
|
|
reset = io;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-08-16 19:34:56 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
2006-08-22 22:05:19 +00:00
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
2005-08-16 19:34:56 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-08-16 19:34:56 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 8192;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
2006-02-21 21:17:08 +00:00
|
|
|
" x x x a4 a3 a2 a1 a0",
|
2005-08-16 19:34:56 +00:00
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
2006-02-21 21:17:08 +00:00
|
|
|
" x x x a4 a3 a2 a1 a0",
|
2005-08-16 19:34:56 +00:00
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
2006-02-21 21:17:08 +00:00
|
|
|
" a7 a6 a5 x x x x x",
|
2005-08-16 19:34:56 +00:00
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
# AT90PWM2 has Signature Bytes: 0x1E 0x93 0x81.
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-16 19:34:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-16 19:34:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-16 19:34:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-16 19:34:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90PWM3
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
# Completely identical to AT90PWM2 (including the signature!)
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "pwm3";
|
|
|
|
desc = "AT90PWM3";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB6, 0x01, 0x11;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
|
|
|
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
|
|
|
0x99, 0xF9, 0xBB, 0xAF;
|
2005-08-16 19:34:56 +00:00
|
|
|
stk500_devcode = 0x65;
|
|
|
|
## avr910_devcode = ?;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x93 0x81;
|
2005-08-16 19:34:56 +00:00
|
|
|
pagel = 0xD8;
|
|
|
|
bs2 = 0xE2;
|
|
|
|
reset = io;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-08-16 19:34:56 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
2006-08-22 22:05:19 +00:00
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
2005-08-16 19:34:56 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-08-16 19:34:56 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 8192;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
2006-02-21 21:17:08 +00:00
|
|
|
" x x x a4 a3 a2 a1 a0",
|
2005-08-16 19:34:56 +00:00
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
2006-02-21 21:17:08 +00:00
|
|
|
" x x x a4 a3 a2 a1 a0",
|
2005-08-16 19:34:56 +00:00
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
2006-02-21 21:17:08 +00:00
|
|
|
" a7 a6 a5 x x x x x",
|
2005-08-16 19:34:56 +00:00
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
# AT90PWM2 has Signature Bytes: 0x1E 0x93 0x81.
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
2007-02-26 19:52:53 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90PWM2B
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# Same as AT90PWM2 but different signature.
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "pwm2b";
|
|
|
|
desc = "AT90PWM2B";
|
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB6, 0x01, 0x11;
|
|
|
|
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
|
|
|
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
|
|
|
0x99, 0xF9, 0xBB, 0xAF;
|
|
|
|
stk500_devcode = 0x65;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
signature = 0x1e 0x93 0x83;
|
|
|
|
pagel = 0xD8;
|
|
|
|
bs2 = 0xE2;
|
|
|
|
reset = io;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 8192;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90PWM3B
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
# Completely identical to AT90PWM2B (including the signature!)
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "pwm3b";
|
|
|
|
desc = "AT90PWM3B";
|
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB6, 0x01, 0x11;
|
|
|
|
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
|
|
|
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
|
|
|
0x99, 0xF9, 0xBB, 0xAF;
|
|
|
|
stk500_devcode = 0x65;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
signature = 0x1e 0x93 0x83;
|
|
|
|
pagel = 0xD8;
|
|
|
|
bs2 = 0xE2;
|
|
|
|
reset = io;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 8192;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 64;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-16 19:34:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-16 19:34:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-16 19:34:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-16 19:34:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2005-08-28 19:37:59 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny25
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t25";
|
|
|
|
desc = "ATtiny25";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB4, 0x02, 0x12;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
|
|
|
0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
|
|
|
|
0x99, 0xE1, 0xBB, 0xAC;
|
2005-08-28 19:37:59 +00:00
|
|
|
## no STK500 devcode in XML file, use the ATtiny45 one
|
|
|
|
stk500_devcode = 0x14;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
## Try the AT90S2313 devcode:
|
|
|
|
avr910_devcode = 0x20;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x91 0x08;
|
2005-08-28 19:37:59 +00:00
|
|
|
reset = io;
|
|
|
|
chip_erase_delay = 4500;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
hvsp_controlstack =
|
|
|
|
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
|
|
|
|
0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
|
|
|
|
0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
|
|
|
|
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
hvspcmdexedelay = 0;
|
|
|
|
synchcycles = 6;
|
|
|
|
latchcycles = 1;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 25;
|
2007-01-07 22:36:45 +00:00
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
2006-08-13 22:26:45 +00:00
|
|
|
hvleavestabdelay = 100;
|
|
|
|
resetdelay = 25;
|
|
|
|
chiperasepolltimeout = 40;
|
|
|
|
chiperasetime = 0;
|
|
|
|
programfusepolltimeout = 25;
|
|
|
|
programlockpolltimeout = 25;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
size = 128;
|
2006-08-22 22:05:19 +00:00
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
2006-08-13 22:26:45 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
|
2005-08-28 19:37:59 +00:00
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-08-28 19:37:59 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 2048;
|
|
|
|
page_size = 32;
|
|
|
|
num_pages = 64;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 32;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
# ATtiny25 has Signature Bytes: 0x1E 0x91 0x08.
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2006-08-21 19:43:05 +00:00
|
|
|
size = 2;
|
2005-08-28 19:37:59 +00:00
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny45
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t45";
|
|
|
|
desc = "ATtiny45";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB4, 0x02, 0x12;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
|
|
|
0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
|
|
|
|
0x99, 0xE1, 0xBB, 0xAC;
|
2005-08-28 19:37:59 +00:00
|
|
|
stk500_devcode = 0x14;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
## Try the AT90S2313 devcode:
|
|
|
|
avr910_devcode = 0x20;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x92 0x06;
|
2005-08-28 19:37:59 +00:00
|
|
|
reset = io;
|
|
|
|
chip_erase_delay = 4500;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-07-21 21:53:49 +00:00
|
|
|
hvsp_controlstack =
|
|
|
|
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
|
|
|
|
0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
|
|
|
|
0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
|
|
|
|
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
hvspcmdexedelay = 0;
|
|
|
|
synchcycles = 6;
|
|
|
|
latchcycles = 1;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 25;
|
2007-01-07 22:36:45 +00:00
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
2006-07-21 21:53:49 +00:00
|
|
|
hvleavestabdelay = 100;
|
|
|
|
resetdelay = 25;
|
|
|
|
chiperasepolltimeout = 40;
|
|
|
|
chiperasetime = 0;
|
|
|
|
programfusepolltimeout = 25;
|
|
|
|
programlockpolltimeout = 25;
|
|
|
|
|
2005-08-28 19:37:59 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 256;
|
2006-07-21 21:53:49 +00:00
|
|
|
page_size = 4;
|
2005-08-28 19:37:59 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-08-28 19:37:59 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 4096;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 64;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 32;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
2006-02-27 17:18:42 +00:00
|
|
|
# ATtiny45 has Signature Bytes: 0x1E 0x92 0x08. (Data sheet 2586C-AVR-06/05 (doc2586.pdf) indicates otherwise!)
|
2005-08-28 19:37:59 +00:00
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2006-08-21 19:43:05 +00:00
|
|
|
size = 2;
|
2005-08-28 19:37:59 +00:00
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny85
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t85";
|
|
|
|
desc = "ATtiny85";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB4, 0x02, 0x12;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
|
|
|
0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
|
|
|
|
0x99, 0xE1, 0xBB, 0xAC;
|
2005-08-28 19:37:59 +00:00
|
|
|
## no STK500 devcode in XML file, use the ATtiny45 one
|
|
|
|
stk500_devcode = 0x14;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
## Try the AT90S2313 devcode:
|
|
|
|
avr910_devcode = 0x20;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x93 0x0b;
|
2005-08-28 19:37:59 +00:00
|
|
|
reset = io;
|
|
|
|
chip_erase_delay = 4500;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
hvsp_controlstack =
|
|
|
|
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
|
|
|
|
0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
|
|
|
|
0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
|
|
|
|
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
hvspcmdexedelay = 0;
|
|
|
|
synchcycles = 6;
|
|
|
|
latchcycles = 1;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 25;
|
2007-01-07 22:36:45 +00:00
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
2006-08-13 22:26:45 +00:00
|
|
|
hvleavestabdelay = 100;
|
|
|
|
resetdelay = 25;
|
|
|
|
chiperasepolltimeout = 40;
|
|
|
|
chiperasetime = 0;
|
|
|
|
programfusepolltimeout = 25;
|
|
|
|
programlockpolltimeout = 25;
|
|
|
|
|
2005-08-28 19:37:59 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
2006-08-22 22:05:19 +00:00
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
2005-08-28 19:37:59 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a8 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-08-28 19:37:59 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 8192;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 32;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
# ATtiny85 has Signature Bytes: 0x1E 0x93 0x08.
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-08-28 19:37:59 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
2006-08-21 19:43:05 +00:00
|
|
|
size = 2;
|
2005-08-28 19:37:59 +00:00
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2005-10-09 09:29:24 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega640
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# Almost same as ATmega1280, except for different memory sizes
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m640";
|
|
|
|
desc = "ATMEGA640";
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x96 0x08;
|
2005-10-09 09:29:24 +00:00
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0xB2;
|
|
|
|
# avr910_devcode = 0x43;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-10-09 09:29:24 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-10-09 09:29:24 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 65536;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
2007-05-15 20:25:48 +00:00
|
|
|
delay = 10;
|
2005-10-09 09:29:24 +00:00
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x x i i i";
|
2005-10-09 09:29:24 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega1280
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m1280";
|
|
|
|
desc = "ATMEGA1280";
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x97 0x03;
|
2005-10-09 09:29:24 +00:00
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0xB2;
|
|
|
|
# avr910_devcode = 0x43;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-10-09 09:29:24 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-10-09 09:29:24 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 131072;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 512;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
2007-05-15 20:25:48 +00:00
|
|
|
delay = 10;
|
2005-10-09 09:29:24 +00:00
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x x i i i";
|
2005-10-09 09:29:24 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega1281
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# Identical to ATmega1280
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m1281";
|
|
|
|
desc = "ATMEGA1281";
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x97 0x04;
|
2005-10-09 09:29:24 +00:00
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0xB2;
|
|
|
|
# avr910_devcode = 0x43;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2005-10-09 09:29:24 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-10-09 09:29:24 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 131072;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 512;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
2007-05-15 20:25:48 +00:00
|
|
|
delay = 10;
|
2005-10-09 09:29:24 +00:00
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2006-05-23 22:27:43 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-05-23 22:27:43 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x x i i i";
|
2006-05-23 22:27:43 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-05-23 22:27:43 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-05-23 22:27:43 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega2560
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m2560";
|
|
|
|
desc = "ATMEGA2560";
|
|
|
|
signature = 0x1e 0x98 0x01;
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0xB2;
|
|
|
|
# avr910_devcode = 0x43;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2006-05-23 22:27:43 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2006-05-23 22:27:43 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 262144;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 1024;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
load_ext_addr = " 0 1 0 0 1 1 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 a16",
|
|
|
|
" 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
mode = 0x41;
|
2007-05-15 20:25:48 +00:00
|
|
|
delay = 10;
|
2006-05-23 22:27:43 +00:00
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-05-23 22:27:43 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-05-23 22:27:43 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x x i i i";
|
2006-05-23 22:27:43 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-05-23 22:27:43 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-05-23 22:27:43 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega2561
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m2561";
|
|
|
|
desc = "ATMEGA2561";
|
|
|
|
signature = 0x1e 0x98 0x02;
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0xB2;
|
|
|
|
# avr910_devcode = 0x43;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2006-05-23 22:27:43 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2006-05-23 22:27:43 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 262144;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 1024;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
load_ext_addr = " 0 1 0 0 1 1 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 a16",
|
|
|
|
" 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
mode = 0x41;
|
2007-05-15 20:25:48 +00:00
|
|
|
delay = 10;
|
2006-05-23 22:27:43 +00:00
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-05-23 22:27:43 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
2005-10-09 09:29:24 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x x i i i";
|
2005-10-09 09:29:24 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-10-09 09:29:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2005-12-16 22:39:39 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny24
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t24";
|
|
|
|
desc = "ATtiny24";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB4, 0x07, 0x17;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
|
|
|
0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
|
|
|
|
0x99, 0xE1, 0xBB, 0xAC;
|
2005-12-16 22:39:39 +00:00
|
|
|
## no STK500 devcode in XML file, use the ATtiny45 one
|
|
|
|
stk500_devcode = 0x14;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
## Try the AT90S2313 devcode:
|
|
|
|
avr910_devcode = 0x20;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x91 0x0b;
|
2005-12-16 22:39:39 +00:00
|
|
|
reset = io;
|
|
|
|
chip_erase_delay = 4500;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
hvsp_controlstack =
|
|
|
|
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
|
|
|
|
0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
|
|
|
|
0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
|
|
|
|
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
hvspcmdexedelay = 0;
|
|
|
|
synchcycles = 6;
|
|
|
|
latchcycles = 1;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 25;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 70;
|
|
|
|
hvleavestabdelay = 100;
|
|
|
|
resetdelay = 25;
|
|
|
|
chiperasepolltimeout = 40;
|
|
|
|
chiperasetime = 0;
|
|
|
|
programfusepolltimeout = 25;
|
|
|
|
programlockpolltimeout = 25;
|
|
|
|
|
2005-12-16 22:39:39 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 128;
|
2006-08-22 22:05:19 +00:00
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
2005-12-16 22:39:39 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-12-16 22:39:39 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 2048;
|
|
|
|
page_size = 32;
|
|
|
|
num_pages = 64;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x x a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 32;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
# ATtiny24 has Signature Bytes: 0x1E 0x91 0x0B.
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x i i";
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny44
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t44";
|
|
|
|
desc = "ATtiny44";
|
2006-11-20 23:23:37 +00:00
|
|
|
has_debugwire = yes;
|
2006-11-21 11:56:26 +00:00
|
|
|
flash_instr = 0xB4, 0x07, 0x17;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
|
|
|
0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
|
|
|
|
0x99, 0xE1, 0xBB, 0xAC;
|
2005-12-16 22:39:39 +00:00
|
|
|
## no STK500 devcode in XML file, use the ATtiny45 one
|
|
|
|
stk500_devcode = 0x14;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
## Try the AT90S2313 devcode:
|
|
|
|
avr910_devcode = 0x20;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x92 0x07;
|
2005-12-16 22:39:39 +00:00
|
|
|
reset = io;
|
|
|
|
chip_erase_delay = 4500;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
hvsp_controlstack =
|
|
|
|
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
|
|
|
|
0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
|
|
|
|
0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
|
|
|
|
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
hvspcmdexedelay = 0;
|
|
|
|
synchcycles = 6;
|
|
|
|
latchcycles = 1;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 25;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 70;
|
|
|
|
hvleavestabdelay = 100;
|
|
|
|
resetdelay = 25;
|
|
|
|
chiperasepolltimeout = 40;
|
|
|
|
chiperasetime = 0;
|
|
|
|
programfusepolltimeout = 25;
|
|
|
|
programlockpolltimeout = 25;
|
|
|
|
|
2005-12-16 22:39:39 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 256;
|
2006-08-22 22:05:19 +00:00
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
2005-12-16 22:39:39 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-12-16 22:39:39 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 4096;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 64;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 32;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
# ATtiny44 has Signature Bytes: 0x1E 0x92 0x07.
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x i i";
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny84
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t84";
|
|
|
|
desc = "ATtiny84";
|
2006-11-21 11:56:26 +00:00
|
|
|
has_debugwire = yes;
|
|
|
|
flash_instr = 0xB4, 0x07, 0x17;
|
2006-11-23 07:07:06 +00:00
|
|
|
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
|
|
|
0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
|
|
|
|
0x99, 0xE1, 0xBB, 0xAC;
|
2005-12-16 22:39:39 +00:00
|
|
|
## no STK500 devcode in XML file, use the ATtiny45 one
|
|
|
|
stk500_devcode = 0x14;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
## Try the AT90S2313 devcode:
|
|
|
|
avr910_devcode = 0x20;
|
2006-02-27 17:18:42 +00:00
|
|
|
signature = 0x1e 0x93 0x0c;
|
2005-12-16 22:39:39 +00:00
|
|
|
reset = io;
|
|
|
|
chip_erase_delay = 4500;
|
|
|
|
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
hvsp_controlstack =
|
|
|
|
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
|
|
|
|
0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
|
|
|
|
0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
|
|
|
|
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
hvspcmdexedelay = 0;
|
|
|
|
synchcycles = 6;
|
|
|
|
latchcycles = 1;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 25;
|
|
|
|
resetdelayms = 0;
|
|
|
|
resetdelayus = 70;
|
|
|
|
hvleavestabdelay = 100;
|
|
|
|
resetdelay = 25;
|
|
|
|
chiperasepolltimeout = 40;
|
|
|
|
chiperasetime = 0;
|
|
|
|
programfusepolltimeout = 25;
|
|
|
|
programlockpolltimeout = 25;
|
|
|
|
|
2005-12-16 22:39:39 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
2006-08-22 22:05:19 +00:00
|
|
|
paged = no;
|
|
|
|
page_size = 4;
|
2005-12-16 22:39:39 +00:00
|
|
|
min_write_delay = 4000;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
|
|
|
|
"a8 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2005-12-16 22:39:39 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 8192;
|
|
|
|
page_size = 64;
|
|
|
|
num_pages = 128;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 x x x x x",
|
|
|
|
" x x x a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 0 0 0 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 32;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
# ATtiny84 has Signature Bytes: 0x1E 0x93 0x0C.
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x x x x x x x i i";
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2005-12-16 22:39:39 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2006-03-28 20:35:21 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90USB646
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "usb646";
|
|
|
|
desc = "AT90USB646";
|
2008-11-04 11:46:32 +00:00
|
|
|
signature = 0x1e 0x96 0x82;
|
2006-03-28 20:35:21 +00:00
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0xB2;
|
|
|
|
# avr910_devcode = 0x43;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2006-03-28 20:35:21 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 2048;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2006-03-28 20:35:21 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 65536;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x i i i i";
|
2006-03-28 20:35:21 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90USB647
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# identical to AT90USB646
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "usb647";
|
|
|
|
desc = "AT90USB647";
|
2008-11-04 11:46:32 +00:00
|
|
|
signature = 0x1e 0x96 0x82;
|
2006-03-28 20:35:21 +00:00
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0xB2;
|
|
|
|
# avr910_devcode = 0x43;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2006-03-28 20:35:21 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 2048;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2006-03-28 20:35:21 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 65536;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x i i i i";
|
2006-03-28 20:35:21 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90USB1286
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "usb1286";
|
|
|
|
desc = "AT90USB1286";
|
|
|
|
signature = 0x1e 0x97 0x82;
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0xB2;
|
|
|
|
# avr910_devcode = 0x43;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2006-03-28 20:35:21 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2006-03-28 20:35:21 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 131072;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 512;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x i i i i";
|
2006-03-28 20:35:21 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# AT90USB1287
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# identical to AT90USB1286
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "usb1287";
|
|
|
|
desc = "AT90USB1287";
|
|
|
|
signature = 0x1e 0x97 0x82;
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0xB2;
|
|
|
|
# avr910_devcode = 0x43;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pagel = 0xD7;
|
|
|
|
bs2 = 0xA0;
|
|
|
|
reset = dedicated;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x x x x x x x";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2006-03-28 20:35:21 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
rampz = 0x3b;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 4096;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" x x x x a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
2006-08-22 22:05:19 +00:00
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 x x x a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
2006-03-28 20:35:21 +00:00
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 131072;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 512;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0x00;
|
|
|
|
readback_p2 = 0x00;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" x x x x x x x x",
|
|
|
|
" x a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
"a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 x x x x x x x",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 6;
|
|
|
|
blocksize = 256;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"x x x x x x x x i i i i i i i i";
|
|
|
|
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
2006-11-02 21:02:41 +00:00
|
|
|
"x x x x x x x x x x x x i i i i";
|
2006-03-28 20:35:21 +00:00
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"x x x x x x x x o o o o o o o o";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
|
|
|
|
"x x x x x x x x 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-03-28 20:35:21 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
read = "0 0 1 1 1 0 0 0 x x x x x x x x",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 x x x x x x x x",
|
|
|
|
"x x x x x x a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2006-08-10 17:31:56 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega325
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m325";
|
|
|
|
desc = "ATMEGA325";
|
2006-11-09 23:06:55 +00:00
|
|
|
signature = 0x1e 0x95 0x05;
|
2006-08-10 17:31:56 +00:00
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x??; # No STK500v1 support?
|
|
|
|
# avr910_devcode = 0x??; # Try the ATmega16 one
|
|
|
|
avr910_devcode = 0x74;
|
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2006-08-10 17:31:56 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
|
|
|
size = 1024;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 32768;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega645
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m645";
|
|
|
|
desc = "ATMEGA645";
|
2006-11-09 23:06:55 +00:00
|
|
|
signature = 0x1E 0x96 0x05;
|
2006-08-10 17:31:56 +00:00
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x??; # No STK500v1 support?
|
|
|
|
# avr910_devcode = 0x??; # Try the ATmega16 one
|
|
|
|
avr910_devcode = 0x74;
|
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2006-08-10 17:31:56 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 2048;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 8;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 65536;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega3250
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m3250";
|
|
|
|
desc = "ATMEGA3250";
|
2006-11-09 23:06:55 +00:00
|
|
|
signature = 0x1E 0x95 0x06;
|
2006-08-10 17:31:56 +00:00
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x??; # No STK500v1 support?
|
|
|
|
# avr910_devcode = 0x??; # Try the ATmega16 one
|
|
|
|
avr910_devcode = 0x74;
|
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2006-08-10 17:31:56 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 4; /* for parallel programming */
|
|
|
|
size = 1024;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 0 0 0 0 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 32768;
|
|
|
|
page_size = 128;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" 0 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega6450
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m6450";
|
|
|
|
desc = "ATMEGA6450";
|
2006-11-09 23:06:55 +00:00
|
|
|
signature = 0x1E 0x96 0x06;
|
2006-08-10 17:31:56 +00:00
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x??; # No STK500v1 support?
|
|
|
|
# avr910_devcode = 0x??; # Try the ATmega16 one
|
|
|
|
avr910_devcode = 0x74;
|
|
|
|
pagel = 0xd7;
|
|
|
|
bs2 = 0xa0;
|
|
|
|
chip_erase_delay = 9000;
|
|
|
|
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
|
|
|
|
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
timeout = 200;
|
|
|
|
stabdelay = 100;
|
|
|
|
cmdexedelay = 25;
|
|
|
|
synchloops = 32;
|
|
|
|
bytedelay = 0;
|
|
|
|
pollindex = 3;
|
|
|
|
pollvalue = 0x53;
|
|
|
|
predelay = 1;
|
|
|
|
postdelay = 1;
|
|
|
|
pollmethod = 1;
|
|
|
|
|
2006-08-13 22:26:45 +00:00
|
|
|
pp_controlstack =
|
|
|
|
0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
|
|
|
|
0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
|
|
|
|
0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
|
|
|
|
0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
|
|
|
|
hventerstabdelay = 100;
|
|
|
|
progmodedelay = 0;
|
|
|
|
latchcycles = 5;
|
|
|
|
togglevtg = 1;
|
|
|
|
poweroffdelay = 15;
|
|
|
|
resetdelayms = 1;
|
|
|
|
resetdelayus = 0;
|
|
|
|
hvleavestabdelay = 15;
|
|
|
|
chiperasepulsewidth = 0;
|
|
|
|
chiperasepolltimeout = 10;
|
|
|
|
programfusepulsewidth = 0;
|
|
|
|
programfusepolltimeout = 5;
|
|
|
|
programlockpulsewidth = 0;
|
|
|
|
programlockpolltimeout = 5;
|
|
|
|
|
2006-08-10 17:31:56 +00:00
|
|
|
idr = 0x31;
|
|
|
|
spmcr = 0x57;
|
|
|
|
allowfullpagebitstream = no;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
paged = no; /* leave this "no" */
|
|
|
|
page_size = 8; /* for parallel programming */
|
|
|
|
size = 2048;
|
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read = " 1 0 1 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
write = " 1 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_lo = " 1 1 0 0 0 0 0 1",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 1 1 0 0 0 0 1 0",
|
|
|
|
" 0 0 0 0 0 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 0 0 0",
|
|
|
|
" x x x x x x x x";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 4;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
paged = yes;
|
|
|
|
size = 65536;
|
|
|
|
page_size = 256;
|
|
|
|
num_pages = 256;
|
|
|
|
min_write_delay = 4500;
|
|
|
|
max_write_delay = 4500;
|
|
|
|
readback_p1 = 0xff;
|
|
|
|
readback_p2 = 0xff;
|
|
|
|
read_lo = " 0 0 1 0 0 0 0 0",
|
|
|
|
" a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
read_hi = " 0 0 1 0 1 0 0 0",
|
|
|
|
" a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" o o o o o o o o";
|
|
|
|
|
|
|
|
loadpage_lo = " 0 1 0 0 0 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
loadpage_hi = " 0 1 0 0 1 0 0 0",
|
|
|
|
" 0 0 0 0 0 0 0 0",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" i i i i i i i i";
|
|
|
|
|
|
|
|
writepage = " 0 1 0 0 1 1 0 0",
|
|
|
|
" a15 a14 a13 a12 a11 a10 a9 a8",
|
|
|
|
" a7 a6 a5 a4 a3 a2 a1 a0",
|
|
|
|
" 0 0 0 0 0 0 0 0";
|
|
|
|
|
|
|
|
mode = 0x41;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
readsize = 256;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lock"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"x x x x x x x x x x o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 1 1 i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "lfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "hfuse"
|
|
|
|
size = 1;
|
|
|
|
read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 i i i i i i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "efuse"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
|
|
|
|
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
|
2006-08-21 20:19:35 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2006-08-10 17:31:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 a1 a0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 1;
|
|
|
|
|
|
|
|
read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
|
|
|
|
"0 0 0 0 0 0 0 0 o o o o o o o o";
|
|
|
|
;
|
|
|
|
;
|
2008-07-26 22:53:40 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATxmega128A1 rev. D (engineering samples)
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "x128a1d";
|
|
|
|
desc = "ATXMEGA128A1REVD";
|
|
|
|
signature = 0x1E 0x97 0x41;
|
|
|
|
has_jtag = yes;
|
|
|
|
has_pdi = yes;
|
|
|
|
nvm_base = 0x01C0;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
page_size = 32;
|
|
|
|
size = 2048;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
size = 0x20000;
|
|
|
|
page_size = 512;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "boot"
|
|
|
|
size = 0x2000;
|
|
|
|
page_size = 512;
|
|
|
|
;
|
|
|
|
|
|
|
|
# signature is actually in IO address space
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
offset = 0x90;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse0"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x20;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse1"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x21;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse2"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x22;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse4"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x24;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse5"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x25;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lockbits"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x27;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 512;
|
|
|
|
offset = 0x200;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "usersig"
|
|
|
|
size = 512;
|
|
|
|
;
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATxmega128A1
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "x128a1";
|
|
|
|
desc = "ATXMEGA128A1";
|
|
|
|
signature = 0x1E 0x97 0x4C;
|
|
|
|
has_jtag = yes;
|
|
|
|
has_pdi = yes;
|
|
|
|
nvm_base = 0x01C0;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
page_size = 32;
|
|
|
|
size = 2048;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "flash"
|
|
|
|
size = 0x20000;
|
|
|
|
page_size = 512;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "boot"
|
|
|
|
size = 0x2000;
|
|
|
|
page_size = 512;
|
|
|
|
;
|
|
|
|
|
|
|
|
# signature is actually in IO address space
|
|
|
|
memory "signature"
|
|
|
|
size = 3;
|
|
|
|
offset = 0x90;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse0"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x20;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse1"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x21;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse2"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x22;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse4"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x24;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "fuse5"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x25;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "lockbits"
|
|
|
|
size = 1;
|
|
|
|
offset = 0x27;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "calibration"
|
|
|
|
size = 512;
|
|
|
|
;
|
|
|
|
|
|
|
|
memory "usersig"
|
|
|
|
size = 512;
|
|
|
|
offset = 0x200;
|
|
|
|
;
|
|
|
|
|
|
|
|
;
|