2025-11-08 6:54 AM
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
2025-11-13 12:09 AM
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