ESPHome not recognizing PSRAM on Waveshare ESP32-S3-Zero

No matter how I set up my config, I always get when booting up the device:

[15:27:20][C][psram:016]: PSRAM:
[15:27:20][C][psram:019]:   Available: NO

I want to use my board as a Media Player, and altough it is working using the arduino framework, on esp-idf doesn’t play anything, and the arduino platform only supports mp3 files or TTS, if I try to play anything else, either the board crashes, or it says that it’s playing in the logs, while it sets the speaker to idle in Home Assistant.
I think that PSRAM can help with this, but I haven’t got it to work with this esp32 board, I think it might have to be with the GPIO ports for PSRAM, but I am not sure:

In ESP32-S3-Zero, GPIO33 to GPIO37 pins are not exposed; these pins are used for Octal PSRAM.

Doesn’t matter which framework I use, or which settings I put, it always shows the PSRAM as NO

My curent config:

esphome:
  name: living-satellite
  friendly_name: Living Satellite
  min_version: 2024.6.0
  platformio_options:
    build_flags: "-DBOARD_HAS_PSRAM"
    board_build.arduino.memory_type: qio_opi
esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino
    version: latest
  flash_size: 4MB
logger:
  level: DEBUG
psram:
  mode: octal
  speed: 80MHz
api:
ota:
  - platform: esphome
    id: ota_esphome
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
i2s_audio:
  - id: i2s_bus
    i2s_bclk_pin: 8
    i2s_lrclk_pin: 9

media_player:
  - platform: i2s_audio
    name: None
    id: luxe_out
    dac_type: external
    i2s_dout_pin: 10
    mode: stereo

What documentation did you follow to arrive at the yaml?
I don’t see a size parameter anywhere? Is there a default?
Post your ESPHome compile log, and the following run log [in suitable forum format </>]

Against what waveshare says, try with:
mode: quad
Also, use IDF instead of arduino.

PSRAM doesn’t have size parameter. It’s “auto-detected”.

Thanks. Finally - after 3 days of trying, thank you very much!

[16:20:09][C][psram:016]: PSRAM:
[16:20:09][C][psram:019]:   Available: YES
[16:20:09][C][psram:021]:   Size: 2048 KB

You’re welcome.

1 Like