cancel
Showing results for 
Search instead for 
Did you mean: 

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

nico23
Senior II

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

4 REPLIES 4
FBL
ST Employee

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.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


JonathanC
ST Employee

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 

nico23
Senior II

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

JonathanC
ST Employee

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