Skip to content

Commit 1d5bd75

Browse files
authored
Merge pull request #12061 from OpenNuvoton/nuvoton_nano130_iar_dynamic_heap
NANO130: Support dynamic heap configuration on IAR
2 parents a996ea2 + f90b6c9 commit 1d5bd75

File tree

1 file changed

+2
-2
lines changed
  • targets/TARGET_NUVOTON/TARGET_NANO100/device/TOOLCHAIN_IAR

1 file changed

+2
-2
lines changed

targets/TARGET_NUVOTON/TARGET_NANO100/device/TOOLCHAIN_IAR/NANO130.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ define symbol __ICFEDIT_region_IRAM_start__ = 0x20000000;
1111
define symbol __ICFEDIT_region_IRAM_end__ = 0x20004000 - 1;
1212
/*-Sizes-*/
1313
define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
14-
define symbol __ICFEDIT_size_heap__ = 0xB00;
14+
define symbol __ICFEDIT_size_heap__ = 0x400;
1515
/**** End of ICF editor section. ###ICF###*/
1616

1717

@@ -21,7 +21,7 @@ define region IRAM_region = mem:[from __ICFEDIT_region_IRAM_start__ to __ICFED
2121

2222
define block ROMVEC with alignment = 8 { readonly section .intvec };
2323
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
24-
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
24+
define block HEAP with expanding size, alignment = 8, minimum size = __ICFEDIT_size_heap__ { };
2525

2626

2727
initialize by copy with packing = none { readwrite };

0 commit comments

Comments
 (0)