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
|
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 = par | stk500 | stk500v2 | avr910 | jtagmkii; # 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
|
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
|
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> ;
|
|
|
|
# cmdexdelay = <num> ;
|
|
|
|
# synchloops = <num> ;
|
|
|
|
# bytedelay = <num> ;
|
|
|
|
# pollvalue = <num> ;
|
|
|
|
# pollindex = <num> ;
|
|
|
|
# predelay = <num> ;
|
|
|
|
# postdelay = <num> ;
|
|
|
|
# pollmethod = <num> ;
|
|
|
|
# mode = <num> ;
|
|
|
|
# delay = <num> ;
|
|
|
|
# blocksize = <num> ;
|
|
|
|
# readsize = <num> ;
|
|
|
|
# # 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
|
2002-12-01 15:05:56 +00:00
|
|
|
|
|
|
|
#define AT86RF401 0xD0
|
|
|
|
|
|
|
|
#define AT89START 0xE0
|
|
|
|
#define AT89S51 0xE0
|
|
|
|
#define AT89S52 0xE1
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
;
|
|
|
|
|
2002-12-01 04:30:01 +00:00
|
|
|
programmer
|
|
|
|
id = "stk500";
|
|
|
|
desc = "Atmel STK500";
|
|
|
|
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";
|
|
|
|
desc = "Atmel STK500 V2";
|
|
|
|
type = stk500v2;
|
|
|
|
;
|
|
|
|
|
2003-03-16 18:19:37 +00:00
|
|
|
programmer
|
|
|
|
id = "avr910";
|
|
|
|
desc = "Atmel Low Cost Serial Programmer";
|
|
|
|
type = avr910;
|
|
|
|
;
|
|
|
|
|
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;
|
|
|
|
;
|
|
|
|
|
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;
|
|
|
|
;
|
|
|
|
|
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;
|
|
|
|
;
|
|
|
|
|
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.
|
|
|
|
#
|
|
|
|
|
|
|
|
# serial ponyprog design (dasa2 in uisp)
|
|
|
|
# reset=!txd sck=rts mosi=dtr miso=cts
|
|
|
|
|
|
|
|
programmer
|
|
|
|
id = "ponyser";
|
|
|
|
desc = "serial port banging, design ponyprog serial";
|
|
|
|
type = serbb;
|
|
|
|
reset = ~3;
|
|
|
|
sck = 6;
|
|
|
|
mosi = 4;
|
|
|
|
miso = 7;
|
|
|
|
;
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
reset = 6;
|
|
|
|
sck = 4;
|
|
|
|
mosi = 3;
|
|
|
|
miso = 7;
|
|
|
|
;
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
sck = 6;
|
|
|
|
mosi = 3;
|
|
|
|
miso = 7;
|
|
|
|
;
|
|
|
|
|
2002-12-01 15:05:56 +00:00
|
|
|
#
|
|
|
|
# PART DEFINITIONS
|
|
|
|
#
|
2002-12-01 04:30:01 +00:00
|
|
|
|
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;
|
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;
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2004-06-22 17:38:54 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny13
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t13";
|
|
|
|
desc = "ATtiny13";
|
|
|
|
stk500_devcode = 0x14;
|
|
|
|
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;
|
|
|
|
|
2004-06-22 17:38:54 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 64;
|
|
|
|
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
|
|
|
|
|
|
|
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"
|
|
|
|
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 "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;
|
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;
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
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;
|
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;
|
|
|
|
|
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;
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
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;
|
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;
|
|
|
|
|
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";
|
|
|
|
;
|
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;
|
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;
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
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";
|
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;
|
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;
|
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;
|
|
|
|
|
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;
|
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;
|
|
|
|
|
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;
|
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;
|
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;
|
|
|
|
|
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;
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
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";
|
|
|
|
;
|
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;
|
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;
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
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";
|
|
|
|
;
|
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;
|
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;
|
|
|
|
|
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";
|
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";
|
|
|
|
;
|
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
2003-11-20 04:05:53 +00:00
|
|
|
avr910_devcode = 0x43;
|
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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
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";
|
|
|
|
;
|
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";
|
|
|
|
;
|
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";
|
|
|
|
;
|
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;
|
|
|
|
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;
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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;
|
2003-11-20 04:05:53 +00:00
|
|
|
avr910_devcode = 0x74;
|
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;
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
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";
|
|
|
|
;
|
2001-10-16 02:47:55 +00:00
|
|
|
;
|
|
|
|
|
2001-11-21 05:50:59 +00:00
|
|
|
|
2005-06-14 20:18:42 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega164
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
# close to ATmega16
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m164";
|
|
|
|
desc = "ATMEGA164";
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x82; # 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",
|
|
|
|
"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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
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";
|
|
|
|
;
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega324
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
# similar to ATmega164
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m324";
|
|
|
|
desc = "ATMEGA324";
|
|
|
|
has_jtag = yes;
|
|
|
|
# stk500_devcode = 0x82; # 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",
|
|
|
|
"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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
delay = 10;
|
|
|
|
blocksize = 128;
|
|
|
|
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",
|
|
|
|
" 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",
|
|
|
|
" 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",
|
|
|
|
" 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 = 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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
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";
|
|
|
|
;
|
|
|
|
|
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;
|
|
|
|
# stk500_devcode = 0x82; # 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",
|
|
|
|
"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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
mode = 0x04;
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
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";
|
|
|
|
;
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
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;
|
2003-11-20 04:05:53 +00:00
|
|
|
chip_erase_delay = 9000;
|
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";
|
|
|
|
;
|
|
|
|
|
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;
|
|
|
|
|
2003-09-08 14:51:28 +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-09-08 14:51:28 +00:00
|
|
|
size = 512;
|
2003-11-20 04:05:53 +00:00
|
|
|
min_write_delay = 9000;
|
|
|
|
max_write_delay = 9000;
|
2003-09-08 14:51:28 +00:00
|
|
|
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
|
|
|
|
|
|
|
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;
|
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";
|
|
|
|
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;
|
2003-11-30 15:16:48 +00:00
|
|
|
avr910_devcode = 0x75;
|
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;
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
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;
|
|
|
|
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 i i i x";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# 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;
|
|
|
|
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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
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;
|
|
|
|
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 i i i x";
|
|
|
|
;
|
|
|
|
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
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;
|
|
|
|
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 i i i x";
|
|
|
|
;
|
|
|
|
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
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;
|
|
|
|
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 i i i x";
|
|
|
|
;
|
|
|
|
|
|
|
|
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;
|
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;
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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"
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2003-11-20 04:05:53 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega161
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m161";
|
|
|
|
desc = "ATMEGA161";
|
|
|
|
stk500_devcode = 0x80;
|
|
|
|
avr910_devcode = 0x60;
|
|
|
|
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;
|
|
|
|
|
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;
|
2003-11-20 04:05:53 +00:00
|
|
|
avr910_devcode = 0x76;
|
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;
|
|
|
|
|
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;
|
|
|
|
delay = 10;
|
|
|
|
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;
|
|
|
|
delay = 6;
|
|
|
|
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;
|
2003-11-20 04:05:53 +00:00
|
|
|
avr910_devcode = 0x3A;
|
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;
|
|
|
|
|
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;
|
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;
|
|
|
|
|
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"
|
|
|
|
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
|
|
|
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;
|
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;
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega48
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m48";
|
|
|
|
desc = "ATMEGA48";
|
|
|
|
stk500_devcode = 0x59;
|
|
|
|
# avr910_devcode = 0x;
|
|
|
|
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;
|
|
|
|
|
2004-06-22 17:38:54 +00:00
|
|
|
memory "eeprom"
|
|
|
|
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
|
|
|
|
|
|
|
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",
|
|
|
|
"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 i i 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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega88
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m88";
|
|
|
|
desc = "ATMEGA88";
|
|
|
|
stk500_devcode = 0x73;
|
|
|
|
# avr910_devcode = 0x;
|
|
|
|
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;
|
|
|
|
|
2004-06-22 17:38:54 +00:00
|
|
|
memory "eeprom"
|
|
|
|
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
|
|
|
|
|
|
|
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",
|
|
|
|
"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 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"
|
|
|
|
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";
|
|
|
|
stk500_devcode = 0x86;
|
|
|
|
# avr910_devcode = 0x;
|
|
|
|
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;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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",
|
|
|
|
"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 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"
|
|
|
|
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";
|
|
|
|
stk500_devcode = 0x23;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
## Try the AT90S2313 devcode:
|
|
|
|
avr910_devcode = 0x20;
|
|
|
|
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;
|
|
|
|
|
2004-07-04 12:09:29 +00:00
|
|
|
memory "eeprom"
|
|
|
|
size = 128;
|
|
|
|
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
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
# 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";
|
|
|
|
stk500_devcode = 0x65;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
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;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
|
|
|
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";
|
|
|
|
|
|
|
|
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 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 0 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 = 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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
stk500_devcode = 0x65;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
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;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
|
|
|
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";
|
|
|
|
|
|
|
|
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 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 0 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 = 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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
## no STK500 devcode in XML file, use the ATtiny45 one
|
|
|
|
stk500_devcode = 0x14;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
## Try the AT90S2313 devcode:
|
|
|
|
avr910_devcode = 0x20;
|
|
|
|
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;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
size = 128;
|
|
|
|
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";
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny45
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t45";
|
|
|
|
desc = "ATtiny45";
|
|
|
|
stk500_devcode = 0x14;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
## Try the AT90S2313 devcode:
|
|
|
|
avr910_devcode = 0x20;
|
|
|
|
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;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
size = 256;
|
|
|
|
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";
|
|
|
|
|
|
|
|
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;
|
|
|
|
;
|
|
|
|
# ATtiny45 has Signature Bytes: 0x1E 0x92 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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATtiny85
|
|
|
|
#------------------------------------------------------------
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "t85";
|
|
|
|
desc = "ATtiny85";
|
|
|
|
## no STK500 devcode in XML file, use the ATtiny45 one
|
|
|
|
stk500_devcode = 0x14;
|
|
|
|
## avr910_devcode = ?;
|
|
|
|
## Try the AT90S2313 devcode:
|
|
|
|
avr910_devcode = 0x20;
|
|
|
|
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;
|
|
|
|
|
|
|
|
memory "eeprom"
|
|
|
|
size = 512;
|
|
|
|
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";
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
2005-10-09 09:29:24 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# ATmega640
|
|
|
|
#------------------------------------------------------------
|
|
|
|
# Almost same as ATmega1280, except for different memory sizes
|
|
|
|
|
|
|
|
part
|
|
|
|
id = "m640";
|
|
|
|
desc = "ATMEGA640";
|
|
|
|
# Device ID 0x1e 0x96 0x08
|
|
|
|
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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
# Device ID 0x1e 0x97 0x03
|
|
|
|
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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
# Device ID 0x1e 0x97 0x04
|
|
|
|
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;
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
|
|
|
|
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";
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|