Skip to content

Commit 86f966f

Browse files
Adjust STMF411xE IAR linker file to mbed-os memory needs.
Stack size decreased and heap size increased.
1 parent b2a0551 commit 86f966f

File tree

1 file changed

+3
-3
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/device/TOOLCHAIN_IAR

1 file changed

+3
-3
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/device/TOOLCHAIN_IAR/stm32f411xe.icf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]
1818
define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
1919

2020
/* Stack and Heap */
21-
/*Heap 1/4 of ram and stack 1/8*/
22-
define symbol __size_cstack__ = 0x4000;
23-
define symbol __size_heap__ = 0x8000;
21+
/*Heap 84kB and stack 1kB */
22+
define symbol __size_cstack__ = 0x400;
23+
define symbol __size_heap__ = 0x15000;
2424
define block CSTACK with alignment = 8, size = __size_cstack__ { };
2525
define block HEAP with alignment = 8, size = __size_heap__ { };
2626
define block STACKHEAP with fixed order { block HEAP, block CSTACK };

0 commit comments

Comments
 (0)