**damv100** wrote on Tuesday, November 03, 2015:

Hi everybody,

I got a question on the use of the heap of freertos.

I have configured the total heap size to 4200 bytes :

#define configTOTAL_HEAP_SIZE ((size_t)(4200))

I us all this space since when I call xPortGetFreeHeapSize() I got 10 so

only 10 bytes are unused.

However, I don’t understand how this space is used. In fact if I sum the

sizes of the tasks stacks, I get only 2000 bytes :

task1 -> 125 words -> 500 bytes

task2 -> 125 words -> 500 bytes

task3 -> 100 words -> 400 bytes

idleTask -> 50 words -> 200 bytes (configMINIMAL_STACK_SIZE = 50)

timers -> 100 words -> 400 bytes (configTIMER_TASK_STACK_DEPTH = 100)

TOTAL 2000 bytes

Is it normal ? Is there any way to knwow what use the other half of the

freeRTOS heap ?

Thank you for your help

Damien