diff --git a/ld/linker.ld.S b/ld/linker.ld.S index 908ad9ea..84c1cd18 100644 --- a/ld/linker.ld.S +++ b/ld/linker.ld.S @@ -118,6 +118,12 @@ SECTIONS . = ALIGN(4); _etext = .; + /* ram, but not cleared on reset, eg boot/app comms */ + .noinit (NOLOAD) : { + *(.noinit*) + } >ram + . = ALIGN(4); + .data : { _data = .; *(.data*) /* Read-write initialized data */ diff --git a/lib/cortex-m-generic.ld b/lib/cortex-m-generic.ld index fc169764..8b995d35 100644 --- a/lib/cortex-m-generic.ld +++ b/lib/cortex-m-generic.ld @@ -89,6 +89,12 @@ SECTIONS . = ALIGN(4); _etext = .; + /* ram, but not cleared on reset, eg boot/app comms */ + .noinit (NOLOAD) : { + *(.noinit*) + } >ram + . = ALIGN(4); + .data : { _data = .; *(.data*) /* Read-write initialized data */