Correct upper flash boundary for 8-bit AVR parts in elf_mem_limits()

This commit is contained in:
Stefan Rueger 2022-12-03 13:37:44 +00:00
parent 23dddef64b
commit 6b03d7dc5a
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
1 changed files with 2 additions and 2 deletions

View File

@ -728,11 +728,11 @@ static int elf_mem_limits(const AVRMEM *mem, const AVRPART *p,
strcmp(mem->desc, "application") == 0 || strcmp(mem->desc, "application") == 0 ||
strcmp(mem->desc, "apptable") == 0) { strcmp(mem->desc, "apptable") == 0) {
*lowbound = 0; *lowbound = 0;
*highbound = 0x7ffff; /* max 8 MiB */ *highbound = 0x7Fffff; // Max 8 MiB
*fileoff = 0; *fileoff = 0;
} else if (strcmp(mem->desc, "eeprom") == 0) { } else if (strcmp(mem->desc, "eeprom") == 0) {
*lowbound = 0x810000; *lowbound = 0x810000;
*highbound = 0x81ffff; /* max 64 KiB */ *highbound = 0x81ffff; // Max 64 KiB
*fileoff = 0; *fileoff = 0;
} else if (strcmp(mem->desc, "lfuse") == 0) { } else if (strcmp(mem->desc, "lfuse") == 0) {
*lowbound = 0x820000; *lowbound = 0x820000;