Skip to content

Commit 6a6455d

Browse files
authored
Merge pull request #4031 from jeromecoutant/PR_IAR_BIG_HEAP
STM32 increase IAR heap size for big RAM targets
2 parents 78c4850 + 4193202 commit 6a6455d

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/device/TOOLCHAIN_IAR/stm32f412xx.icf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ 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-
/*Heap 1/4 of ram and stack 1/8*/
1918
define symbol __size_cstack__ = 0x8000;
2019
define symbol __size_heap__ = 0x10000;
2120
define block CSTACK with alignment = 8, size = __size_cstack__ { };

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI/device/TOOLCHAIN_IAR/stm32f469xx.icf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +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-
/*Heap 1/4 of ram and stack 1/8*/
1918
define symbol __size_cstack__ = 0x4000;
20-
define symbol __size_heap__ = 0x8000;
19+
define symbol __size_heap__ = 0x10000;
2120
define block CSTACK with alignment = 8, size = __size_cstack__ { };
2221
define block HEAP with alignment = 8, size = __size_heap__ { };
2322
define block STACKHEAP with fixed order { block HEAP, block CSTACK };

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/device/TOOLCHAIN_IAR/stm32f756xg.icf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__]
1919
define region ITCMRAM_region = mem:[from __region_ITCMRAM_start__ to __region_ITCMRAM_end__];
2020

2121
/* Stack and Heap */
22-
/*Heap 1/4 of ram and stack 1/8*/
2322
define symbol __size_cstack__ = 0x4000;
24-
define symbol __size_heap__ = 0x8000;
23+
define symbol __size_heap__ = 0x10000;
2524
define block CSTACK with alignment = 8, size = __size_cstack__ { };
2625
define block HEAP with alignment = 8, size = __size_heap__ { };
2726
define block STACKHEAP with fixed order { block HEAP, block CSTACK };

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/device/TOOLCHAIN_IAR/stm32f767xi.icf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__]
1919
define region ITCMRAM_region = mem:[from __region_ITCMRAM_start__ to __region_ITCMRAM_end__];
2020

2121
/* Stack and Heap */
22-
/*Heap 1/4 of ram and stack 1/8*/
2322
define symbol __size_cstack__ = 0x8000;
24-
define symbol __size_heap__ = 0x8000;
23+
define symbol __size_heap__ = 0x10000;
2524
define block CSTACK with alignment = 8, size = __size_cstack__ { };
2625
define block HEAP with alignment = 8, size = __size_heap__ { };
2726
define block STACKHEAP with fixed order { block HEAP, block CSTACK };

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/device/TOOLCHAIN_IAR/stm32f769xi.icf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__]
1919
define region ITCMRAM_region = mem:[from __region_ITCMRAM_start__ to __region_ITCMRAM_end__];
2020

2121
/* Stack and Heap */
22-
/*Heap 1/4 of ram and stack 1/8*/
2322
define symbol __size_cstack__ = 0x8000;
24-
define symbol __size_heap__ = 0x8000;
23+
define symbol __size_heap__ = 0x10000;
2524
define block CSTACK with alignment = 8, size = __size_cstack__ { };
2625
define block HEAP with alignment = 8, size = __size_heap__ { };
2726
define block STACKHEAP with fixed order { block HEAP, block CSTACK };

0 commit comments

Comments
 (0)