Page 1 of 1

How to increase IRAM size

Posted: Wed Mar 11, 2020 12:50 pm
by ravi.ramani
Hi,

I am using ESP32-WROVER-B module.
Application is using Bluetooth, WiFi and Ethernet functionalities along with AWS cloud SDK.

Now, my application IRAM size is used 96.3% in Release mode as shown below.
And for Debug mode it exceeds and shows error.
Also, we have enabled possible IRAM optimization options from make menuconfig.
Find the attched sdkconfig for SRAM and IRAM configuration.
sdkconfig.txt
sdkconfig
(20.6 KiB) Downloaded 399 times
Total size:
=====================================================
DRAM .data size: 15564 bytes
DRAM .bss size: 11648 bytes
Used static DRAM: 27212 bytes ( 97368 available, 21.8% used)
Used static IRAM: 126197 bytes ( 4875 available, 96.3% used)
Flash code: 1048066 bytes
Flash rodata: 201784 bytes
Total image size:~1391611 bytes (.bin may be padded larger)
=====================================================

Queries:
As per reference manual, Internal SRAM 0 and Internal SRAM 1 can be used for instruction bus.
Right now, IRAM is using 128k of SRAM0 section.
So, can we use SRAM1 to increase IRAM size?
OR is there any other solution to increase IRAM Size?
Will IRAM size increase on run time OR is there any chance to crash the application due to this?

Re: How to increase IRAM size

Posted: Sun May 22, 2022 1:16 pm
by emp32_32
Hello ravi.ramani,

Did you receive any answer to your question, or find a solution in your own testing?

Specifically with regard to using SRAM1 for IRAM, I see this post: https://www.esp32.com/viewtopic.php?t=13996 , but no response as of yet.