cancel
Showing results for 
Search instead for 
Did you mean: 

SAI PDM interface, MP34DT01, nucleo N657X0Q connection, audio recording

ninjatuna
Associate

I tried to connect one MP34DT01 mic to NUCLEO-N657X0Q via SAI peripheral's PDM interface. I included my project's clk configuration, peripheral configuration and main code below.

Debugged and when i only touch the mic, value is changing. HELP

Screenshot from 2025-11-08 22-38-44.png

ninjatuna_1-1762612855936.png

ninjatuna_2-1762612898657.png

 

 

1 REPLY 1
SimonePradolini
ST Employee

Hello @ninjatuna 

I'm sorry, but I don't understand your question. Can you describe your issue better?

What do you mean with “when i only touch the mic, value is changing”? Which value are you referring for? Can you get some data into your PdmBuffer? SAI callbacks are working properly?

In the meanwhile, are you aware about the X-CUBE-MEMSMIC1 package? This is the reference CUBE package for microphone configuration and audio processing. It’s a bit old and not supporting CubeMX and STM32N6, but there’s an example of a complete audio processing chain for ST MEMS microphone. It is for STM32WB55, and it’s configuring SAI peripheral and it uses the PDMFilter library to convert PDM data into PCM. Maybe having a look at this example can help you.

 

Best regards,

Simone

In order 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.