AnsweredAssumed Answered

Malloc not working in a task

Question asked by joe birch on Jul 9, 2015
Latest reply on Jul 10, 2015 by joe birch

I'm new to KDS, KSDK and PEx and am trying to get some basics working.


The problem is that malloc always returns 0 when called from a task.

malloc returns a valid address when called from main.


I am using KDS 3.0, KSDK 1.2 on a FRDM_K22, gcc

all defaults except:

  • OS is freeRTOS (with default memory sceme -   configFRTOS_MEMORY_SCHEME==3)
  • 1 task
  • fsl_debug_console
  • set heap to 0x0400


I appreciate the help