Skip to content

Commit f7c392e

Browse files
jeromecoutantadbridge
authored andcommitted
reduce IAR heap and stack size for small targets
1 parent 88b3a7b commit f7c392e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/device/TOOLCHAIN_IAR/stm32l053xx.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]
1515
define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
1616

1717
/* Stack and Heap */
18-
define symbol __size_cstack__ = 0x500;
19-
define symbol __size_heap__ = 0x1000;
18+
define symbol __size_cstack__ = 0x400;
19+
define symbol __size_heap__ = 0x800;
2020
define block CSTACK with alignment = 8, size = __size_cstack__ { };
2121
define block HEAP with alignment = 8, size = __size_heap__ { };
2222
define block STACKHEAP with fixed order { block HEAP, block CSTACK };

targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/device/TOOLCHAIN_IAR/stm32l031xx.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]
1515
define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
1616

1717
/* Stack and Heap */
18-
define symbol __size_cstack__ = 0x500;
19-
define symbol __size_heap__ = 0x1000;
18+
define symbol __size_cstack__ = 0x400;
19+
define symbol __size_heap__ = 0x800;
2020
define block CSTACK with alignment = 8, size = __size_cstack__ { };
2121
define block HEAP with alignment = 8, size = __size_heap__ { };
2222
define block STACKHEAP with fixed order { block HEAP, block CSTACK };

targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/device/TOOLCHAIN_IAR/stm32l053xx.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]
1515
define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
1616

1717
/* Stack and Heap */
18-
define symbol __size_cstack__ = 0x500;
19-
define symbol __size_heap__ = 0x1000;
18+
define symbol __size_cstack__ = 0x400;
19+
define symbol __size_heap__ = 0x800;
2020
define block CSTACK with alignment = 8, size = __size_cstack__ { };
2121
define block HEAP with alignment = 8, size = __size_heap__ { };
2222
define block STACKHEAP with fixed order { block HEAP, block CSTACK };

0 commit comments

Comments
 (0)