AnsweredAssumed Answered

K82 : MCUExpresso disable heap usage

Question asked by Eugene Hiihtaja on Dec 28, 2018
Latest reply on Dec 28, 2018 by Bob Paddock

Hello !


I use latest MCU Expresso and SDK for develop firmware for K82.


How-to completely disable heap usage and be sure if malloc/free is not called suddenly somewhere ?


I have set HeapSize =0 in Linker file and set trap for malloc/free in linker options.

But looks like heap is used somewhere in any case.


-Xlinker --wrap=malloc -Xlinker --wrap=free -Xlinker --wrap=calloc


But linker report :


c:/nxp/mcuxpressoide_10.3.0_2200/ide/plugins/\libcr_c.a(fpprintf.o): In function `printf':
fpprintf.c:(.text.printf+0x1e): undefined reference to `__wrap_malloc'
fpprintf.c:(.text.printf+0x3e): undefined reference to `__wrap_free'

c:/nxp/mcuxpressoide_10.3.0_2200/ide/plugins/\libcr_c.a(fclose.o): In function `fclose':
fclose.c:(.text.fclose+0x24): undefined reference to `__wrap_free'


How-to disable heap in MCUExpresso and K82 in correct way ?