From d39c738542e838c021d32b9ce7b79586db50ea06 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Sun, 16 Apr 2023 16:17:47 +0100 Subject: [PATCH] Update avrdude.conf ATmega165 entry - Corrects signature to signature = 0x1e 0x94 0x07; Source: https://github.com/thegaragelab/arduino/blob/master/USB_Programmer/progisp172/eng/ATmega165.xml - Lengthens EEPROM write delay to min_write_delay = 9000; Source: Application note AVR513 https://ww1.microchip.com/downloads/en/Appnotes/doc8064.pdf --- src/avrdude.conf.in | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/src/avrdude.conf.in b/src/avrdude.conf.in index bb5320f3..931f4c72 100644 --- a/src/avrdude.conf.in +++ b/src/avrdude.conf.in @@ -12827,14 +12827,14 @@ part ; #------------------------------------------------------------ -# ATmega165 +# ATmega165P #------------------------------------------------------------ part - desc = "ATmega165"; - id = "m165"; + desc = "ATmega165P"; + id = "m165p"; prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 95; + mcuid = 97; n_interrupts = 22; n_boot_sections = 4; boot_section_size = 256; @@ -12843,7 +12843,7 @@ part chip_erase_delay = 9000; pagel = 0xd7; bs2 = 0xa0; - signature = 0x1e 0x94 0x10; + signature = 0x1e 0x94 0x07; reset = io; timeout = 200; stabdelay = 100; @@ -12954,32 +12954,36 @@ part # ATmega165A #------------------------------------------------------------ -part parent "m165" +part parent "m165p" desc = "ATmega165A"; id = "m165a"; mcuid = 96; + signature = 0x1e 0x94 0x10; ; #------------------------------------------------------------ -# ATmega165P +# ATmega165 #------------------------------------------------------------ -part parent "m165" - desc = "ATmega165P"; - id = "m165p"; - mcuid = 97; - signature = 0x1e 0x94 0x07; +part parent "m165p" + desc = "ATmega165"; + id = "m165"; + mcuid = 95; + + memory "eeprom" + min_write_delay = 9000; + max_write_delay = 9000; + ; ; #------------------------------------------------------------ # ATmega165PA #------------------------------------------------------------ -part parent "m165" +part parent "m165p" desc = "ATmega165PA"; id = "m165pa"; mcuid = 98; - signature = 0x1e 0x94 0x07; ; #------------------------------------------------------------ @@ -13436,9 +13440,9 @@ part parent ".xmega" id = ".xmega-e"; memory "fuse6" - size = 1; - offset = 0x8f0026; - ; + size = 1; + offset = 0x8f0026; + ; ; #------------------------------------------------------------