AnsweredAssumed Answered

DISCO_F746NG - using BSP_AUDIO on mbed

Question asked by clarke.brendan on Nov 30, 2015
Latest reply on Sep 16, 2016 by Nesrine M
Hi all,
I'm trying to get the BSP audio drivers working with the mbed Arm online compiler. ST has posted a numbed of the drivers for the new F7 discovery board here, but has not included drivers for the SAI audio device yet. They are however, available from
STM32Cube_FW_F7 (

I've tried to add those files to the library (stm32746g_discovery_audio.c/h and wm8994, Common/audio.h from 'Components'). I can get BSP_AUDIO_OUT_Init() and BSP_AUDIO_OUT_Play() to work, and the board generates a tone, but no further code is executed. To keep processing the buffer, it seems (from the Cube examples) like 'BSP_AUDIO_OUT_XXX_CallBack' must be defined, and will then be triggered by interrupts from the buffer read states, allowing new data to be loaded to the buffer.

I have defined these, but they are never called, nor are the functions that contain them - the 'HAL_SAI_Tx{etc}Callback' defined within the 2 driver files (stm32746g_discovery_audio.c,.h) - ever called. Do the interrupts need to be attached manually? It seems like HAL_SAI and the associated interrupts should be configured with BSP_AUDIO_OUT_Init(), which runs without errors.