Page 1 of 1

CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP confusion

Posted: Wed Sep 27, 2023 7:48 pm
by rkit2134
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?

Re: CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP confusion

Posted: Thu Sep 28, 2023 3:44 am
by ESP_Sprite
rkit2134 wrote:
Wed Sep 27, 2023 7:48 pm
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.

Re: CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP confusion

Posted: Thu Sep 28, 2023 3:49 am
by rkit2134
Thanks!