Page 1 of 1

Modifying IRAM size

Posted: Sun Aug 15, 2021 12:57 pm
by jollytopper
IRAM usage is too high, primarily because of bluetooth. Is there a way I can use CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH despite needing to use esp-idf 4.1 (because of esp-adf?)

I've taken a look at https://docs.espressif.com/projects/esp ... usage.html already and determined that I can't take the performance hit to Wifi, esp_events, and spi master by placing some of their functionality in flash.

Is it safe to modify IRAM addresses in esp32.ld and soc.h by taking some away from DRAM? posting.php?mode=edit&f=13&p=81910#tabs

Re: Modifying IRAM size

Posted: Tue Aug 17, 2021 12:04 pm
by fasani
I also had this problem when compiling components that use some IRAM and also adding RainMaker (Which also adds Bluetooth libraries and such)
Only solution I found is to move what is possible to the SPI external RAM detailed in the manual page you mentioned in the:
CONFIG_SPIRAM_* (menuconfig options) that of course if you are using an ESP32 that has PSRAM.

I guess as you mentioned is also possible to disable part of the WiFi option also there but that comes with a performance hit.

Re: Modifying IRAM size

Posted: Sun May 22, 2022 1:07 pm
by emp32_32
Hello jollytopper,

Did you ever receive an answer to your question "Is it safe to modify IRAM addresses in esp32.ld and soc.h by taking some away from DRAM?" ?

Or did you find a solution in your own testing?