justLV / onju-voice

A hackable AI home assistant platform
MIT License
1.29k stars 69 forks source link

PSRAM not available #62

Open VivantSenior opened 3 months ago

VivantSenior commented 3 months ago

Hi,

I ordered 5 pcbs with already soldered components. Out of these 5 pcbs one reports 0B PSRAM available. I'm using ESPHome with @tetele's MicroWakeWord configuration.

Configuration related to the board itself and PSRAM:

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf
    version: recommended
    sdkconfig_options:
      CONFIG_ESP32_S3_BOX_BOARD: "y"

psram:
  mode: octal
  speed: 80MHz

After upload not much RAM is used:

RAM:   [=         ]  11.3% (used 36960 bytes from 327680 bytes)
Flash: [========  ]  82.9% (used 1521433 bytes from 1835008 bytes)

But when enabling micro wake word I receive an error:

[C][psram:020]: PSRAM:
[C][psram:021]:   Available: NO
...
...
[E][esp-idf:000]: E (20485) AUDIO_PIPELINE: audio_pipeline.c:255 (audio_pipeline_init): Memory exhausted

When I enabled debug I can see that there is 0B PSRAM available: Bedroom VA PSRAM

This is the problematic board: PCB_no psram

Other PCB reports much more available PSRAM and even 2 times more free heap:

[C][psram:020]: PSRAM:
[C][psram:021]:   Available: YES
[C][psram:024]:   Size: 8191 KB

Kitchen VA PSRAM 8 291 859 bytes is ~8MB which is accurate for ESP32-S3R8 board.

ESPHome config for both boards is exactly the same. What can be a reason for this issue?

jherby2k commented 2 months ago

I don't have this problem. maybe something with your board specifically? Got a better pic of that chip?

[10:26:47][C][psram:020]: PSRAM:
[10:26:47][C][psram:021]:   Available: YES
[10:26:47][C][psram:024]:   Size: 8191 KB
VivantSenior commented 2 months ago

@jherby2k, I made two pictures. Please see them below. IMG_1500-min

IMG_1501-min