mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-19 19:40:10 +00:00
Implement EEPROM access through debugWire.
* jtagmkII.c: Extend the jtagmkII_read_byte() and jtagmkII_write_byte() methods to handle EEPROM through debugWire. * avrpart.h: Implement the "flash instruction" parameter. * config_gram.y: (Ditto.) * lexer.l: (Ditto.) * avrdude.conf.in: (Ditto.) * avrdude.1: Document the EEPROM access through dW. * doc/avrdude.texi: (Ditto.) * tools/get-dw-params.xsl: Extend to extract the flash instruction field. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@693 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -965,6 +965,9 @@ part
|
||||
desc = "ATtiny13";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB4, 0x0E, 0x1E;
|
||||
eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
||||
0xBC, 0x0E, 0xB4, 0x0E, 0xBA, 0x0D, 0xBB, 0xBC,
|
||||
0x99, 0xE1, 0xBB, 0xAC;
|
||||
stk500_devcode = 0x14;
|
||||
signature = 0x1e 0x90 0x07;
|
||||
chip_erase_delay = 4000;
|
||||
@@ -5915,6 +5918,9 @@ part
|
||||
desc = "ATTINY261";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB4, 0x00, 0x10;
|
||||
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
||||
0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
|
||||
0x99, 0xE1, 0xBB, 0xAC;
|
||||
# stk500_devcode = 0x21;
|
||||
# avr910_devcode = 0x5e;
|
||||
signature = 0x1e 0x91 0x0c;
|
||||
@@ -6101,6 +6107,9 @@ part
|
||||
desc = "ATTINY461";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB4, 0x00, 0x10;
|
||||
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
||||
0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
|
||||
0x99, 0xE1, 0xBB, 0xAC;
|
||||
# stk500_devcode = 0x21;
|
||||
# avr910_devcode = 0x5e;
|
||||
signature = 0x1e 0x92 0x08;
|
||||
@@ -6287,6 +6296,9 @@ part
|
||||
desc = "ATTINY861";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB4, 0x00, 0x10;
|
||||
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
||||
0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
|
||||
0x99, 0xE1, 0xBB, 0xAC;
|
||||
# stk500_devcode = 0x21;
|
||||
# avr910_devcode = 0x5e;
|
||||
signature = 0x1e 0x93 0x0d;
|
||||
@@ -6472,6 +6484,9 @@ part
|
||||
desc = "ATMEGA48";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB6, 0x01, 0x11;
|
||||
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
||||
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
||||
0x99, 0xF9, 0xBB, 0xAF;
|
||||
stk500_devcode = 0x59;
|
||||
# avr910_devcode = 0x;
|
||||
signature = 0x1e 0x92 0x05;
|
||||
@@ -6656,6 +6671,9 @@ part
|
||||
desc = "ATMEGA88";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB6, 0x01, 0x11;
|
||||
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
||||
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
||||
0x99, 0xF9, 0xBB, 0xAF;
|
||||
stk500_devcode = 0x73;
|
||||
# avr910_devcode = 0x;
|
||||
signature = 0x1e 0x93 0x0a;
|
||||
@@ -6839,6 +6857,9 @@ part
|
||||
desc = "ATMEGA168";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB6, 0x01, 0x11;
|
||||
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
||||
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
||||
0x99, 0xF9, 0xBB, 0xAF;
|
||||
stk500_devcode = 0x86;
|
||||
# avr910_devcode = 0x;
|
||||
signature = 0x1e 0x94 0x06;
|
||||
@@ -7024,6 +7045,9 @@ part
|
||||
desc = "ATtiny2313";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB2, 0x0F, 0x1F;
|
||||
eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
||||
0xBA, 0x0F, 0xB2, 0x0F, 0xBA, 0x0D, 0xBB, 0xBC,
|
||||
0x99, 0xE1, 0xBB, 0xAC;
|
||||
stk500_devcode = 0x23;
|
||||
## Use the ATtiny26 devcode:
|
||||
avr910_devcode = 0x5e;
|
||||
@@ -7208,6 +7232,9 @@ part
|
||||
desc = "AT90PWM2";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB6, 0x01, 0x11;
|
||||
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
||||
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
||||
0x99, 0xF9, 0xBB, 0xAF;
|
||||
stk500_devcode = 0x65;
|
||||
## avr910_devcode = ?;
|
||||
signature = 0x1e 0x93 0x81;
|
||||
@@ -7389,6 +7416,9 @@ part
|
||||
desc = "AT90PWM3";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB6, 0x01, 0x11;
|
||||
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
|
||||
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
|
||||
0x99, 0xF9, 0xBB, 0xAF;
|
||||
stk500_devcode = 0x65;
|
||||
## avr910_devcode = ?;
|
||||
signature = 0x1e 0x93 0x81;
|
||||
@@ -7568,6 +7598,9 @@ part
|
||||
desc = "ATtiny25";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB4, 0x02, 0x12;
|
||||
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
||||
0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
|
||||
0x99, 0xE1, 0xBB, 0xAC;
|
||||
## no STK500 devcode in XML file, use the ATtiny45 one
|
||||
stk500_devcode = 0x14;
|
||||
## avr910_devcode = ?;
|
||||
@@ -7745,6 +7778,9 @@ part
|
||||
desc = "ATtiny45";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB4, 0x02, 0x12;
|
||||
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
||||
0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
|
||||
0x99, 0xE1, 0xBB, 0xAC;
|
||||
stk500_devcode = 0x14;
|
||||
## avr910_devcode = ?;
|
||||
## Try the AT90S2313 devcode:
|
||||
@@ -7921,6 +7957,9 @@ part
|
||||
desc = "ATtiny85";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB4, 0x02, 0x12;
|
||||
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
||||
0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
|
||||
0x99, 0xE1, 0xBB, 0xAC;
|
||||
## no STK500 devcode in XML file, use the ATtiny45 one
|
||||
stk500_devcode = 0x14;
|
||||
## avr910_devcode = ?;
|
||||
@@ -9050,6 +9089,9 @@ part
|
||||
desc = "ATtiny24";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB4, 0x07, 0x17;
|
||||
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
||||
0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
|
||||
0x99, 0xE1, 0xBB, 0xAC;
|
||||
## no STK500 devcode in XML file, use the ATtiny45 one
|
||||
stk500_devcode = 0x14;
|
||||
## avr910_devcode = ?;
|
||||
@@ -9229,6 +9271,9 @@ part
|
||||
desc = "ATtiny44";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB4, 0x07, 0x17;
|
||||
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
||||
0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
|
||||
0x99, 0xE1, 0xBB, 0xAC;
|
||||
## no STK500 devcode in XML file, use the ATtiny45 one
|
||||
stk500_devcode = 0x14;
|
||||
## avr910_devcode = ?;
|
||||
@@ -9408,6 +9453,9 @@ part
|
||||
desc = "ATtiny84";
|
||||
has_debugwire = yes;
|
||||
flash_instr = 0xB4, 0x07, 0x17;
|
||||
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
|
||||
0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
|
||||
0x99, 0xE1, 0xBB, 0xAC;
|
||||
## no STK500 devcode in XML file, use the ATtiny45 one
|
||||
stk500_devcode = 0x14;
|
||||
## avr910_devcode = ?;
|
||||
|
||||
Reference in New Issue
Block a user