STM32N6 Nucleo Board MDF Issue - Mics records noise
- August 2, 2026
- 8 replies
- 113 views
Hi ST Community,
I’ve connected a MP23DB01HPTR MEM MIC to the STM32N6 Nucleo’s MDF1_SDI3 and MDF1_CCK0 and here is my connection.

I am using“ Projects/STM32N6570-DK/Examples/MDF/MDF_AudioRecorder” as a reference and according to the information on Github, the CCK0 should be 2.048 MHz

Which I am measuring almost the same frequency on the CCK0 pin of my board : 2.03393 MHz

In my project, instead of sending the data to SAI, I am sending the data to USART 1, which I’ve set the BaudRate to 921600.
My code has three callback functions:
- void HAL_MDF_AcqHalfCpltCallback(MDF_HandleTypeDef *hmdf)
- void HAL_MDF_AcqCpltCallback(MDF_HandleTypeDef *hmdf)
- void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
The USART 1 is sending the first half of the MDF buffer when the AcqHalfCpltCallback is triggered, and then the second half when the AcqCpltCallback is triggered.
on my computer I wrote a python script where it is receiving the audio raw data via serial port and save it into a WAV file. However, when I play the audio on my computer , I could here a lot of noise.
I’ve attached my code, .ioc file and an sample of the audio that I’ve recorded.
Can you please help review and let me know what the issue is ?
