Skip to content

Commit ca41a0f

Browse files
committed
Correct uninit region for nordic targets
1 parent 58372d3 commit ca41a0f

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/device/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/nRF51822.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LR_IROM1 0x1B000 0x0025000 {
1919
.ANY (+RO)
2020
}
2121
RW_IRAM0 0x20002ef8 UNINIT 0x000000c0 { ;no init section
22-
*(noinit)
22+
*(*noinit)
2323
}
2424
RW_IRAM1 0x20002FB8 0x00005048 {
2525
.ANY (+RW +ZI)

targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/device/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S110/nRF51822.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LR_IROM1 0x18000 0x0028000 {
1919
.ANY (+RO)
2020
}
2121
RW_IRAM0 0x20002000 UNINIT 0x000000c0 { ;no init section
22-
*(noinit)
22+
*(*noinit)
2323
}
2424
RW_IRAM1 0x200020C0 0x00001F40 {
2525
.ANY (+RW +ZI)

targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/device/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S130/nRF51822.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LR_IROM1 0x0001B000 0x0025000 {
1919
.ANY (+RO)
2020
}
2121
RW_IRAM0 0x20002ef8 UNINIT 0x000000c0 { ;no init section
22-
*(noinit)
22+
*(*noinit)
2323
}
2424
RW_IRAM1 0x20002FB8 0x00001048 {
2525
.ANY (+RW +ZI)

targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/device/TOOLCHAIN_ARM_STD/nRF52832.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LR_IROM1 0x1C000 0x0064000 {
1919
.ANY (+RO)
2020
}
2121
RW_IRAM0 0x20002EF8 UNINIT 0x000000D8 { ;no init section
22-
*(noinit)
22+
*(*noinit)
2323
}
2424
RW_IRAM1 0x20002FD0 0x0000D030 {
2525
.ANY (+RW +ZI)

targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52840/device/TOOLCHAIN_ARM_STD/nRF52832.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LR_IROM1 0x21000 0x00DF000 {
55
.ANY (+RO)
66
}
77
RW_IRAM0 0x20003288 UNINIT 0x000000F8 { ;no init section
8-
*(noinit)
8+
*(*noinit)
99
}
1010
RW_IRAM1 0x20003380 0x0003cc80 {
1111
.ANY (+RW +ZI)

targets/TARGET_NORDIC/TARGET_NRF5/reloc_vector_table.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
#include "nrf_sdm.h"
4343
#include "section_vars.h"
4444

45-
#if defined(__CC_ARM)
46-
__attribute__ ((section("noinit"),zero_init))
45+
#if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
46+
__attribute__ ((section(".bss.noinit"),zero_init))
4747
uint32_t nrf_dispatch_vector[NVIC_NUM_VECTORS];
4848
#elif defined(__GNUC__)
4949
__attribute__ ((section(".noinit")))

0 commit comments

Comments
 (0)