FreeRTOS Memory usage calculation

engmmostafa80 wrote on Sunday, April 13, 2014:

I want to know how to calculate the amount of used memory heap allocated to the FreeRTOS in order to check if I reached its limit or not.
For example I created 3 tasks, 10 Queues, 2 binary semaphores. Task Name Len 16, Minimal stack size 70.

davedoors wrote on Sunday, April 13, 2014:

Call xPortGetFreeHeapSize(), create your tasks queues semaphores etc. then call xPortGetFreeHeapSize() again to find the difference. http://www.freertos.org/a00111.html

dueringa wrote on Tuesday, April 15, 2014:

Actually, there’s also
xPortGetMinimumEverFreeHeapSize()
but only when using heap4