From 873fc4308a86ab2176bc1caa13e4558887b354a2 Mon Sep 17 00:00:00 2001 From: PARKJIHOON Date: Mon, 6 Jan 2020 20:32:39 +0900 Subject: [PATCH] fix Link Script format Signed-off-by: PARKJIHOON --- .../device/TOOLCHAIN_GCC_ARM/sidk_s5js100.ld | 2 -- .../TARGET_SIDK_S5JS100/device/TOOLCHAIN_IAR/sidk_s5js100.icf | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/device/TOOLCHAIN_GCC_ARM/sidk_s5js100.ld b/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/device/TOOLCHAIN_GCC_ARM/sidk_s5js100.ld index 166c3ee3d9b..3cf52732bc0 100755 --- a/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/device/TOOLCHAIN_GCC_ARM/sidk_s5js100.ld +++ b/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/device/TOOLCHAIN_GCC_ARM/sidk_s5js100.ld @@ -75,9 +75,7 @@ ENTRY(Reset_Handler) /* Heap 1/4 of ram and stack 1/8 */ __stack_size__ = 0x0400; -__heap_size__ = 0x4000; -HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x0400; STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0400; /* Size of the vector table in SRAM */ diff --git a/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/device/TOOLCHAIN_IAR/sidk_s5js100.icf b/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/device/TOOLCHAIN_IAR/sidk_s5js100.icf index de9da29cc5d..c6ed833715c 100755 --- a/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/device/TOOLCHAIN_IAR/sidk_s5js100.icf +++ b/targets/TARGET_Samsung/TARGET_SIDK_S5JS100/device/TOOLCHAIN_IAR/sidk_s5js100.icf @@ -33,7 +33,7 @@ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) { } define symbol CSTACK_SIZE = MBED_BOOT_STACK_SIZE; -define symbol HEAP_SIZE = 0x50000; +define symbol __ICFEDIT_size_heap__ = 0x50000; /*Meory regions*/ define memory mem with size = 4G; @@ -42,7 +42,7 @@ define region ROM_REGION = mem:[from S5JS100_CODE_BASE to S5JS100_CODE_END]; define region IRAM_REGION = mem:[from S5JS100_IRAM_BASE to S5JS100_IRAM_END]; define block CSTACK with alignment = 8, size = CSTACK_SIZE { }; -define block HEAP with alignment = 8, size = HEAP_SIZE { }; +define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; define block RW { readwrite }; define block ZI { zi };