Skip to main content
Visitor II
April 27, 2024
Solved

BSP Audio STM32F756G- DISCO

  • April 27, 2024
  • 3 replies
  • 2324 views

Hello, I am trying to play wav audio files from and sd card. The reading of the data works fine but the BSP_AUDIO_OUT_Play doesnt work, It get stuck inside the Dafult handler infinite loop. 

 

 

F15javi_1-1714211145939.png

 

 

    This topic has been closed for replies.
    Best answer by F15javi

    Hello everyone, I was able to make it work. Here you have bachelor thesis Myproject from github.

    You need to modify the SAI configuration like this.

    F15javi_0-1715765442227.png

    In the sound.c from my project you have a one shot task that will read a wav file and play the audio. 

    things to take in concideration, if you are going to use RTOS, if a task with higher pririty than the one play the sound is call and start running the audio will stuck in a infinte loop waiting for the dma.

     

     

    3 replies

    Technical Moderator
    May 10, 2024

    Hello @F15javi and welcome to the community :),

    Could you please take a look at the examples in STM32CubeF7 firmware package and get inspired to configure your owner project:

    • \STM32Cube\Repository\STM32Cube_FW_F7_V1.17.1\Projects\STM32746G-Discovery\Applications\Audio\Audio_playback_and_record
    • \STM32Cube\Repository\STM32Cube_FW_F7_V1.17.1\Projects\STM32746G-Discovery\Applications\FatFs\FatFs_uSD

    Could you please check this post may help you.

    Thank you.

    Kaouthar.

    Super User
    May 10, 2024

    Hi,

     I am trying to play wav audio files from and sd card.

    Great idea...i had also, 3 y ago. :)

    Player running fine...can play wav, flac, mp3 ; from SDcard and USB stick; to ES9038 DAC via SAI ;

    now with small TFT on SPI , and ESP for wifi/web radio ;

    but i didnt use touchGFX or any BSP files , i made it myself, as i planned . :)

    So about the BSP not working...no surprise. I also had no luck with these useless "examples" ...

    Graduate II
    May 15, 2024

    @AScha.3 wrote:

    but i didnt use touchGFX or any BSP files , i made it myself, as i planned . :)

    .


    Hey, im facing the same issue. Would it be possible, to upload your code?

    F15javiAuthorAnswer
    Visitor II
    May 15, 2024

    Hello everyone, I was able to make it work. Here you have bachelor thesis Myproject from github.

    You need to modify the SAI configuration like this.

    F15javi_0-1715765442227.png

    In the sound.c from my project you have a one shot task that will read a wav file and play the audio. 

    things to take in concideration, if you are going to use RTOS, if a task with higher pririty than the one play the sound is call and start running the audio will stuck in a infinte loop waiting for the dma.