Skip to main content
Visitor II
February 7, 2022
Question

STM32H747 USB audio DataOut issue

  • February 7, 2022
  • 1 reply
  • 1313 views

Hi together,

I'm trying to make a basic USB audio speaker from STM32H747 DISCO board with Cortex-M7.

I start a new CubeMX project for this board, add in the USB_HS and audio drivers on default settings.

Once I do this, the Windows 10 machine will see the device and allow you to select it as an audio output.

I can see AUDIO_Init_HS is being called correctly.

However, USBD_AUDIO_DataOut which should be called when audio data is received from the host, is not being called at any time.

Even lower layer USBD_LL_DataOutStage and HAL layer HAL_PCD_DataOutStageCallback functions are not being called.

I study H7 USB DMA issues, and try to fix RAM and FLASH .ld files as referred links, but not work.

https://community.st.com/s/article/how-to-enable-dma-in-usb-with-stm32h7-devices

https://community.st.com/s/article/FAQ-DMA-is-not-working-on-STM32H7-devices

https://community.st.com/s/question/0D53W000015bY9fSAE/problem-with-stm32h747-hs-usb-dma

https://community.st.com/s/question/0D50X0000AAHMmPSQX/stm32h7-usb-audio-difficulties

If anyone can help this issue, that would be a great help.

Many thanks,

Jerome

* Once click "Test(T)" button, the audio stream would be suspending immediately and not able to play.

0693W00000JOnfWQAT.png

    This topic has been closed for replies.

    1 reply

    Visitor II
    February 16, 2022

    hello @JCheng​ ,

    You can refer to the following example provided under our H7 Firmware Package:

    • Path: Projects\STM32H747I-EVAL\Applications\USB_Device\Audio_Standalone

    This might help you.

    BeST Regards,

    Walid