From d0ac092e6800dc7e2371c261a2807fcd5d60f3f7 Mon Sep 17 00:00:00 2001 From: Juho Eskeli Date: Mon, 24 Sep 2018 11:27:42 +0300 Subject: [PATCH] Adjust stack & heap for IAR on STM32F412xG --- .../TARGET_STM32F412xG/device/TOOLCHAIN_IAR/stm32f412xx.icf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/device/TOOLCHAIN_IAR/stm32f412xx.icf b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/device/TOOLCHAIN_IAR/stm32f412xx.icf index 46363c1caf5..b50ccf7e61d 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/device/TOOLCHAIN_IAR/stm32f412xx.icf +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/device/TOOLCHAIN_IAR/stm32f412xx.icf @@ -18,8 +18,9 @@ define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__] define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__]; /* Stack and Heap */ -define symbol __size_cstack__ = 0x8000; -define symbol __size_heap__ = 0x10000; +/*Heap 84kB and stack 1kB */ +define symbol __size_cstack__ = 0x400; +define symbol __size_heap__ = 0x15000; define block CSTACK with alignment = 8, size = __size_cstack__ { }; define block HEAP with alignment = 8, size = __size_heap__ { }; define block STACKHEAP with fixed order { block HEAP, block CSTACK };