From fcf3d162b301e4277248e6beaf5c670d0bcd8d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Mon, 24 May 2021 12:28:42 +0200 Subject: [PATCH] Tell the linker to assume a defualt fill value of 0xFF for the Flash. --- startup/stm32f030.ld | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/startup/stm32f030.ld b/startup/stm32f030.ld index 78c7d00..2cfcd12 100644 --- a/startup/stm32f030.ld +++ b/startup/stm32f030.ld @@ -56,13 +56,13 @@ SECTIONS KEEP(*(.init)) /* Constructors */ KEEP(*(.fini)) /* Destructors */ . = ALIGN(4); - } >FLASH + } >FLASH =0xFF .ARM.extab : ALIGN(4) { *(.ARM.extab* .gnu.linkonce.armextab.*) . = ALIGN(4); - } >FLASH + } >FLASH =0xFF .ARM : ALIGN(4) { @@ -70,7 +70,7 @@ SECTIONS *(.ARM.exidx*) __exidx_end = .; . = ALIGN(4); - } >FLASH + } >FLASH =0xFF /* Constructor/Destructor tables */ .preinit_array : ALIGN(4) @@ -79,7 +79,7 @@ SECTIONS KEEP (*(.preinit_array*)) PROVIDE_HIDDEN (__preinit_array_end = .); . = ALIGN(4); - } >FLASH + } >FLASH =0xFF .init_array : ALIGN(4) { @@ -88,7 +88,7 @@ SECTIONS KEEP (*(.init_array*)) PROVIDE_HIDDEN (__init_array_end = .); . = ALIGN(4); - } >FLASH + } >FLASH =0xFF .fini_array : ALIGN(4) { @@ -97,7 +97,7 @@ SECTIONS KEEP (*(SORT(.fini_array.*))) PROVIDE_HIDDEN (__fini_array_end = .); . = ALIGN(4); - } >FLASH + } >FLASH =0xFF /* Initialized Data */ __ld_load_data = LOADADDR(.data);