Fix linker script for NRF52840/IAR

Add missing noinit section.
pull/7486/head
Marcus Chang 2018-07-11 15:48:51 -07:00
parent 61f3d8b21b
commit 6f0bb757f4
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,6 @@ place at address mem:__ICFEDIT_region_RAM_NVIC_start__ { section .nvictable };
do not initialize { section .noinit };
place in RAM_region { section .noinit };
keep { section .intvec };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in ROM_region { readonly };

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__ { };
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 };
place at address mem:__ICFEDIT_region_RAM_NVIC_start__ { section .noinit };
place in RAM_region { section .noinit };
keep { section .intvec };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };