espressif/arduino-esp32

How to enable CONFIG_SPIRAM_XIP_FROM_PSRAM and other PSRAM options?

Closed this issue · 2 comments

Related area

PSRAM

Hardware specification

C5, S3

Is your feature request related to a problem?

Hi,
I would like to ask about possibilty of using flags like CONFIG_SPIRAM_XIP_FROM_PSRAM, CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY, CONFIG_SPIRAM_ALLOW_NOINIT_SEG_EXTERNAL_MEMORY in aArduino Core projects?
Does it really requires recompiling IDF?

Regards,
Lucas

Describe the solution you'd like

Add support for PSRAM flags.

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

Does it really requires recompiling IDF?

Yes, ESP32 Arduino has all the IDF components precompiled based on a specific sdkconfig setting.
It is done using a tool called ESP32 Arduino Lib Builder
The main script build.sh --help prints its options and usage. It is possible to add CONFIG_SPIRAM_XIP_FROM_PSRAM=y to the configuration modifying the content of the generic sdkconfig
https://docs.espressif.com/projects/arduino-esp32/en/latest/lib_builder.html

There is a second way to enable CONFIG_SPIRAM_XIP_FROM_PSRAM which is by building the Arduino Application using Arduino as an IDF Component. In that case, the sketch and the Arduno Core code are part of a regular IDF Project and it is possible to use idf.py menuconfig to browse and change any sdkconfig setting.
https://docs.espressif.com/projects/arduino-esp32/en/latest/esp-idf_component.html

Dear @lsroka76

According to the comment above this issue is resolved. I close this case for now.

In case you need any further assistance, please feel free to reopen the issue or create a new one.