Skip to content

Commit 59e78a6

Browse files
author
Deepika
committed
Make heap to be of expanding size
1 parent 95dcd75 commit 59e78a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L443xC/device/TOOLCHAIN_IAR/stm32l443xx.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
2828
define symbol __size_cstack__ = MBED_BOOT_STACK_SIZE;
2929
define symbol __size_heap__ = 0x4000;
3030
define block CSTACK with alignment = 8, size = __size_cstack__ { };
31-
define block HEAP with alignment = 8, size = __size_heap__ { };
31+
define block HEAP with expanding size, minimum size = __size_heap__, alignment = 8 { };
3232
define block STACKHEAP with fixed order { block HEAP, block CSTACK };
3333

3434
initialize by copy with packing = zeros { readwrite };

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/device/TOOLCHAIN_IAR/stm32l475xx.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
3737
define symbol __size_cstack__ = MBED_BOOT_STACK_SIZE;
3838
define symbol __size_heap__ = 0x12000;
3939
define block CSTACK with alignment = 8, size = __size_cstack__ { };
40-
define block HEAP with alignment = 8, size = __size_heap__ { };
40+
define block HEAP with expanding size, minimum size = __size_heap__, alignment = 8 { };
4141

4242
initialize by copy with packing = zeros { readwrite };
4343
do not initialize { section .noinit };

0 commit comments

Comments
 (0)