Skip to content

Commit 0d5166c

Browse files
Deepikaadbridge
authored andcommitted
Set ISR stack and heap sizes for low end devices
Set the ISR stack to be 1KB. #7238 Set the heap size to 3KB(2KB + overhead + spare) so that atleast 2KB free ram is available for testing. With dynamic heap size, explicit size is not required. IAR 7.8 supports static heap, hence the change is needed in IAR linker files.
1 parent b6826d9 commit 0d5166c

File tree

9 files changed

+14
-15
lines changed

9 files changed

+14
-15
lines changed

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_IAR/MKL25Z4.icf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ define symbol __ICFEDIT_region_NVIC_end__ = 0x1ffff0bf;
1111
define symbol __ICFEDIT_region_RAM_start__ = 0x1ffff0c0;
1212
define symbol __ICFEDIT_region_RAM_end__ = 0x1fffffff;
1313
/*-Sizes-*/
14-
/*Heap 1/4 of ram and stack 1/8*/
15-
define symbol __ICFEDIT_size_cstack__ = 0x800;
16-
define symbol __ICFEDIT_size_heap__ = 0x1000;
14+
define symbol __ICFEDIT_size_cstack__ = 0x400;
15+
define symbol __ICFEDIT_size_heap__ = 0xC00;
1716
/**** End of ICF editor section. ###ICF###*/
1817

1918
define symbol __region_RAM2_start__ = 0x20000000;

targets/TARGET_NUVOTON/TARGET_NANO100/device/TOOLCHAIN_IAR/NANO130.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ define symbol __ICFEDIT_region_ROM_end__ = 0x00020000 - 1;
99
define symbol __ICFEDIT_region_IRAM_start__ = 0x20000000;
1010
define symbol __ICFEDIT_region_IRAM_end__ = 0x20004000 - 1;
1111
/*-Sizes-*/
12-
define symbol __ICFEDIT_size_cstack__ = 0x600;
13-
define symbol __ICFEDIT_size_heap__ = 0xE00;
12+
define symbol __ICFEDIT_size_cstack__ = 0x400;
13+
define symbol __ICFEDIT_size_heap__ = 0xC00;
1414
/**** End of ICF editor section. ###ICF###*/
1515

1616

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device/TOOLCHAIN_IAR/stm32f070xb.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define symbol __ICFEDIT_region_RAM_start__ = 0x200000C0;
1010
define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
1111
/*-Sizes-*/
1212
define symbol __ICFEDIT_size_cstack__ = 0x400;
13-
define symbol __ICFEDIT_size_heap__ = 0x1000;
13+
define symbol __ICFEDIT_size_heap__ = 0xC00;
1414
/**** End of ICF editor section. ###ICF###*/
1515

1616
define memory mem with size = 4G;

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device/TOOLCHAIN_IAR/stm32f072xb.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define symbol __ICFEDIT_region_RAM_start__ = 0x200000C0;
1010
define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
1111
/*-Sizes-*/
1212
define symbol __ICFEDIT_size_cstack__ = 0x400;
13-
define symbol __ICFEDIT_size_heap__ = 0x1000;
13+
define symbol __ICFEDIT_size_heap__ = 0xC00;
1414
/**** End of ICF editor section. ###ICF###*/
1515

1616
define memory mem with size = 4G;

targets/TARGET_TOSHIBA/TARGET_TMPM066/device/TOOLCHAIN_IAR/tmpm066fwug.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ define symbol __ICFEDIT_region_ROM_end__ = 0x0001FFFF;
99
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
1010
define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
1111
/*-Sizes-*/
12-
define symbol __ICFEDIT_size_cstack__ = 0x200;
13-
define symbol __ICFEDIT_size_heap__ = 0x1400;
12+
define symbol __ICFEDIT_size_cstack__ = 0x400;
13+
define symbol __ICFEDIT_size_heap__ = 0xC00;
1414
/**** End of ICF editor section. ###ICF###*/
1515

1616

targets/TARGET_TOSHIBA/TARGET_TMPM3H6/device/TOOLCHAIN_IAR/tmpm3h6fwfg.icf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
88
define symbol __ICFEDIT_region_ROM_end__ = 0x0001FFFF;
99
define symbol __ICFEDIT_region_RAM_start__ = 0x20000218; /* 8_byte_aligned(117 + 16 vect * 4 bytes) */
1010
define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
11-
/* Heap 1/4 of ram and stack 1/8 */
12-
define symbol __ICFEDIT_size_cstack__ = 0x400;
13-
define symbol __ICFEDIT_size_heap__ = 0x1200;
11+
/*-Sizes-*/
12+
define symbol __ICFEDIT_size_cstack__ = 0x400;
13+
define symbol __ICFEDIT_size_heap__ = 0xC00;
1414
/**** End of ICF editor section. ###ICF###*/
1515

1616

targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/device/TOOLCHAIN_IAR/W7500_Flash.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
1010
define symbol __ICFEDIT_region_RAM_end__ = 0x20004000;
1111
/*-Heap 1/4 of ram and stack 1/8-*/
1212
define symbol __ICFEDIT_size_cstack__ = 0x00000400;
13-
define symbol __ICFEDIT_size_heap__ = 0x00001000;
13+
define symbol __ICFEDIT_size_heap__ = 0x00000C00;
1414
/**** End of ICF editor section. ###ICF###*/
1515

1616

targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/device/TOOLCHAIN_IAR/W7500_Flash.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
1010
define symbol __ICFEDIT_region_RAM_end__ = 0x20004000;
1111
/*-Heap 1/4 of ram and stack 1/8-*/
1212
define symbol __ICFEDIT_size_cstack__ = 0x00000400;
13-
define symbol __ICFEDIT_size_heap__ = 0x00001000;
13+
define symbol __ICFEDIT_size_heap__ = 0x00000C00;
1414
/**** End of ICF editor section. ###ICF###*/
1515

1616

targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/device/TOOLCHAIN_IAR/W7500_Flash.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
1010
define symbol __ICFEDIT_region_RAM_end__ = 0x20004000;
1111
/*-Heap 1/4 of ram and stack 1/8-*/
1212
define symbol __ICFEDIT_size_cstack__ = 0x00000400;
13-
define symbol __ICFEDIT_size_heap__ = 0x00001000;
13+
define symbol __ICFEDIT_size_heap__ = 0x00000C00;
1414
/**** End of ICF editor section. ###ICF###*/
1515

1616

0 commit comments

Comments
 (0)