mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 17:49:10 -04:00
Since DRAM and IRAM are superposed on esp32c6 it is not necessary to convert a freshly allocated DRAM addr to its IRAM equivalent when MALLOC_CAP_EXEC is passed to heap_caps_malloc(). Instead, proceed with a default allocation since the address returned by multi_heap_malloc() already belongs to the IRAM region. Applies for esp32c6 and every boards with superposed DRAM and IRAM addresses.