How can I use psram on esp32-s3-wroom n8r8?

I cannot use PSRAM on the ESP32-S3-WROOM-N8R8.

I configured PlatformIO as follows to use the ESP32-S3-WROOM-N8R8:

Code: Select all

[env:esp32-s3-devkitc-1]
platform = espressif32
; board = esp32-s3-devkitc-1
board = esp32-s3-devkitc1-n8r8
framework = arduino
monitor_speed = 115200

board_build.arduino.memory_type = qio_opi
board_upload.flash_size = 8MB
board_build.partitions = default_8MB.csv

build_flags = 
    -DBOARD_HAS_PSRAM
;    -mfix-esp32-psram-cache-issue

I then checked PSRAM availability with the following code:

Code: Select all

if (psramFound()) {
    Serial.println("PSRAM is enabled and available.");
} else {
    Serial.println("PSRAM is NOT available.");
}

Serial.print("ESP32 PSRAM SIZE: ");
Serial.print(ESP.getPsramSize() / 1024.0, 2);
Serial.println("KB");

Serial.print("ESP32 FREE PSRAM: ");
Serial.print(ESP.getFreePsram() / 1024.0, 2);
Serial.println("KB");

However, the serial output shows:

PSRAM is enabled and available.
PSRAM Size: 0 bytes
ESP32 FREE PSRAM: 0.00KB

The PSRAM size is reported as 0.

I suspected a faulty board, so I replaced it, but the result was the same.

With the N16R8 module, PSRAM works correctly and is detected without any issues.

I also tried configuring and testing the same setup in the Arduino IDE, but the result is identical.

I referred to the following page as well, but it did not solve the problem:
https://github.com/sivar2311/ESP32-Plat ... igurations

What should I do to use PSRAM on the ESP32-S3-WROOM-N8R8?

@ esp32_arudino
It’s probably a seppling error ?

@lastchancename :rofl:

Where did I go wrong?