Page 1 of 1

How to modify IRAM size

Posted: Thu Jun 18, 2020 2:00 pm
by ronnie.zyd
I tried to modify esp32.ld as below
/* IRAM for PRO cpu. Not sure if happy with this, this is MMU area... */
iram0_0_seg (RX) : org = 0x40080000, len = 0x10000


and macro in soc.h
#define SOC_IRAM_HIGH 0x400A0000
#define SOC_DIRAM_IRAM_LOW 0x400A0000
but it doesn't work. I use idf.py size-components to check the total size of IRAM, but it has no change.
Could anyone help me? Thanks a lot!

Re: How to modify IRAM size

Posted: Fri Jun 19, 2020 2:34 am
by ronnie.zyd
Remove build/ and use idf.py build to rebuild, it worked.

Re: How to modify IRAM size

Posted: Mon Jan 11, 2021 12:11 am
by ashrafkamel5
Hi @ronnie.zyd
I am facing a similar problem but at earlier stage.
I don't know what to change to be able to modify the DRAM Segments and get more RAM in the static allocation segment.
but you seemed to manage to do so.
Can you offer some help?
How did you know what files and what values to change?