From c63883bfa7a118aaba3630e30b9e13fb1351e0f1 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Tue, 1 Aug 2023 18:28:55 +1000 Subject: [PATCH] FIXUP! flash offset --- tools/blisp/src/file_parsers/parse_file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/blisp/src/file_parsers/parse_file.c b/tools/blisp/src/file_parsers/parse_file.c index f6bcb24..985c3df 100644 --- a/tools/blisp/src/file_parsers/parse_file.c +++ b/tools/blisp/src/file_parsers/parse_file.c @@ -9,7 +9,7 @@ const char* get_filename_ext(const char* filename) { return ""; return dot + 1; } -#define FLASH_MAP_ADDR 0x08000000 +#define FLASH_MAP_ADDR 0x23000000 int parse_firmware_file(const char* file_path_on_disk, parsed_firmware_file_t* parsed_results) { // Switchcase on the extension of the file @@ -30,8 +30,8 @@ int parse_firmware_file(const char* file_path_on_disk, } // If we wanted to support hex files, here would be where - // Normalise address, some builds will base the firmware at 0x08000000 but for - // the flasher we use 0 base (i.e. offsets into flash) + // Normalise address, some builds will base the firmware at flash start but + // for the flasher we use 0 base (i.e. offsets into flash) if (parsed_results->payload_address >= FLASH_MAP_ADDR) { parsed_results->payload_address -= FLASH_MAP_ADDR; }