Is it possible to use external RAM to create tasks?

adriano.gamba
Posts: 1
Joined: Fri Jun 18, 2021 2:54 pm

Is it possible to use external RAM to create tasks?

Postby adriano.gamba » Fri Jun 18, 2021 4:35 pm

There were issues about creating tasks in external RAM in old IDF versions. Or more precisely, using the external RAM to create stack for tasks.

Someone knows if in recent IDF versions, like in the release v4.3 which contains an update in freeRTOS, is safer to do it?

Thanks.

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

Re: Is it possible to use external RAM to create tasks?

Postby ESP_Sprite » Sun Jun 20, 2021 3:08 am

That doesn't really have anything to do with the IDF version or FreeRTOS: the underlying issue is that the ESP32 ROM doesn't know about the workaround needed to access PSRAM in the non-ECO3 ESP32s; the danger is that if a task with stack in PSRAM has anything to do with a ROM routine somehow, there is the chance of PSRAM-related badness happening.

The good news is that ECO3 fixes the entire PSRAM bug, so with whatever version of ESP-IDF you have, if you are coding for that chip you should be able to create task stacks in PSRAM all you want.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 126 guests