From 8ba94e2e4aa954ffe5307b6f3b3dc2b3b78c2a17 Mon Sep 17 00:00:00 2001 From: ccli8 Date: Fri, 5 Aug 2016 14:27:42 +0800 Subject: [PATCH] Remove sal-stack-lwip.a from IAR linker configuration file Locate *lwip_* in XRAM to fix IRAM OOM --- .../TARGET_NUC472/device/TOOLCHAIN_IAR/NUC472_442.icf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_IAR/NUC472_442.icf b/targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_IAR/NUC472_442.icf index 9addb2df09..479e48eef8 100644 --- a/targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_IAR/NUC472_442.icf +++ b/targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_IAR/NUC472_442.icf @@ -26,7 +26,7 @@ define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; /* NOTE: Vector table base requires to be aligned to the power of vector table size. Give a safe value here. */ define block IRAMVEC with alignment = 1024, size = 4 * (16 + 142) { }; /* Move non-critical libraries to external SRAM while internal SRAM is insufficient. */ -define block XRAM_NC with alignment = 8 { readwrite object sal-stack-lwip.a }; +define block XRAM_NC with alignment = 8 { zeroinit object *lwip_* }; initialize by copy { readwrite };