Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support record stero MIC to file currently? #27

Open
water5 opened this issue May 20, 2021 · 3 comments
Open

Support record stero MIC to file currently? #27

water5 opened this issue May 20, 2021 · 3 comments

Comments

@water5
Copy link

water5 commented May 20, 2021

I try to connect two INMP441, and change channelformat = I2S.RIGHT_LEFT, rise error below:

E (39778) I2S: Error malloc dma buffer
/home/miket/micropython_projects/esp-idf-v4-0-2-e5f754b/components/freertos/queue.c:1802 (vQueueDelete)- assert failed!
abort() was called at PC 0x40091e37 on core 0

Is it support record stero MIC to file currently?

@miketeachman
Copy link
Owner

miketeachman commented May 29, 2021

The I2S implementation works with two MICs. The error you see might be caused by the ESP32 running out of DMA capable memory when I2S is initialized. You can try to fix the problem by reducing the values of dmalen and dmacount in the I2S initialization call. That change will reduce the amount of DMA capable memory that is allocated during initialization.

@water5
Copy link
Author

water5 commented Jun 27, 2021

It works after reduce NUM_SAMPLES_IN_DMA_BUFFER, but what affect after change dmalen, dmacount?

@miketeachman
Copy link
Owner

Thanks for the followup. I'm glad you got it working. Reducing dmalen and dmacount reduces the amount of DMA capable memory that is used. I'm surprised that reducing NUM_SAMPLES_IN_DMA_BUFFER fixed the problem as the error message message you got does not suggest this fix would work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants