From a7e9d0ce8e9c763159ac1246bf10bac5ee91b392 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 19 Nov 2024 13:43:31 -0500 Subject: [PATCH] NUCLEO-F767ZI STM32F767ZI 2mb flash firmware size #6242 only:docs --- firmware/hw_layer/ports/stm32/stm32f4/STM32F4.ld | 1 + firmware/hw_layer/ports/stm32/stm32f7/STM32F7.ld | 1 + 2 files changed, 2 insertions(+) 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;