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 ?
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.