Skip to main content
Associate
July 10, 2025
Question

Audio Recording on b-u585i-iot02a

  • July 10, 2025
  • 1 reply
  • 257 views

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!

1 reply

Amel NASRI
Technical Moderator
July 14, 2025

Hi @lucadelf ,

As a start point, you can refer to the example STM32CubeU5/Projects/STM32U575I-EV/Examples/MDF/ADF_AudioRecorder.

This example includes an .ioc file, making it easy to import the project to your board. To achieve this, follow steps 1 to 4 as described in the article How to import STM32CubeWL repository projects onto different packages.

-Amel

 
 
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.