cancel
Showing results for 
Search instead for 
Did you mean: 

Support to find dB from digital MEMS mic using STM32MP157C-DK2

NPanc.1
Associate II

Hello ST Support team,

I have MP23DB01HP digital MEMS MIC sensor which has PDM output. I was gone through "AN5027" application note.

I want to connect this digital MIC with DK2 to find dB data from it.

suggest me steps to connect and run mic on DK2 board.

Thanks in advance,

Nikunj

1 REPLY 1
Christophe Guibout
ST Employee

Hi @NPanc.1​ ,

On DK2, It is possible to connect digital MEMS MIC to the 40pins connector (SPI5 and SAI2 are available).

Nevertheless, the recommanded way to connect digital MEMS MIC is using DFSDM IP, but this is only available on EV1 board with its dedicated connector (connector 2 in the picture).

I woudl suggest the following steps :

  • If you want to use SAI2, you will have to disconnect embedded audio codec (0 ohm to solder/unsolder). SPI5 only needs to be enabled in the DT.
  • Update device tree (SPI5 or SAI2) : AN5027 explains how to configure, And you can use CubeMx to build the DT.
  • update /etc/asound.conf accordingly

BR,

Christophe

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.