cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32F407] CS43L22 problem!

hukhongcongtu26111993
Associate II
Posted on December 16, 2017 at 02:40

Hello!

I am working with CS43L22 on STM32F407VG Discovery Board.

I use Audio_playback_and_record example to play .wav file.

If i use headphone, I can get good sound. But If I use speaker I get small sound.

Is that normal?

#audio #cs43l22
7 REPLIES 7
Imen.D
ST Employee
Posted on December 18, 2017 at 15:14

Hello

quoc.anh

,

This can be caused by software configuration issue.

Weneed few more details on your software configuration about used speaker output.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on December 18, 2017 at 15:34

Aren't the speaker outputs of CS43L22 unconnected on the STM32F407VG Discovery Board?

JW

Posted on December 19, 2017 at 05:29

Yes. I was consider STM32F407 Discovery schematic and CS43L22 Datasheet. You are right! Thanks you for your confirmation.

Posted on December 19, 2017 at 05:37

Now I can play wav file into my micro sd card. But I only can play 16bit wav file. I want to play 8bit wav file. How can I do that?

 If you need, I can upload my project ! I expect that you can help me !

Posted on December 19, 2017 at 08:04

I am not going to review your project and it's unlikely anybody will, but generally, you read 8-bit samples instead of 16-bit from the file, and then you have to shift them to the left by 8 ( << 😎 before using them just like in the 16-bit case.

JW

Posted on December 19, 2017 at 10:11

Hello

quoc.anh

,

As mentioned in the AN4229:'The vocoder firmware package is provided upon request, for more details please contact your local ST sales representative.'

So, you can contact a local ST sales representative from the list indicated at this

http://www.st.com/content/st_com/en/contact-us.html

.

Best Regards,

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen