the maximum of tasks running in FreeRTOS

vicui wrote on Saturday, June 09, 2012:

HI ;

Who know that the maximum of task running in FreeRTOS ? is it depend on the configTOTAL_HEAP_SIZE value ?
the task stack value defined in vTaskCreate functions is allocated from FreeRTOS heap or system stack or system heap ?

vincent

kpettit1 wrote on Saturday, June 09, 2012:

Hi Vincent,

The task control block (TCB) and the task’s stack space are both allocated from the FreeRTOS heap as defined by configTOTAL_HEAP_SIZE (and the specific heapX.c file included in the build).  There is nothing in FreeRTOS that limits the number of created tasks except the available FreeRTOS heap space.

Ken

rtel wrote on Saturday, June 09, 2012:

In addition to Ken’s helpful answer, I posted some links in your other thread.

Regards.

vicui wrote on Sunday, June 10, 2012:

Hi ken and rechardbarry:

that’s really useful .

thank you very much !

Vincent