[Answered]: FreeRTOS and heap management

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

[Answered]: FreeRTOS and heap management

Postby kolban » Sun Nov 05, 2017 4:21 pm

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.
Last edited by kolban on Mon Nov 06, 2017 12:40 am, edited 1 time in total.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: FreeRTOS and heap management

Postby WiFive » Sun Nov 05, 2017 10:07 pm

Yes

ESP_Sprite
Posts: 9050
Joined: Thu Nov 26, 2015 4:08 am

Re: [Answered]: FreeRTOS and heap management

Postby ESP_Sprite » Mon Nov 06, 2017 5:57 am

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.

Who is online

Users browsing this forum: No registered users and 272 guests