Task control block of the task duplicated multiple times

jaswanthkamadan wrote on Thursday, June 15, 2017:

Hi All,

I am using MC9S12XET256MAG contoller with free rtos version of 8.0.1. with code warrior 5.1. while debugging i found that two TCB(task control block) is available in the multiple location of the heap.

Is this expected? one more thing is i am using heap_4.c file.

Thanks & Regards

rtel wrote on Thursday, June 15, 2017:

Each task has its own task control block, and if you create the task
using the xTaskCreate() API function (as opposed to xTaskCreateStatic())
the memory will come from the heap. So I would expect the TCBs to be in
the heap.