AnsweredAssumed Answered

Heap and Dynamic Memory Allocation on K64F

Question asked by Torquato Cecchini on Jun 8, 2015
Latest reply on Jun 15, 2015 by Alice_Yang

Hi, I'm using FRDM-K64F dev board and I would like to use the the Heap for large array data allocation.

I tried suggested settings for heap and stack in PE (like changing heap and stack in the PEx CPU Build panel) with no compiling errors but failing debugging at run time.

I would like to configure the heap  for using .data sections areas and allow malloc() to dynamically allocate arrays in this area.

I don't use any ROTS since I prefer bare metal configurations and programming with KDS and PEx without KSDK.

A user heap section specification like possible with FreeRTOS would be perfect but I don't know how to do it without.

Thank you for your help guys.