Is there an option to disable heap functions in KDS?

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

Is there an option to disable heap functions in KDS?

831 Views
raels-r
Contributor IV

A project I'm working on has very limited code sizes and can't afford to have heap space.

In the linker file i've defined heap space as 0x0, but the linker still includes the functions "malloc" and friends in the code, causing it to be oversized.

 

I know the code functions fine without malloc as the project was initally built in CW and a nm scan of the .elf file confirms no "malloc" or other heap functions.

 

I've attached the relevant .map files to show user_heap_stack is indeed zero, and that KDS includes malloc, while CW does not.

 

I assume there might be some sort of switch I can use to disable the automatic inclusion of malloc?

Original Attachment has been moved to: sticky_(KDS).map.zip

Original Attachment has been moved to: frdm_kl26_attach_demo(CW).map.zip

Labels (1)
0 Kudos
1 Reply

497 Views
BlackNight
NXP Employee
NXP Employee