Skip to content

Commit c597377

Browse files
Marcus ChangCruz Monrreal II
authored andcommitted
Fix linker script for NRF52840/IAR
Add missing noinit section.
1 parent c73f87e commit c597377

File tree

2 files changed

+5
-2
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52

2 files changed

+5
-2
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_IAR/nRF52832.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
5555

5656
initialize by copy { readwrite };
5757
do not initialize { section .noinit };
58-
place at address mem:__ICFEDIT_region_RAM_NVIC_start__ { section .noinit };
58+
place in RAM_region { section .noinit };
5959

6060
keep { section .intvec };
6161
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_IAR/nRF52840.icf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
5454
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
5555

5656
initialize by copy { readwrite };
57+
do not initialize { section .nvictable };
58+
place at address mem:__ICFEDIT_region_RAM_NVIC_start__ { section .nvictable };
59+
5760
do not initialize { section .noinit };
58-
place at address mem:__ICFEDIT_region_RAM_NVIC_start__ { section .noinit };
61+
place in RAM_region { section .noinit };
5962

6063
keep { section .intvec };
6164
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };

0 commit comments

Comments
 (0)