mirror of https://github.com/ARMmbed/mbed-os.git
NANO130: Support dynamic heap configuration on IAR
On IAR, configure heap to 1KiB at a minimum and expandable, dependent on available SRAM. This requires IAR 8.x.pull/12061/head
parent
66eb594f17
commit
f90b6c9cb0
|
@ -11,7 +11,7 @@ define symbol __ICFEDIT_region_IRAM_start__ = 0x20000000;
|
||||||
define symbol __ICFEDIT_region_IRAM_end__ = 0x20004000 - 1;
|
define symbol __ICFEDIT_region_IRAM_end__ = 0x20004000 - 1;
|
||||||
/*-Sizes-*/
|
/*-Sizes-*/
|
||||||
define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
|
define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
|
||||||
define symbol __ICFEDIT_size_heap__ = 0xB00;
|
define symbol __ICFEDIT_size_heap__ = 0x400;
|
||||||
/**** End of ICF editor section. ###ICF###*/
|
/**** End of ICF editor section. ###ICF###*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ define region IRAM_region = mem:[from __ICFEDIT_region_IRAM_start__ to __ICFED
|
||||||
|
|
||||||
define block ROMVEC with alignment = 8 { readonly section .intvec };
|
define block ROMVEC with alignment = 8 { readonly section .intvec };
|
||||||
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
|
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
|
||||||
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
|
define block HEAP with expanding size, alignment = 8, minimum size = __ICFEDIT_size_heap__ { };
|
||||||
|
|
||||||
|
|
||||||
initialize by copy with packing = none { readwrite };
|
initialize by copy with packing = none { readwrite };
|
||||||
|
|
Loading…
Reference in New Issue