From c4bbe41e0d616c11dbc81b02dc9192da7d138e41 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Fri, 20 Sep 2024 18:50:42 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sergey Vlasov --- platforms/chibios/boards/common/ld/STM32F446xE.ld | 2 +- platforms/chibios/boards/common/ld/STM32F446xE_tinyuf2.ld | 2 +- platforms/chibios/boards/common/ld/stm32f4xx_common.ld | 2 +- platforms/chibios/boards/common/ld/stm32f4xx_tinyuf2_common.ld | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platforms/chibios/boards/common/ld/STM32F446xE.ld b/platforms/chibios/boards/common/ld/STM32F446xE.ld index c30e85e2308..6e6c5dd3a4e 100644 --- a/platforms/chibios/boards/common/ld/STM32F446xE.ld +++ b/platforms/chibios/boards/common/ld/STM32F446xE.ld @@ -8,6 +8,6 @@ f4xx_flash_size = 512k; f4xx_ram1_size = 112k; f4xx_ram2_size = 16k; f4xx_ram4_size = 0; -f4xx_ram5_size = 0; +f4xx_ram5_size = 4k; INCLUDE stm32f4xx_common.ld diff --git a/platforms/chibios/boards/common/ld/STM32F446xE_tinyuf2.ld b/platforms/chibios/boards/common/ld/STM32F446xE_tinyuf2.ld index cb46a7148da..676ffbdf0c0 100644 --- a/platforms/chibios/boards/common/ld/STM32F446xE_tinyuf2.ld +++ b/platforms/chibios/boards/common/ld/STM32F446xE_tinyuf2.ld @@ -8,6 +8,6 @@ f4xx_flash_size = 512k; f4xx_ram1_size = 112k; f4xx_ram2_size = 16k; f4xx_ram4_size = 0; -f4xx_ram5_size = 0; +f4xx_ram5_size = 4k; INCLUDE stm32f4xx_tinyuf2_common.ld diff --git a/platforms/chibios/boards/common/ld/stm32f4xx_common.ld b/platforms/chibios/boards/common/ld/stm32f4xx_common.ld index c9e661fcd10..d5c7c736264 100644 --- a/platforms/chibios/boards/common/ld/stm32f4xx_common.ld +++ b/platforms/chibios/boards/common/ld/stm32f4xx_common.ld @@ -26,7 +26,7 @@ MEMORY flash7 (rx) : org = 0x00000000, len = 0 ram0 (wx) : org = 0x20000000, len = f4xx_ram1_size + f4xx_ram2_size /* SRAM1 + SRAM2 */ ram1 (wx) : org = 0x20000000, len = f4xx_ram1_size /* SRAM1 */ - ram2 (wx) : org = 0x2001C000, len = f4xx_ram2_size /* SRAM2 */ + ram2 (wx) : org = 0x20000000 + f4xx_ram1_size, len = f4xx_ram2_size /* SRAM2 */ ram3 (wx) : org = 0x00000000, len = 0 ram4 (wx) : org = 0x10000000, len = f4xx_ram4_size /* CCM SRAM */ ram5 (wx) : org = 0x40024000, len = f4xx_ram5_size /* BCKP SRAM */ diff --git a/platforms/chibios/boards/common/ld/stm32f4xx_tinyuf2_common.ld b/platforms/chibios/boards/common/ld/stm32f4xx_tinyuf2_common.ld index fb6ee981557..d995bd014a3 100644 --- a/platforms/chibios/boards/common/ld/stm32f4xx_tinyuf2_common.ld +++ b/platforms/chibios/boards/common/ld/stm32f4xx_tinyuf2_common.ld @@ -29,7 +29,7 @@ MEMORY flash7 (rx) : org = 0x00000000, len = 0 ram0 (wx) : org = 0x20000000, len = f4xx_ram1_size + f4xx_ram2_size /* SRAM1 + SRAM2 */ ram1 (wx) : org = 0x20000000, len = f4xx_ram1_size /* SRAM1 */ - ram2 (wx) : org = 0x2001C000, len = f4xx_ram2_size /* SRAM2 */ + ram2 (wx) : org = 0x20000000 + f4xx_ram1_size, len = f4xx_ram2_size /* SRAM2 */ ram3 (wx) : org = 0x00000000, len = 0 ram4 (wx) : org = 0x10000000, len = f4xx_ram4_size /* CCM SRAM */ ram5 (wx) : org = 0x40024000, len = f4xx_ram5_size /* BCKP SRAM */