2023-02-07 03:23 AM
Hi,
I'm trying to output sound on my touchGFX application on STM32H747I-DISCO.
I used the BSP example from STM32Cube_FW_H7_v1.11 ( wich work fine) to implement the same process in a thread in my main code.
So as a first step, i expect to loop the example .bin sound of the exemple while my touchGFX app is running.
-Initialisation of the SAI through BSP_AUDIO_OUT_Init() seems to work fine and return no error.
-So i use ST-LINK utility to flash the .bin file.
My probleme is, when calling BSP_AUDIO_OUT_Play(), a noise is loop on the jack output, and the debug enter in a infinite loop due to Unexpected Interrupt, so the TouchGFX app is block.
My guess would be that i didn't register well the callback fonction of the DMA used to fill the SAI, so I tried to implement BSP_AUDIO_OUT_TransferComplete_CallBack(), BSP_AUDIO_OUT_HalfTransfer_CallBack() and DMA1_Stream0_IRQHandler(), but none of them seems to be called when using debugger.
Would you have an advice or a hint ?
Thanks,
PE