mirror of
https://github.com/pine64/blisp.git
synced 2025-03-13 10:28:57 +00:00
FIXUP! flash offset
This commit is contained in:
parent
99a30ae9cc
commit
c63883bfa7
@ -9,7 +9,7 @@ const char* get_filename_ext(const char* filename) {
|
|||||||
return "";
|
return "";
|
||||||
return dot + 1;
|
return dot + 1;
|
||||||
}
|
}
|
||||||
#define FLASH_MAP_ADDR 0x08000000
|
#define FLASH_MAP_ADDR 0x23000000
|
||||||
int parse_firmware_file(const char* file_path_on_disk,
|
int parse_firmware_file(const char* file_path_on_disk,
|
||||||
parsed_firmware_file_t* parsed_results) {
|
parsed_firmware_file_t* parsed_results) {
|
||||||
// Switchcase on the extension of the file
|
// 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
|
// If we wanted to support hex files, here would be where
|
||||||
|
|
||||||
// Normalise address, some builds will base the firmware at 0x08000000 but for
|
// Normalise address, some builds will base the firmware at flash start but
|
||||||
// the flasher we use 0 base (i.e. offsets into flash)
|
// for the flasher we use 0 base (i.e. offsets into flash)
|
||||||
if (parsed_results->payload_address >= FLASH_MAP_ADDR) {
|
if (parsed_results->payload_address >= FLASH_MAP_ADDR) {
|
||||||
parsed_results->payload_address -= FLASH_MAP_ADDR;
|
parsed_results->payload_address -= FLASH_MAP_ADDR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user