Skip to content

Commit

Permalink
Merge pull request #1 from janegilruud/hv-updi
Browse files Browse the repository at this point in the history
Add UPDI HV type to device description.
  • Loading branch information
MCUdude authored Jun 28, 2022
2 parents d0419bc + 3148b8b commit 9af3b37
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/avrdude.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -18932,6 +18932,7 @@ part parent ".avrdx"
id = "avr16dd14";
desc = "AVR16DD14";
signature = 0x1E 0x94 0x34;
hvupdi_variant = 2;

memory "flash"
size = 0x4000;
Expand All @@ -18956,6 +18957,7 @@ part parent ".avrdx"
id = "avr16dd20";
desc = "AVR16DD20";
signature = 0x1E 0x94 0x33;
hvupdi_variant = 2;

memory "flash"
size = 0x4000;
Expand All @@ -18980,6 +18982,7 @@ part parent ".avrdx"
id = "avr16dd28";
desc = "AVR16DD28";
signature = 0x1E 0x94 0x32;
hvupdi_variant = 2;

memory "flash"
size = 0x4000;
Expand All @@ -19004,6 +19007,7 @@ part parent ".avrdx"
id = "avr16dd32";
desc = "AVR16DD32";
signature = 0x1E 0x94 0x31;
hvupdi_variant = 2;

memory "flash"
size = 0x4000;
Expand All @@ -19028,6 +19032,7 @@ part parent ".avrdx"
id = "avr32dd14";
desc = "AVR32DD14";
signature = 0x1E 0x95 0x3B;
hvupdi_variant = 2;

memory "flash"
size = 0x8000;
Expand All @@ -19052,6 +19057,7 @@ part parent ".avrdx"
id = "avr32dd20";
desc = "AVR32DD20";
signature = 0x1E 0x95 0x3A;
hvupdi_variant = 2;

memory "flash"
size = 0x8000;
Expand All @@ -19076,6 +19082,7 @@ part parent ".avrdx"
id = "avr32dd28";
desc = "AVR32DD28";
signature = 0x1E 0x95 0x39;
hvupdi_variant = 2;

memory "flash"
size = 0x8000;
Expand All @@ -19100,6 +19107,7 @@ part parent ".avrdx"
id = "avr32dd32";
desc = "AVR32DD32";
signature = 0x1E 0x95 0x38;
hvupdi_variant = 2;

memory "flash"
size = 0x8000;
Expand All @@ -19124,6 +19132,7 @@ part parent ".avrdx"
id = "avr64dd14";
desc = "AVR64DD14";
signature = 0x1E 0x96 0x1D;
hvupdi_variant = 2;

memory "flash"
size = 0x10000;
Expand All @@ -19148,6 +19157,7 @@ part parent ".avrdx"
id = "avr64dd20";
desc = "AVR64DD20";
signature = 0x1E 0x96 0x1C;
hvupdi_variant = 2;

memory "flash"
size = 0x10000;
Expand All @@ -19172,6 +19182,7 @@ part parent ".avrdx"
id = "avr64dd28";
desc = "AVR64DD28";
signature = 0x1E 0x96 0x1B;
hvupdi_variant = 2;

memory "flash"
size = 0x10000;
Expand All @@ -19196,6 +19207,7 @@ part parent ".avrdx"
id = "avr64dd32";
desc = "AVR64DD32";
signature = 0x1E 0x96 0x1A;
hvupdi_variant = 2;

memory "flash"
size = 0x10000;
Expand Down
1 change: 1 addition & 0 deletions src/jtag3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,7 @@ static int jtag3_initialize(PROGRAMMER * pgm, AVRPART * p)

u16_to_b2(xd.nvm_base_addr, p->nvm_base);
u16_to_b2(xd.ocd_base_addr, p->ocd_base);
xd.hvupdi_variant = p->hvupdi_variant;

for (ln = lfirst(p->mem); ln; ln = lnext(ln))
{
Expand Down
2 changes: 2 additions & 0 deletions src/jtag3_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -400,5 +400,7 @@ struct updi_device_desc {
unsigned char flash_page_size_msb; // Extends flash_page_size, used in 24-bit mode

unsigned char address_mode; // 0x00 = 16-bit mode, 0x01 = 24-bit mode

unsigned char hvupdi_variant; // Indicates the target UPDI HV implementation
};
#endif /* JTAG3_PRIVATE_EXPORTED */

0 comments on commit 9af3b37

Please sign in to comment.