K82, MCUXpresso : newlibnano, newlib and heap

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K82, MCUXpresso : newlibnano, newlib and heap

807 Views
EugeneHiihtaja
Senior Contributor I

Hello !

I have tried to use newlibnano-nohost version and it always try to call malloc function ( I have --wrap for heap functions).

In linker file _HeapSize = 0; is specified.

If I take newlib -nohost it looks like heap's function calls is not happens.

/* NewLibNano nohost */
GROUP ("libgcc.a" "libc_nano.a" "libm.a" "libcr_newlib_nohost.a" )  -> always call malloc

/* NewLib nohost */
GROUP ("libgcc.a" "libc.a" "libm.a" "libcr_newlib_nohost.a") -> OK

How-to disable heap usage for newlibnano library ?

I would like to use this lightweight version but I should be able to disable standard usage of heap completely.

Regards,

Eugene

0 Kudos
Reply
0 Replies