-
I apologize for the off-topic question, as this doesn't relate directly to this library, but @mrcodetastic you clearly have experience with DMA and dealing with internal RAM issues, and I'm hoping you can help me, as other forums (and google searches and even ChatGPT) I've tried have so far turned up nothing useful. Context: I wrote some PDM input (audio input) code that was working fine. Then while troubleshooting my ESP32-HUB75-MatrixPanel-DMA/WiFi issues, I noticed that the Arduino IDE was adding include paths for FreeRTOS libraries for other platforms. I solved that by simply removing those libraries from my Arduino setup. Now, when I run my PDM code, ESP-IDF gives me some errors during setup:
This is happening in the I appreciate any insight you might have. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Is your callback function definition prefixed with |
Beta Was this translation helpful? Give feedback.
-
Yeah, it's not my callback. It's one down inside I2S (it sets up a callback with GDMA). Turns out, in arduino-esp32 3.1.2 - 3.2.0-rc1, they have GDMA IRAM SAFE set, but not I2S IRAM SAFE, and that causes I2S to allocate its callback context in PSRAM, but GDMA requires it in IRAM. Allegedly will be fixed in RC2 out today. |
Beta Was this translation helpful? Give feedback.
Yeah, it's not my callback. It's one down inside I2S (it sets up a callback with GDMA). Turns out, in arduino-esp32 3.1.2 - 3.2.0-rc1, they have GDMA IRAM SAFE set, but not I2S IRAM SAFE, and that causes I2S to allocate its callback context in PSRAM, but GDMA requires it in IRAM. Allegedly will be fixed in RC2 out today.