How to use internal PSRAM as IRAM?

sjk910330
Posts: 4
Joined: Sun Feb 18, 2024 8:07 pm

How to use internal PSRAM as IRAM?

Postby sjk910330 » Thu Feb 22, 2024 4:04 am

Hello,
There are some ESP32 products which have internal PSRAM, like PICO-V3-02.
Do I need to do something at menuconfig to use this PSRAM as IRAM?

TLTR;
As specific, I want to use ESP32-WROOM as bluetooth classic + low energy module while any other functions(like WIFI) are disabled.
I visited ESP-AT document and enable BT at command, and built the ESP32-AT firmware,
but it always showed me an error at very last and said there is no sufficient IRAM(overflow occurs).

So what I really curios is whether PICO-V3-02 can run ESP-AT firmware with its own internal PSRAM.
Thank you in advance.

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: How to use internal PSRAM as IRAM?

Postby ESP_Sprite » Thu Feb 22, 2024 2:27 pm

It would not make sense. Code is put into IRAM mostly because it's a. faster than flash and b. is accessible when the cache goes away. Internal PSRAM has the same disadvantages as flash, so it wouldn't give you anything extra.

For your issue, you could go into menuconfig and see if there's options enabled where code is put into IRAM because of speed. If you disable these options, the code will be in flash instead, freeing up some IRAM.

Who is online

Users browsing this forum: Gaston1980, Majestic-12 [Bot] and 395 guests