cancel
Showing results for 
Search instead for 
Did you mean: 

DMIC and PDM to PCM Problem

LKuo.2
Associate

Hi everyone, I have some question about DMIC and PDM to PCM audio output.

My Board is STM32H735-dk board, and scenario is below:

  1. Using on board MP34DT01TR-M DMIC through PDM interface to SAI4 input PDM data (16kHz input, 1 channel)
  2. PDM data to PCM data
  3. Codec Output (16kHz output, 1 channel)

Q1: I have already successful get DMIC data from my SAI_RX_BUFFER, but how to check the data correctly?

Q2: Use PDM2PCM function then DMA to Codec but only noise output.

Codec setting already can play audio file to headphone, and DMIC setting had follow spec, so I have no ideal where's incomplete.

2 REPLIES 2

Hello @LKuo.2​ ,

You can refer to the following BSP example on the audio recording part that is provided under the CubeFW H7:

  • Path: Projects\STM32H747I-EVAL\Examples\BSP

This may help you.

Best Regards,

Walid

Hi Walid,

I rebuild all setting but my SAI_RX_BUFFER has no data, sai callback have interrupt, but still no data. Any idea?

BR,

Leon Kuo