From 6b03d7dc5aa520329cc378d284598e8790b80fae Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Sat, 3 Dec 2022 13:37:44 +0000 Subject: [PATCH] Correct upper flash boundary for 8-bit AVR parts in elf_mem_limits() --- src/fileio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fileio.c b/src/fileio.c index 24047e7a..b2f29bf7 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -728,11 +728,11 @@ static int elf_mem_limits(const AVRMEM *mem, const AVRPART *p, strcmp(mem->desc, "application") == 0 || strcmp(mem->desc, "apptable") == 0) { *lowbound = 0; - *highbound = 0x7ffff; /* max 8 MiB */ + *highbound = 0x7Fffff; // Max 8 MiB *fileoff = 0; } else if (strcmp(mem->desc, "eeprom") == 0) { *lowbound = 0x810000; - *highbound = 0x81ffff; /* max 64 KiB */ + *highbound = 0x81ffff; // Max 64 KiB *fileoff = 0; } else if (strcmp(mem->desc, "lfuse") == 0) { *lowbound = 0x820000;