Fix linker script for NRF52840/IAR

Add missing noinit section.
pull/7518/head
Marcus Chang 2018-07-11 15:48:51 -07:00 committed by Cruz Monrreal II
parent 063092f256
commit 5b3f54f0ef
2 changed files with 5 additions and 2 deletions

View File

@ -55,7 +55,7 @@ define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
initialize by copy { readwrite }; initialize by copy { readwrite };
do not initialize { section .noinit }; do not initialize { section .noinit };
place at address mem:__ICFEDIT_region_RAM_NVIC_start__ { section .noinit }; place in RAM_region { section .noinit };
keep { section .intvec }; keep { section .intvec };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };

View File

@ -54,8 +54,11 @@ define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
initialize by copy { readwrite }; initialize by copy { readwrite };
do not initialize { section .nvictable };
place at address mem:__ICFEDIT_region_RAM_NVIC_start__ { section .nvictable };
do not initialize { section .noinit }; do not initialize { section .noinit };
place at address mem:__ICFEDIT_region_RAM_NVIC_start__ { section .noinit }; place in RAM_region { section .noinit };
keep { section .intvec }; keep { section .intvec };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };