cancel
Showing results for 
Search instead for 
Did you mean: 

Mic on Discovery

gitarpista
Associate II
Posted on May 01, 2012 at 12:37

Hi.

I want to simply read the PCM data coming from the microphone(MP45DT02), which is on the stm32f4 discovery board. I configured the I2S2_CK and I2S2_SD pins, the I2S communication, and enabled the SPI_I2S_IT_RXNE interrupt request. In the IRQHandler when i call the SPI_I2S_ReceiveData(SPI2) function, it looks like i always read ZEROS. What's the problem? Is something else is missing?

I read similiar examples, and documents but it didnt help me a lot. Please help me.

Thanx.
10 REPLIES 10
frankmeyer9
Associate II
Posted on May 05, 2012 at 17:51

The only remaining suggestion I could make is to try the audio examples of the stm32f4_fw_lib from ST. I managed to build that examples successful, at least.

The code provided from ST is supposed to work. If it doesn't, there might really be some issue with the hardware.

As my own experience shows, this is less often the case. Mostly, the problem is located in front of the keyboard... ;)