From 310fe49b736536ed7ee918008bd0ff9ad4797519 Mon Sep 17 00:00:00 2001 From: MCUdude Date: Thu, 13 Jan 2022 22:29:22 +0100 Subject: [PATCH 1/4] Add missing tinyAVR-2 series targets Includes ATtiny3224, ATtiny3226 and ATtiny3227 --- src/avrdude.conf.in | 72 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/src/avrdude.conf.in b/src/avrdude.conf.in index df9b191e..f07aa7ff 100644 --- a/src/avrdude.conf.in +++ b/src/avrdude.conf.in @@ -17518,6 +17518,78 @@ part parent ".avr8x_tiny" ; ; +#------------------------------------------------------------ +# ATtiny3224 +#------------------------------------------------------------ + +part parent ".avr8x_tiny" + id = "t3224"; + desc = "ATtiny3224"; + signature = 0x1E 0x95 0x28; + + memory "flash" + size = 0x8000; + offset = 0x8000; + page_size = 0x80; + readsize = 0x100; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x40; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# ATtiny3226 +#------------------------------------------------------------ + +part parent ".avr8x_tiny" + id = "t3226"; + desc = "ATtiny3226"; + signature = 0x1E 0x95 0x27; + + memory "flash" + size = 0x8000; + offset = 0x8000; + page_size = 0x80; + readsize = 0x100; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x40; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# ATtiny3227 +#------------------------------------------------------------ + +part parent ".avr8x_tiny" + id = "t3227"; + desc = "ATtiny3227"; + signature = 0x1E 0x95 0x26; + + memory "flash" + size = 0x8000; + offset = 0x8000; + page_size = 0x80; + readsize = 0x100; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x40; + readsize = 0x100; + ; +; + #------------------------------------------------------------ # ATmega808 #------------------------------------------------------------ From 8e47768600280100c7029350961ad2c82e75f949 Mon Sep 17 00:00:00 2001 From: MCUdude Date: Fri, 14 Jan 2022 19:12:13 +0100 Subject: [PATCH 2/4] Add AVR DD targets This includes AVR16DD14/20/28/32, AVR32DD14/20/28/32 and AVR64DD14/20/28/32 --- src/avrdude.conf.in | 288 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 288 insertions(+) diff --git a/src/avrdude.conf.in b/src/avrdude.conf.in index f07aa7ff..5309c8dc 100644 --- a/src/avrdude.conf.in +++ b/src/avrdude.conf.in @@ -18409,6 +18409,294 @@ part parent ".avrdx" ; ; +#------------------------------------------------------------ +# AVR16DD14 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr16dd14"; + desc = "AVR16DD14"; + signature = 0x1E 0x94 0x34; + + memory "flash" + size = 0x4000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR16DD20 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr16dd20"; + desc = "AVR16DD20"; + signature = 0x1E 0x94 0x33; + + memory "flash" + size = 0x4000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR16DD28 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr16dd28"; + desc = "AVR16DD28"; + signature = 0x1E 0x94 0x32; + + memory "flash" + size = 0x4000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR16DD32 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr16dd32"; + desc = "AVR16DD32"; + signature = 0x1E 0x94 0x31; + + memory "flash" + size = 0x4000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR32DD14 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr32dd14"; + desc = "AVR32DD14"; + signature = 0x1E 0x95 0x3B; + + memory "flash" + size = 0x8000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR32DD20 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr32dd20"; + desc = "AVR32DD20"; + signature = 0x1E 0x95 0x3A; + + memory "flash" + size = 0x8000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR32DD28 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr32dd28"; + desc = "AVR32DD28"; + signature = 0x1E 0x95 0x39; + + memory "flash" + size = 0x8000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR32DD32 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr32dd28"; + desc = "AVR32DD28"; + signature = 0x1E 0x95 0x38; + + memory "flash" + size = 0x8000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR64DD14 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr64dd14"; + desc = "AVR64DD14"; + signature = 0x1E 0x96 0x1D; + + memory "flash" + size = 0x10000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR64DD20 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr64dd20"; + desc = "AVR64DD20"; + signature = 0x1E 0x96 0x1C; + + memory "flash" + size = 0x10000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR64DD28 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr64dd28"; + desc = "AVR64DD28"; + signature = 0x1E 0x96 0x1B; + + memory "flash" + size = 0x10000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR64DD32 +#------------------------------------------------------------ + +part parent ".avrdx" + id = "avr64dd32"; + desc = "AVR64DD32"; + signature = 0x1E 0x96 0x1A; + + memory "flash" + size = 0x10000; + offset = 0x800000; + page_size = 0x200; + readsize = 0x200; + ; + + memory "eeprom" + size = 0x100; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + #------------------------------------------------------------ # Logic Green parts #------------------------------------------------------------ From 628c48aff64c33e4124c2aebba7dfc47e09adbc3 Mon Sep 17 00:00:00 2001 From: MCUdude Date: Fri, 14 Jan 2022 20:30:49 +0100 Subject: [PATCH 3/4] Add AVR EA targets This includes AVR8EA28/32, AVR16EA28/32/48, AVR32EA28/32/48 and AVR64EA28/32/64 --- src/avrdude.conf.in | 284 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 282 insertions(+), 2 deletions(-) diff --git a/src/avrdude.conf.in b/src/avrdude.conf.in index 5309c8dc..8caa5dcf 100644 --- a/src/avrdude.conf.in +++ b/src/avrdude.conf.in @@ -18582,8 +18582,8 @@ part parent ".avrdx" #------------------------------------------------------------ part parent ".avrdx" - id = "avr32dd28"; - desc = "AVR32DD28"; + id = "avr32dd32"; + desc = "AVR32DD32"; signature = 0x1E 0x95 0x38; memory "flash" @@ -18697,6 +18697,286 @@ part parent ".avrdx" ; ; +#------------------------------------------------------------ +# AVR-Ex family common values +#------------------------------------------------------------ + +part parent ".avrdx" + id = ".avrex"; + desc = "AVR-Ex family common values"; + + memory "userrow" + size = 0x40; + offset = 0x1080; + page_size = 0x40; + readsize = 0x40; + ; +; + +#------------------------------------------------------------ +# AVR8EA28 +#------------------------------------------------------------ + +part parent ".avrex" + id = "avr8ea28"; + desc = "AVR8EA28"; + signature = 0x1E 0x93 0x2C; + + memory "flash" + size = 0x2000; + offset = 0x800000; + page_size = 0x40; + readsize = 0x40; + ; + + memory "eeprom" + size = 0x200; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR8EA32 +#------------------------------------------------------------ + +part parent ".avrex" + id = "avr8ea32"; + desc = "AVR8EA32"; + signature = 0x1E 0x93 0x2B; + + memory "flash" + size = 0x2000; + offset = 0x800000; + page_size = 0x40; + readsize = 0x40; + ; + + memory "eeprom" + size = 0x200; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR16EA28 +#------------------------------------------------------------ + +part parent ".avrex" + id = "avr16ea28"; + desc = "AVR16EA28"; + signature = 0x1E 0x94 0x37; + + memory "flash" + size = 0x4000; + offset = 0x800000; + page_size = 0x40; + readsize = 0x40; + ; + + memory "eeprom" + size = 0x200; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR16EA32 +#------------------------------------------------------------ + +part parent ".avrex" + id = "avr16ea32"; + desc = "AVR16EA32"; + signature = 0x1E 0x94 0x36; + + memory "flash" + size = 0x4000; + offset = 0x800000; + page_size = 0x40; + readsize = 0x40; + ; + + memory "eeprom" + size = 0x200; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR16EA48 +#------------------------------------------------------------ + +part parent ".avrex" + id = "avr16ea48"; + desc = "AVR16EA48"; + signature = 0x1E 0x94 0x35; + + memory "flash" + size = 0x4000; + offset = 0x800000; + page_size = 0x40; + readsize = 0x40; + ; + + memory "eeprom" + size = 0x200; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR32EA28 +#------------------------------------------------------------ + +part parent ".avrex" + id = "avr32ea28"; + desc = "AVR32EA28"; + signature = 0x1E 0x95 0x3E; + + memory "flash" + size = 0x8000; + offset = 0x800000; + page_size = 0x40; + readsize = 0x40; + ; + + memory "eeprom" + size = 0x200; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR32EA32 +#------------------------------------------------------------ + +part parent ".avrex" + id = "avr32ea32"; + desc = "AVR32EA32"; + signature = 0x1E 0x95 0x3D; + + memory "flash" + size = 0x8000; + offset = 0x800000; + page_size = 0x40; + readsize = 0x40; + ; + + memory "eeprom" + size = 0x200; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR32EA48 +#------------------------------------------------------------ + +part parent ".avrex" + id = "avr32ea48"; + desc = "AVR32EA48"; + signature = 0x1E 0x95 0x3C; + + memory "flash" + size = 0x8000; + offset = 0x800000; + page_size = 0x40; + readsize = 0x40; + ; + + memory "eeprom" + size = 0x200; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR64EA28 +#------------------------------------------------------------ + +part parent ".avrex" + id = "avr64ea28"; + desc = "AVR64EA28"; + signature = 0x1E 0x96 0x20; + + memory "flash" + size = 0x10000; + offset = 0x800000; + page_size = 0x80; + readsize = 0x80; + ; + + memory "eeprom" + size = 0x200; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR64EA32 +#------------------------------------------------------------ + +part parent ".avrex" + id = "avr64ea32"; + desc = "AVR64EA32"; + signature = 0x1E 0x96 0x1F; + + memory "flash" + size = 0x10000; + offset = 0x800000; + page_size = 0x80; + readsize = 0x80; + ; + + memory "eeprom" + size = 0x200; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + +#------------------------------------------------------------ +# AVR64EA48 +#------------------------------------------------------------ + +part parent ".avrex" + id = "avr64ea48"; + desc = "AVR64EA48"; + signature = 0x1E 0x96 0x1E; + + memory "flash" + size = 0x10000; + offset = 0x800000; + page_size = 0x80; + readsize = 0x80; + ; + + memory "eeprom" + size = 0x200; + offset = 0x1400; + page_size = 0x1; + readsize = 0x100; + ; +; + #------------------------------------------------------------ # Logic Green parts #------------------------------------------------------------ From 9c08c0c1648ea2c55b3d37c35e520e3aab8e499a Mon Sep 17 00:00:00 2001 From: MCUdude Date: Sat, 15 Jan 2022 12:26:45 +0100 Subject: [PATCH 4/4] Attempt to fix incorrect readsize values Values copied AVR64DD__.atdf and AVR64EA__.atdf. The order atdf files doesn't exist at the moment --- src/avrdude.conf.in | 68 ++++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/src/avrdude.conf.in b/src/avrdude.conf.in index 8caa5dcf..18fbd16a 100644 --- a/src/avrdude.conf.in +++ b/src/avrdude.conf.in @@ -18422,7 +18422,7 @@ part parent ".avrdx" size = 0x4000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18446,7 +18446,7 @@ part parent ".avrdx" size = 0x4000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18470,7 +18470,7 @@ part parent ".avrdx" size = 0x4000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18494,7 +18494,7 @@ part parent ".avrdx" size = 0x4000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18518,7 +18518,7 @@ part parent ".avrdx" size = 0x8000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18542,7 +18542,7 @@ part parent ".avrdx" size = 0x8000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18566,7 +18566,7 @@ part parent ".avrdx" size = 0x8000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18590,7 +18590,7 @@ part parent ".avrdx" size = 0x8000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18614,7 +18614,7 @@ part parent ".avrdx" size = 0x10000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18638,7 +18638,7 @@ part parent ".avrdx" size = 0x10000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18662,7 +18662,7 @@ part parent ".avrdx" size = 0x10000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18686,7 +18686,7 @@ part parent ".avrdx" size = 0x10000; offset = 0x800000; page_size = 0x200; - readsize = 0x200; + readsize = 0x100; ; memory "eeprom" @@ -18726,13 +18726,13 @@ part parent ".avrex" size = 0x2000; offset = 0x800000; page_size = 0x40; - readsize = 0x40; + readsize = 0x100; ; memory "eeprom" size = 0x200; offset = 0x1400; - page_size = 0x1; + page_size = 0x8; readsize = 0x100; ; ; @@ -18750,13 +18750,13 @@ part parent ".avrex" size = 0x2000; offset = 0x800000; page_size = 0x40; - readsize = 0x40; + readsize = 0x100; ; memory "eeprom" size = 0x200; offset = 0x1400; - page_size = 0x1; + page_size = 0x8; readsize = 0x100; ; ; @@ -18774,13 +18774,13 @@ part parent ".avrex" size = 0x4000; offset = 0x800000; page_size = 0x40; - readsize = 0x40; + readsize = 0x100; ; memory "eeprom" size = 0x200; offset = 0x1400; - page_size = 0x1; + page_size = 0x8; readsize = 0x100; ; ; @@ -18798,13 +18798,13 @@ part parent ".avrex" size = 0x4000; offset = 0x800000; page_size = 0x40; - readsize = 0x40; + readsize = 0x100; ; memory "eeprom" size = 0x200; offset = 0x1400; - page_size = 0x1; + page_size = 0x8; readsize = 0x100; ; ; @@ -18822,13 +18822,13 @@ part parent ".avrex" size = 0x4000; offset = 0x800000; page_size = 0x40; - readsize = 0x40; + readsize = 0x100; ; memory "eeprom" size = 0x200; offset = 0x1400; - page_size = 0x1; + page_size = 0x8; readsize = 0x100; ; ; @@ -18846,13 +18846,13 @@ part parent ".avrex" size = 0x8000; offset = 0x800000; page_size = 0x40; - readsize = 0x40; + readsize = 0x100; ; memory "eeprom" size = 0x200; offset = 0x1400; - page_size = 0x1; + page_size = 0x8; readsize = 0x100; ; ; @@ -18870,13 +18870,13 @@ part parent ".avrex" size = 0x8000; offset = 0x800000; page_size = 0x40; - readsize = 0x40; + readsize = 0x100; ; memory "eeprom" size = 0x200; offset = 0x1400; - page_size = 0x1; + page_size = 0x8; readsize = 0x100; ; ; @@ -18894,13 +18894,13 @@ part parent ".avrex" size = 0x8000; offset = 0x800000; page_size = 0x40; - readsize = 0x40; + readsize = 0x100; ; memory "eeprom" size = 0x200; offset = 0x1400; - page_size = 0x1; + page_size = 0x8; readsize = 0x100; ; ; @@ -18918,13 +18918,13 @@ part parent ".avrex" size = 0x10000; offset = 0x800000; page_size = 0x80; - readsize = 0x80; + readsize = 0x100; ; memory "eeprom" size = 0x200; offset = 0x1400; - page_size = 0x1; + page_size = 0x8; readsize = 0x100; ; ; @@ -18942,13 +18942,13 @@ part parent ".avrex" size = 0x10000; offset = 0x800000; page_size = 0x80; - readsize = 0x80; + readsize = 0x100; ; memory "eeprom" size = 0x200; offset = 0x1400; - page_size = 0x1; + page_size = 0x8; readsize = 0x100; ; ; @@ -18966,13 +18966,13 @@ part parent ".avrex" size = 0x10000; offset = 0x800000; page_size = 0x80; - readsize = 0x80; + readsize = 0x100; ; memory "eeprom" size = 0x200; offset = 0x1400; - page_size = 0x1; + page_size = 0x8; readsize = 0x100; ; ;