Skip to content

Commit 2bbc1f2

Browse files
committed
greentea heap&stack fix
1 parent 50a0a55 commit 2bbc1f2

File tree

1 file changed

+3
-2
lines changed
  • targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/TOOLCHAIN_IAR

1 file changed

+3
-2
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/TOOLCHAIN_IAR/rtl8195a.icf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ define symbol __ICFEDIT_region_SDRAM_RAM_start__ = 0x30000000;
2525
define symbol __ICFEDIT_region_SDRAM_RAM_end__ = 0x301FFFFF;
2626

2727
/*-Sizes-*/
28-
/*define symbol __ICFEDIT_size_cstack__ = 0x400;*/
28+
define symbol __ICFEDIT_size_cstack__ = 0x1000;
2929
define symbol __ICFEDIT_size_heap__ = 0x19000;
3030
/**** End of ICF editor section. ###ICF###*/
3131

@@ -38,7 +38,7 @@ define region ROM_USED_RAM_region = mem:[from __ICFEDIT_region_ROM_USED_RAM_st
3838
define region BD_RAM_region = mem:[from __ICFEDIT_region_BD_RAM_start__ to __ICFEDIT_region_BD_RAM_end__];
3939
define region SDRAM_RAM_region = mem:[from __ICFEDIT_region_SDRAM_RAM_start__ to __ICFEDIT_region_SDRAM_RAM_end__];
4040

41-
/*define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };*/
41+
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
4242
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
4343

4444
//initialize by copy { readwrite };
@@ -217,6 +217,7 @@ define overlay TCM_overlay {
217217
/* dummy code placement */
218218
define overlay TCM_overlay { block IMAGE1_DBG };
219219
place at start of TCM_region { overlay TCM_overlay };
220+
place at end of TCM_region { block CSTACK};
220221

221222
define exported symbol __rom_bss_start__ = 0x10000300; // use in rom
222223
define exported symbol __rom_bss_end__ = 0x10000bc8; // use in rom

0 commit comments

Comments
 (0)