AnsweredAssumed Answered

Heap and stack sizes in Kinetis project

Question asked by yuliap on Aug 24, 2015
Latest reply on Aug 26, 2015 by Erich Styger

Hi,

I have a Kinetis project wth FreeRTOS and lwip. I am a little confused with the heap and stack definitions. I can set the heap and stack size in the CPU component of the Processor Expert. In addition, the FreeRTOS has its own heap size config, and lwip has its own mem size definition and the sizes are passed as options to the linker. Do any of them override the others? I tried to add the ping demo functionality to my project and copied all the linker settings from the demo project. I verified that the FreeRTOS and lwip settings were the same as the demo project. Still I get a memory allocation errors when my program starts running. Is there any more heap/stack size definitions besides the ones in CPU component, linker misc options, FreeRTOSConfig and lwipopts?

Regards,

Julia

Outcomes