2012-05-01 03:37 AM
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.2012-05-05 08:51 AM
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... ;)