CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP confusion

rkit2134
Posts: 6
Joined: Mon Sep 14, 2020 5:54 am

CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP confusion

Postby rkit2134 » Wed Sep 27, 2023 7:48 pm

This config option allows to add RTC fast memory region to system heap with capability similar to that of DRAM region but without DMA. This memory will be consumed first per heap initialization order by early startup services and scheduler related code. Speed wise RTC fast memory operates on APB clock and hence does not have much performance impact.
1. Does that mean that any malloc() could possibly consume RTC memory?
2. If no, does memory manger store everything related to RTC heap in RTC memory to make it persist through deep sleep?

Sprite
Espressif staff
Espressif staff
Posts: 10593
Joined: Thu Nov 26, 2015 4:08 am

Re: CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP confusion

Postby Sprite » Thu Sep 28, 2023 3:44 am

1. Does that mean that any malloc() could possibly consume RTC memory?
Yes. Note that it specifically uses *fast* RTC memory, the *slow* rtc memory is unaffected.

rkit2134
Posts: 6
Joined: Mon Sep 14, 2020 5:54 am

Re: CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP confusion

Postby rkit2134 » Thu Sep 28, 2023 3:49 am

Thanks!

Who is online

Users browsing this forum: Baidu [Spider], Qwantbot and 23 guests