From f96b98e9dfb99e422eadef71c97b44d60dceeb35 Mon Sep 17 00:00:00 2001 From: MCUdude Date: Sun, 2 Jan 2022 19:20:05 +0100 Subject: [PATCH] Mute "flash and boot" warning if s UPDI programmer is used Currently, no UPDI compatible AVR has a dedicated boot section like the Xmegas do --- src/jtagmkII.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jtagmkII.c b/src/jtagmkII.c index f41d126b..a98fdf2a 100644 --- a/src/jtagmkII.c +++ b/src/jtagmkII.c @@ -1387,8 +1387,10 @@ static int jtagmkII_initialize(PROGRAMMER * pgm, AVRPART * p) AVRMEM *bootmem = avr_locate_mem(p, "boot"); AVRMEM *flashmem = avr_locate_mem(p, "flash"); if (bootmem == NULL || flashmem == NULL) { - avrdude_message(MSG_INFO, "%s: jtagmkII_initialize(): Cannot locate \"flash\" and \"boot\" memories in description\n", - progname); + if (strncmp(ldata(lfirst(pgm->id)), "jtagmkII", strlen("jtagmkII")) == 0) { + avrdude_message(MSG_INFO, "%s: jtagmkII_initialize(): Cannot locate \"flash\" and \"boot\" memories in description\n", + progname); + } } else { if (PDATA(pgm)->fwver < 0x700) { /* V7+ firmware does not need this anymore */