Skip to content

Commit 6df5eea

Browse files
committed
NANO130: Fix OOM with packing algorithm at IAR linking
At IAR linking, the default method of 'initialize by copy' is 'auto', which will estimate different packing algorithms, including complex 'lz77', for smallest memory footprint. But the algorithm itself can consume some SRAM and cause OOM at linking time for NANO130, which just has 16KiB SRAM. To avoid this error, always choose 'none' packing algorithm.
1 parent 8d246d8 commit 6df5eea

File tree

1 file changed

+1
-1
lines changed
  • targets/TARGET_NUVOTON/TARGET_NANO100/device/TOOLCHAIN_IAR

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
2424
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
2525

2626

27-
initialize by copy { readwrite };
27+
initialize by copy with packing = none { readwrite };
2828
do not initialize { section .noinit };
2929

3030
place at address mem:__ICFEDIT_intvec_start__ { block ROMVEC };

0 commit comments

Comments
 (0)