May 2020
Intermediate to advanced
496 pages
13h 54m
English
The heap is the portion of memory that is used when a dynamic allocation using malloc is called. It is also where a FreeRTOS task stack and task control block (TCB) are stored when they are created by calling xTaskCreate().
In an MCU FreeRTOS system, there will typically be two heaps created:
#define configTOTAL_HEAP_SIZE ((size_t)15360)
Currently, this line is defining a 15 KB heap. This heap must ...