diff --git a/platform/mcu/STM32F4xx/linker_script_MDx.ld b/platform/mcu/STM32F4xx/linker_script_MDx.ld index 59ba6655..87dd7ff4 100644 --- a/platform/mcu/STM32F4xx/linker_script_MDx.ld +++ b/platform/mcu/STM32F4xx/linker_script_MDx.ld @@ -175,7 +175,9 @@ SECTIONS } > smallram _bss_end = .; - .bss2 : + /* Second BSS section located in the "large" RAM, explicitly request to not + initialize it */ + .bss2 (NOLOAD) : { *(.bss2) . = ALIGN(8); diff --git a/platform/mcu/STM32F4xx/linker_script_Mod17.ld b/platform/mcu/STM32F4xx/linker_script_Mod17.ld index 9070a814..7e229086 100644 --- a/platform/mcu/STM32F4xx/linker_script_Mod17.ld +++ b/platform/mcu/STM32F4xx/linker_script_Mod17.ld @@ -174,7 +174,9 @@ SECTIONS } > smallram _bss_end = .; - .bss2 : + /* Second BSS section located in the "large" RAM, explicitly request to not + initialize it */ + .bss2 (NOLOAD) : { *(.bss2) . = ALIGN(8);