Page 1 of 1

Áudio i2s OOM

Posted: Fri Nov 07, 2025 9:38 am
by Melbylaw
I am a beginner on this scenarios, and recently a tried to use a i2s board for my work, but I always received a different error, Until I get one log the closest I get to do this work, so the speaker is making a little noise, and sometimes this noise explode, and go back to normal. Someone knows how do I fix it?

Log:
OOM: failed to allocate 147456 bytes for unnamed
OOM: failed to allocate 720896 bytes for AudioBuffer

Re: Áudio i2s OOM

Posted: Fri Nov 07, 2025 9:39 am
by Melbylaw
I forgot to mention that I is using a esp32 wroom32, and a PCM5102A

Re: Áudio i2s OOM

Posted: Fri Nov 07, 2025 10:01 am
by Sprite
You're allocating too much memory. An ESP32-Wroom generally doesn't have PSRAM, meaning you only have the 512K internal SRAM, and you're trying to allocate 720K of RAM somewhere.