Page 1 of 1

[Answered]: FreeRTOS and heap management

Posted: Sun Nov 05, 2017 4:21 pm
by kolban
Am studying FreeRTOS from the documentation at the FreeRTOS web site and related. I am starting to learn that FreeRTOS provides "example" heap management algorithms. Some of which are called "heap_1", "heap_2", "heap_3", "heap_4" and "heap_5". My current thinking is that the ESP-IDF provides its own heap management functions and the FreeRTOS heap interface functions called "pvPortMalloc()" and "pvPortFree()" are mapped to the ESP-IDF implementations.

Is this a correct assumption?

I am trying not to study information that isn't pertinent (for example FreeRTOS heap management) if it isn't applicable in the ESP32 ESP-IDF environment.

Re: FreeRTOS and heap management

Posted: Sun Nov 05, 2017 10:07 pm
by WiFive
Yes

Re: [Answered]: FreeRTOS and heap management

Posted: Mon Nov 06, 2017 5:57 am
by ESP_Sprite
Indeed. Up to a few months ago, esp-idf used a modified version of the heap4.c example (modified to support multiple tags/capabilities). At the moment, the heap allocator we use is an entirely new implementation that better supports our needs.