Skip to content

Commit a645bb2

Browse files
author
deepikabhavnani
committed
Splited RAM section not compatible with dynamic HEAP.
RAM define/section if splited, IAR exanpding size considers just one section while heap creation which results in smaller chunk for heap. This commit is to unify the RAM section.
1 parent f3f0ac4 commit a645bb2

File tree

4 files changed

+8
-20
lines changed

4 files changed

+8
-20
lines changed

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device/TOOLCHAIN_IAR/MKL05Z4.icf

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ define symbol __ICFEDIT_region_ROM_end__ = 0x00007fff;
99
define symbol __ICFEDIT_region_NVIC_start__ = 0x1ffffc00;
1010
define symbol __ICFEDIT_region_NVIC_end__ = 0x1ffffcbf;
1111
define symbol __ICFEDIT_region_RAM_start__ = 0x1ffffcc0;
12-
define symbol __ICFEDIT_region_RAM_end__ = 0x1fffffff;
12+
define symbol __ICFEDIT_region_RAM_end__ = 0x20000bff;
1313
/*-Sizes-*/
1414
if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
1515
define symbol MBED_BOOT_STACK_SIZE = 0x400;
@@ -18,15 +18,12 @@ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
1818
define symbol __ICFEDIT_size_heap__ = 0x400;
1919
/**** End of ICF editor section. ###ICF###*/
2020

21-
define symbol __region_RAM2_start__ = 0x20000000;
22-
define symbol __region_RAM2_end__ = 0x20000bff;
23-
2421
define symbol __FlashConfig_start__ = 0x00000400;
2522
define symbol __FlashConfig_end__ = 0x0000040f;
2623

2724
define memory mem with size = 4G;
2825
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to (__FlashConfig_start__ - 1)] | mem:[from (__FlashConfig_end__+1) to __ICFEDIT_region_ROM_end__];
29-
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__] | mem:[from __region_RAM2_start__ to __region_RAM2_end__];
26+
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
3027

3128
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
3229
define block HEAP with expanding size, minimum size = __ICFEDIT_size_heap__, alignment = 8 { };

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ define symbol __ICFEDIT_region_ROM_end__ = 0x0001ffff;
99
define symbol __ICFEDIT_region_NVIC_start__ = 0x1ffff000;
1010
define symbol __ICFEDIT_region_NVIC_end__ = 0x1ffff0bf;
1111
define symbol __ICFEDIT_region_RAM_start__ = 0x1ffff0c0;
12-
define symbol __ICFEDIT_region_RAM_end__ = 0x1fffffff;
12+
define symbol __ICFEDIT_region_RAM_end__ = 0x20002fff;
1313
/*-Sizes-*/
1414
if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
1515
define symbol MBED_BOOT_STACK_SIZE = 0x400;
@@ -18,15 +18,12 @@ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
1818
define symbol __ICFEDIT_size_heap__ = 0xC00;
1919
/**** End of ICF editor section. ###ICF###*/
2020

21-
define symbol __region_RAM2_start__ = 0x20000000;
22-
define symbol __region_RAM2_end__ = 0x20002fff;
23-
2421
define symbol __FlashConfig_start__ = 0x00000400;
2522
define symbol __FlashConfig_end__ = 0x0000040f;
2623

2724
define memory mem with size = 4G;
2825
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to (__FlashConfig_start__ - 1)] | mem:[from (__FlashConfig_end__+1) to __ICFEDIT_region_ROM_end__];
29-
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__] | mem:[from __region_RAM2_start__ to __region_RAM2_end__];
26+
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
3027

3128
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
3229
define block HEAP with expanding size, minimum size = __ICFEDIT_size_heap__, alignment = 8 { };

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device/TOOLCHAIN_IAR/MKL26Z4.icf

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ define symbol __ICFEDIT_region_ROM_end__ = 0x0001ffff;
99
define symbol __ICFEDIT_region_NVIC_start__ = 0x1ffff000;
1010
define symbol __ICFEDIT_region_NVIC_end__ = 0x1ffff0bf;
1111
define symbol __ICFEDIT_region_RAM_start__ = 0x1ffff0c0;
12-
define symbol __ICFEDIT_region_RAM_end__ = 0x1fffffff;
12+
define symbol __ICFEDIT_region_RAM_end__ = 0x20002fff;
1313
/*-Sizes-*/
1414
if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
1515
define symbol MBED_BOOT_STACK_SIZE = 0x400;
@@ -18,15 +18,12 @@ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
1818
define symbol __ICFEDIT_size_heap__ = 0x1000;
1919
/**** End of ICF editor section. ###ICF###*/
2020

21-
define symbol __region_RAM2_start__ = 0x20000000;
22-
define symbol __region_RAM2_end__ = 0x20002fff;
23-
2421
define symbol __FlashConfig_start__ = 0x00000400;
2522
define symbol __FlashConfig_end__ = 0x0000040f;
2623

2724
define memory mem with size = 4G;
2825
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to (__FlashConfig_start__ - 1)] | mem:[from (__FlashConfig_end__+1) to __ICFEDIT_region_ROM_end__];
29-
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__] | mem:[from __region_RAM2_start__ to __region_RAM2_end__];
26+
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
3027

3128
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
3229
define block HEAP with expanding size, minimum size = __ICFEDIT_size_heap__, alignment = 8 { };

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device/TOOLCHAIN_IAR/MKL46Z4.icf

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ define symbol __ICFEDIT_region_ROM_end__ = 0x0002ffff;
99
define symbol __ICFEDIT_region_NVIC_start__ = 0x1fffe000;
1010
define symbol __ICFEDIT_region_NVIC_end__ = 0x1fffe0bf;
1111
define symbol __ICFEDIT_region_RAM_start__ = 0x1fffe0c0;
12-
define symbol __ICFEDIT_region_RAM_end__ = 0x1fffffff;
12+
define symbol __ICFEDIT_region_RAM_end__ = 0x20005fff;
1313
/*-Sizes-*/
1414
if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
1515
define symbol MBED_BOOT_STACK_SIZE = 0x400;
@@ -18,15 +18,12 @@ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
1818
define symbol __ICFEDIT_size_heap__ = 0x4000;
1919
/**** End of ICF editor section. ###ICF###*/
2020

21-
define symbol __region_RAM2_start__ = 0x20000000;
22-
define symbol __region_RAM2_end__ = 0x20005fff;
23-
2421
define symbol __FlashConfig_start__ = 0x00000400;
2522
define symbol __FlashConfig_end__ = 0x0000040f;
2623

2724
define memory mem with size = 4G;
2825
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to (__FlashConfig_start__ - 1)] | mem:[from (__FlashConfig_end__+1) to __ICFEDIT_region_ROM_end__];
29-
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__] | mem:[from __region_RAM2_start__ to __region_RAM2_end__];
26+
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
3027

3128
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
3229
define block HEAP with expanding size, minimum size = __ICFEDIT_size_heap__, alignment = 8 { };

0 commit comments

Comments
 (0)