Skip to content

Commit e32f969

Browse files
AlessandroAmeriac
authored andcommitted
Add uninitialized section to linker script
1 parent ec98017 commit e32f969

File tree

1 file changed

+13
-0
lines changed
  • hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_GCC_ARM

1 file changed

+13
-0
lines changed

hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_GCC_ARM/K64FN1M0xxx12.ld

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,19 @@ SECTIONS
186186
__uvisor_secure_end = .;
187187
} >FLASH
188188

189+
/* Uninitialized memory section
190+
* The C/C++ library initialization will not touch this section. Data
191+
* written here will keep its value on reboots (assuming no power loss). */
192+
.uninitialized (NOLOAD):
193+
{
194+
. = ALIGN(32);
195+
__uninitialized_start = .;
196+
*(.uninitialized)
197+
KEEP(*(.keep.uninitialized))
198+
. = ALIGN(32);
199+
__uninitialized_end = .;
200+
} > RAM
201+
189202
.bss :
190203
{
191204
__bss_start__ = .;

0 commit comments

Comments
 (0)