Áudio i2s OOM

Melbylaw
Posts: 2
Joined: Fri Nov 07, 2025 9:33 am

Áudio i2s OOM

Postby Melbylaw » Fri Nov 07, 2025 9:38 am

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

Melbylaw
Posts: 2
Joined: Fri Nov 07, 2025 9:33 am

Re: Áudio i2s OOM

Postby Melbylaw » Fri Nov 07, 2025 9:39 am

I forgot to mention that I is using a esp32 wroom32, and a PCM5102A

Sprite
Espressif staff
Espressif staff
Posts: 10596
Joined: Thu Nov 26, 2015 4:08 am

Re: Áudio i2s OOM

Postby Sprite » Fri Nov 07, 2025 10:01 am

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.

Who is online

Users browsing this forum: Baidu [Spider], meta-externalagent, Semrush [Bot] and 8 guests