Add heaplimit to NRF52 devices

pull/9571/head
deepikabhavnani 2019-02-12 13:18:50 -06:00
parent 9231e26f3f
commit 2a1211a82a
2 changed files with 2 additions and 0 deletions

View File

@ -238,6 +238,7 @@ SECTIONS
/* Expand the heap to reach the stack boundary. */ /* Expand the heap to reach the stack boundary. */
ASSERT(. <= (ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE), "heap region overflowed into stack"); ASSERT(. <= (ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE), "heap region overflowed into stack");
. = ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE; . = ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE;
__HeapLimit = .;
} > RAM } > RAM
PROVIDE(__heap_start = ADDR(.heap)); PROVIDE(__heap_start = ADDR(.heap));
PROVIDE(__heap_size = SIZEOF(.heap)); PROVIDE(__heap_size = SIZEOF(.heap));

View File

@ -254,6 +254,7 @@ SECTIONS
/* Expand the heap to reach the stack boundary. */ /* Expand the heap to reach the stack boundary. */
ASSERT(. <= (ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE), "heap region overflowed into stack"); ASSERT(. <= (ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE), "heap region overflowed into stack");
. = ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE; . = ORIGIN(RAM) + LENGTH(RAM) - MBED_BOOT_STACK_SIZE;
__HeapLimit = .;
} > RAM } > RAM
PROVIDE(__heap_start = ADDR(.heap)); PROVIDE(__heap_start = ADDR(.heap));
PROVIDE(__heap_size = SIZEOF(.heap)); PROVIDE(__heap_size = SIZEOF(.heap));