May 2020
Intermediate to advanced
496 pages
13h 54m
English
The call from the beginning of this section uses the heap to store the stack:
xTaskCreate(Task1, "task1", StackSizeWords, TaskHandlePtr, tskIDLE_PRIORITY + 2, NULL);
xTaskCreate() is the simpler of the two methods to call. It will use memory from the FreeRTOS heap for Task1's stack and the Task Control Block (TCB).