Fix reset=dedicated|io; in avrdude.conf.in

Done by adding code in developer_opts.c that allows to inject part
or memory parameters into a semi-automated rewrite of avrdude.conf
This is a generic method, whereby an external program can, eg.,
scrape atdf files for the right parameters and put them into a
source table into developer_opts.c
  - Then write parts description with -p*/i
  - Use the output in a new avrdude.conf
  - Output again with -p* (no /i) and use that for final avrdude.conf
  - Remove table entries
This commit is contained in:
Stefan Rueger
2022-08-24 12:55:00 +01:00
parent 7fab75336e
commit c97eb85cd8
2 changed files with 74 additions and 4 deletions

View File

@@ -3501,6 +3501,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x96 0x02;
reset = io;
has_jtag = yes;
allowfullpagebitstream = yes;
timeout = 200;
@@ -3626,6 +3627,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x97 0x02;
reset = io;
has_jtag = yes;
allowfullpagebitstream = yes;
timeout = 200;
@@ -3752,6 +3754,7 @@ part
bs2 = 0xa0;
# avr910_devcode = 0x43;
signature = 0x1e 0x97 0x81;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -3872,6 +3875,7 @@ part
bs2 = 0xa0;
# avr910_devcode = 0x43;
signature = 0x1e 0x96 0x81;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -3992,6 +3996,7 @@ part
bs2 = 0xa0;
# avr910_devcode = 0x43;
signature = 0x1e 0x95 0x81;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -4112,6 +4117,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x94 0x03;
reset = io;
has_jtag = yes;
allowfullpagebitstream = yes;
timeout = 200;
@@ -4233,6 +4239,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x95 0x08;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -4421,6 +4428,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x96 0x09;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -4567,6 +4575,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x97 0x06;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -4698,6 +4707,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x94 0x04;
reset = io;
has_jtag = yes;
allowfullpagebitstream = yes;
timeout = 200;
@@ -5031,6 +5041,7 @@ part parent "m169"
desc = "ATmega169A";
id = "m169a";
signature = 0x1e 0x94 0x11;
reset = io;
;
#------------------------------------------------------------
@@ -5040,6 +5051,7 @@ part parent "m169"
part parent "m169"
desc = "ATmega169P";
id = "m169p";
reset = io;
;
#------------------------------------------------------------
@@ -5049,6 +5061,7 @@ part parent "m169"
part parent "m169"
desc = "ATmega169PA";
id = "m169pa";
reset = io;
;
#------------------------------------------------------------
@@ -5063,6 +5076,7 @@ part
avr910_devcode = 0x75;
chip_erase_delay = 9000;
signature = 0x1e 0x95 0x03;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -5252,6 +5266,7 @@ part
avr910_devcode = 0x75;
chip_erase_delay = 9000;
signature = 0x1e 0x96 0x03;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -5422,6 +5437,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x95 0x02;
reset = io;
has_jtag = yes;
allowfullpagebitstream = yes;
timeout = 200;
@@ -5629,6 +5645,7 @@ part
pagel = 0xd7;
bs2 = 0xc2;
signature = 0x1e 0x93 0x07;
reset = io;
timeout = 200;
stabdelay = 100;
cmdexedelay = 25;
@@ -6500,6 +6517,7 @@ part
bs2 = 0xc2;
# avr910_devcode = 0x;
signature = 0x1e 0x92 0x05;
reset = io;
has_debugwire = yes;
timeout = 200;
stabdelay = 100;
@@ -6664,6 +6682,7 @@ part
bs2 = 0xc2;
# avr910_devcode = 0x;
signature = 0x1e 0x93 0x0a;
reset = io;
has_debugwire = yes;
timeout = 200;
stabdelay = 100;
@@ -6829,6 +6848,7 @@ part
bs2 = 0xc2;
# avr910_devcode = 0x;
signature = 0x1e 0x94 0x06;
reset = io;
has_debugwire = yes;
timeout = 200;
stabdelay = 100;
@@ -6994,6 +7014,7 @@ part
bs2 = 0xc2;
# avr910_devcode = 0x;
signature = 0x1e 0x93 0x14;
reset = io;
has_debugwire = yes;
timeout = 200;
stabdelay = 100;
@@ -7376,6 +7397,7 @@ part
bs2 = 0xc2;
# avr910_devcode = 0x;
signature = 0x1e 0x92 0x09;
reset = io;
has_debugwire = yes;
timeout = 200;
stabdelay = 100;
@@ -7501,6 +7523,7 @@ part
bs2 = 0xc2;
# avr910_devcode = 0x;
signature = 0x1e 0x93 0x11;
reset = io;
has_debugwire = yes;
timeout = 200;
stabdelay = 100;
@@ -7626,6 +7649,7 @@ part
bs2 = 0xc2;
# avr910_devcode = 0x;
signature = 0x1e 0x95 0x14;
reset = io;
has_debugwire = yes;
timeout = 200;
stabdelay = 100;
@@ -8671,6 +8695,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x96 0x08;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -8791,6 +8816,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x97 0x03;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -8922,6 +8948,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x98 0x01;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -9749,6 +9776,7 @@ part
bs2 = 0xa0;
signature = 0x1e 0x94 0x88;
usbpid = 0x2ff4;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -9870,6 +9898,7 @@ part
bs2 = 0xa0;
signature = 0x1e 0x95 0x87;
usbpid = 0x2ff4;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -9991,6 +10020,7 @@ part
bs2 = 0xa0;
signature = 0x1e 0x96 0x82;
usbpid = 0x2ff9;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -10122,6 +10152,7 @@ part
bs2 = 0xa0;
signature = 0x1e 0x97 0x82;
usbpid = 0x2ffb;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -11013,6 +11044,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x95 0x05;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -11164,6 +11196,7 @@ part
pagel = 0xd7;
bs2 = 0xa0;
signature = 0x1e 0x96 0x05;
reset = io;
has_jtag = yes;
timeout = 200;
stabdelay = 100;
@@ -12842,6 +12875,7 @@ part
pagel = 0xa7;
bs2 = 0xa0;
signature = 0x1e 0x95 0x07;
reset = io;
has_jtag = yes;
serial = no;
# STK500v2 HV programming parameters, from XML