How to increase IRAM size

ravi.ramani
Posts: 1
Joined: Thu Mar 05, 2020 1:10 pm

How to increase IRAM size

Postby ravi.ramani » Wed Mar 11, 2020 12:50 pm

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 400 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?

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

Re: How to increase IRAM size

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

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.

Who is online

Users browsing this forum: No registered users and 75 guests