Skip to content

Commit 2a1211a

Browse files
author
deepikabhavnani
committed
Add heaplimit to NRF52 devices
1 parent 9231e26 commit 2a1211a

File tree

2 files changed

+2
-0
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52
    • TARGET_MCU_NRF52832/device/TOOLCHAIN_GCC_ARM
    • TARGET_MCU_NRF52840/device/TOOLCHAIN_GCC_ARM

2 files changed

+2
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_GCC_ARM/NRF52832.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ SECTIONS
238238
/* Expand the heap to reach the stack boundary. */
239239
ASSERT(. <= (ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE), "heap region overflowed into stack");
240240
. = ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE;
241+
__HeapLimit = .;
241242
} > RAM
242243
PROVIDE(__heap_start = ADDR(.heap));
243244
PROVIDE(__heap_size = SIZEOF(.heap));

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_GCC_ARM/NRF52840.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ SECTIONS
254254
/* Expand the heap to reach the stack boundary. */
255255
ASSERT(. <= (ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE), "heap region overflowed into stack");
256256
. = ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE;
257+
__HeapLimit = .;
257258
} > RAM
258259
PROVIDE(__heap_start = ADDR(.heap));
259260
PROVIDE(__heap_size = SIZEOF(.heap));

0 commit comments

Comments
 (0)