diff --git a/firmware/hw_layer/ports/stm32/stm32f4/STM32F4.ld b/firmware/hw_layer/ports/stm32/stm32f4/STM32F4.ld index dc18b81844..cf22fd5f3f 100644 --- a/firmware/hw_layer/ports/stm32/stm32f4/STM32F4.ld +++ b/firmware/hw_layer/ports/stm32/stm32f4/STM32F4.ld @@ -32,6 +32,7 @@ SDRAM_SIZE = DEFINED(STM32_HAS_SDRAM) ? 8M : 0; /* change address & length if bootloader */ bootloader_size = 32k; flash_start = 0x08000000 + (DEFINED(HAS_BOOTLOADER) ? bootloader_size : 0); +/* see also getFlashAddrFirstCopy() method */ flash_size = DEFINED(IS_BOOTLOADER) ? bootloader_size : 768k; image_size = DEFINED(HAS_BOOTLOADER) ? (flash_size - bootloader_size) : flash_size; diff --git a/firmware/hw_layer/ports/stm32/stm32f7/STM32F7.ld b/firmware/hw_layer/ports/stm32/stm32f7/STM32F7.ld index e9d4bd4092..638fe1aabc 100644 --- a/firmware/hw_layer/ports/stm32/stm32f7/STM32F7.ld +++ b/firmware/hw_layer/ports/stm32/stm32f7/STM32F7.ld @@ -29,6 +29,7 @@ /* WARNING same bootloader_size is hard-coded in CHECKSUM_ADDRESS variable in bundle.mk */ bootloader_size = 32k; flash_start = 0x08000000 + (DEFINED(HAS_BOOTLOADER) ? bootloader_size : 0); +/* see also getFlashAddrFirstCopy() method */ flash_size = DEFINED(IS_BOOTLOADER) ? bootloader_size : (DEFINED(EFI_FLASH_SIZE) ? EFI_FLASH_SIZE : 768k); image_size = DEFINED(HAS_BOOTLOADER) ? (flash_size - bootloader_size) : flash_size;