Need More SRAM

jdhuang
Posts: 1
Joined: Sun Mar 19, 2017 4:43 am

Need More SRAM

Postby jdhuang » Sun Mar 19, 2017 4:58 am

I'm working on a project by using ESP32.
Although the spec say ESP32 has 520kB sram (or 416kB), but most of the sram was used by the basic function running in sram (IRAM_ATTR).I think the free sram is around 100kB

I want o know how to reduce to sram required by the basic function such as BT/Encryption? because I don't need them in the project.

By the way,
because external sram is using the same interface type(QSPI) as external flash,
I think the external sram may not have enough speed as internal memory,
and will impact the performance of ESP32.

f.h-f.s.
Posts: 216
Joined: Thu Dec 08, 2016 2:53 pm

Re: Need More SRAM

Postby f.h-f.s. » Fri Mar 24, 2017 1:00 pm

disable the bluetooth stack in sdkconfig
I believe bt reserves 64k of mem and adds another 28k when you initialize it.

The memory is divided into 5 parts, you should have a look at the documentation.
I also was advised to look at heap_alloc_caps.c it gives a good view of what memory is where and what is disabled and why.

Goodluck =)

Who is online

Users browsing this forum: Baidu [Spider] and 121 guests