Modifying IRAM size

jollytopper
Posts: 30
Joined: Mon Sep 17, 2018 6:39 am

Modifying IRAM size

Postby jollytopper » Sun Aug 15, 2021 12:57 pm

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

User avatar
fasani
Posts: 195
Joined: Wed Jan 30, 2019 12:00 pm
Location: Barcelona
Contact:

Re: Modifying IRAM size

Postby fasani » Tue Aug 17, 2021 12:04 pm

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.
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design

emp32_32
Posts: 7
Joined: Mon Jan 31, 2022 7:02 pm

Re: Modifying IRAM size

Postby emp32_32 » Sun May 22, 2022 1:07 pm

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?

Who is online

Users browsing this forum: ESP_rrtandler, mikecarlos and 119 guests