Skip to main content
Graduate II
May 20, 2025
Question

STM32U5A9J-DK-FreeRTOS and X-CUBE-USB-AUDIO

  • May 20, 2025
  • 6 replies
  • 607 views

I've an STM32U5A9J-DK-FreeRTOS and I was looking to a way to stream audio from the PC to the board and vice-versa using the USB-C on board port.

I've seen that there's a CUBE extension X-CUBE-USB-AUDIO but it feels it is specifically for the STM32F7

Also, on the CubeMX, opening the .ioc file, the only USB option I'm seeing is USB_OTG_HS

So, my question is, the USB-C port on the STM32U5A9J-DK board supports it?

I'm also seeing the X-CUBE-AUDIO-KIT but again it feels compatible only for STM32H series

    This topic has been closed for replies.

    6 replies

    Technical Moderator
    May 21, 2025

    Hi @nico23 

    X-CUBE-AUDIO-KIT is not only compatible withSTM32H5, H7, H7RS  but also STM32N6. Examples provided for H5 can be ported to U5. If having issues don't hesitate to come back and ask questions. Our experts @JonathanC may help you investigate further.

    ST Employee
    May 21, 2025

    Hello,

    You can use X-CUBE-AUDIO-KIT as a starting point. It integrates tinyusb. You will see in tinyusb folder that the U5 is present.
    see Middlewares\Third_Party\tinyusb and Middlewares\Third_Party\tinyusb\hw\bsp\stm32u5
    Therefore, I think there is everything to do the porting. 
    If you keep our integration of tinyusb in X-CUBE-AUDIO-KIT  you 'll need to adapt the tusb_hw_config.h file.
    Let me know if it helps.
    Br
    Jonathan 

    December 6, 2025

    Hi, not sure if this should be a separate topic, but is there a working example of tinyusb with stm32n6, whether within the X-CUBE-AUDIO-KIT or elsewhere? I see it's supported in the tinyusb repo, with recent activity related to dwc2.

     

    Hoping to evaluate a known working reference.

    nico23Author
    Graduate II
    May 21, 2025

    Hi @JonathanC ,

    thanks a lot for the explanation. Before starting I would really like to understand if the X-CUBE-AUDIO-KIT is suitable for build some sort of "audio-card".

    So, I plug the STM32U5A9J-DK-FreeRTOS via USB-C to my Windows 10, the board is recognized as audio-device/audio-card and process my audio stream and reproduces it back on my PC. Does the X-CUBE-AUDIO-KIT manage that?

    Let me know

    ST Employee
    May 21, 2025

    yes it does. Try it and please let us know how you feel about it. 
    Enjoy!
    Jonathan 

    ST Employee
    December 8, 2025

    Hello Aureliano,

    STM32N6570-DK is part of X-CUBE-AUDIO-KIT. USB support inside X-CUBE-AUDIO-KIT is done through TinyUSB. 
    Jonathan 

    December 8, 2025

    Hi Jonathan,

     

    Yes I see the presence of tinyusb in X-CUBE-AUDIO-KIT. But in one project (Livetune) for STM32N6570-DK, tinyusb is not used.

    ST Employee
    December 8, 2025

    Here is a print screen of latest v1.4.1, tinyUsb is there for STM32N6570-DK and the USB enumerates properly. 
    What do you mean when you say it is not used? 
    You open a project and see no code or the USB is not working as expected?

    JonathanC_0-1765205803671.png