Skip to main content
June1
Associate II
September 8, 2020
Question

There is no CODEC interface in STm32cube_fW_mp1_v1.2.0 package. How can I do audio recording on STM32mp157A-DK1 for CM4 core with SAI ? Please help

  • September 8, 2020
  • 3 replies
  • 941 views

..

This topic has been closed for replies.

3 replies

Olivier GALLIEN
ST Technical Moderator
September 8, 2020

Hi @浩 张​  ( nice nickname ! ;) )

Please refer to our wiki documentation here :

https://wiki.st.com/stm32mpu/wiki/How_to_record_audio

I'm sure it will help

Olivier

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.
June1
June1Author
Associate II
September 8, 2020

Hi @Olivier GALLIEN ,

Thanks for your response.

Now I have already realized the recording function using alsa-lib on Cortex-A7. But on Cortex-M4, I still don't know how to configure SAI2 /CODEC(cs42l51)/I2C1. Even more, I can't find the codec interface in STM32Cube_FW_MP1_V1.2.0.

How can I get the codec APIs? And is there an example like 32L496GDISCOVERY/Demonstrations/Modules/audio_recorder can be shared?

June1
June1Author
Associate II
September 9, 2020

Whether it just can be realized on OpenSTLinux ? Also, I cant find the FatFs Middlewares. Does it support on Cortex-M4?