2025-07-10 2:10 PM
Hi everyone,
I'm working on programming the B-U585I-IOT02A board for my Master's thesis in Computer Engineering. My goal is to continuously record audio samples using the onboard microphone, then convert them into spectrograms and analyze them using AI.
Unfortunately, I'm having trouble setting up the microphone. I can't find any reference projects online for audio recording on this board, and I'm currently stuck.
My original plan was to use DMA with its callbacks (HalfTransfer, TransferComplete), but I'm not sure how to properly configure the microphone or which peripheral I should use to capture the audio: MDF1, ADF1, or SAI1?
How do I then link DMA to one of these peripherals to trigger the appropriate callbacks? Which pins should I enable in the .ioc file, and in which mode, to make everything work correctly?
Any suggestions or references to similar projects would be greatly appreciated.
Thanks in advance!