Skip to content

Commit 22c1c6c

Browse files
authored
Merge pull request #13951 from LDong-Arm/NRF52_DK-baremetal
MCU_NRF52832 (NRF52_DK, SDT52832B): use two-region memory model to support MicroLib
2 parents aea691a + b174edb commit 22c1c6c

File tree

1 file changed

+5
-4
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_ARM_STD

1 file changed

+5
-4
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_ARM_STD/nRF52832.sct

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,23 @@
2626

2727
#define MBED_RAM0_START MBED_RAM_START
2828
#define MBED_RAM0_SIZE 0xE0
29-
#define MBED_RAM1_START (MBED_RAM_START + MBED_RAM0_SIZE)
29+
#define MBED_RAM1_START (MBED_RAM0_START + MBED_RAM0_SIZE)
3030
#define MBED_RAM1_SIZE (MBED_RAM_SIZE - MBED_RAM0_SIZE)
3131

3232
LR_IROM1 MBED_APP_START MBED_APP_SIZE {
3333
ER_IROM1 MBED_APP_START MBED_APP_SIZE {
3434
*.o (RESET, +First)
35-
*(InRoot$$Sections)
35+
*(InRoot$$Sections)
3636
.ANY (+RO)
3737
}
38-
3938
RW_IRAM0 MBED_RAM0_START UNINIT MBED_RAM0_SIZE { ;no init section
4039
*(*nvictable)
4140
}
4241
RW_IRAM1 MBED_RAM1_START MBED_RAM1_SIZE {
4342
.ANY (+RW +ZI)
4443
}
45-
ARM_LIB_STACK MBED_RAM1_START+MBED_RAM1_SIZE EMPTY -Stack_Size { ; Stack region growing down
44+
ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM1_START + MBED_RAM1_SIZE - MBED_CONF_TARGET_BOOT_STACK_SIZE - AlignExpr(ImageLimit(RW_IRAM1), 16)) {
45+
}
46+
ARM_LIB_STACK MBED_RAM1_START + MBED_RAM1_SIZE EMPTY - Stack_Size { ; Stack region growing down
4647
}
4748
}

0 commit comments

Comments
 (0)