Skip to content

Commit f4c936f

Browse files
author
Cruz Monrreal
authored
Merge pull request #7486 from marcuschangarm/fix-nrf52-iar
Fix linker script for NRF52840/IAR
2 parents 6800215 + 6f0bb75 commit f4c936f

File tree

2 files changed

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

2 files changed

+4
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ place at address mem:__ICFEDIT_region_RAM_NVIC_start__ { section .nvictable };
6060
do not initialize { section .noinit };
6161
place in RAM_region { section .noinit };
6262

63-
6463
keep { section .intvec };
6564
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
6665
place in ROM_region { readonly };

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)