mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/12047/head
parent
8d246d8ac1
commit
6df5eea841
|
@ -24,7 +24,7 @@ define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
|
|||
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
|
||||
|
||||
|
||||
initialize by copy { readwrite };
|
||||
initialize by copy with packing = none { readwrite };
|
||||
do not initialize { section .noinit };
|
||||
|
||||
place at address mem:__ICFEDIT_intvec_start__ { block ROMVEC };
|
||||
|
|
Loading…
Reference in New Issue