cancel
Showing results for 
Search instead for 
Did you mean: 

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

nico23
Senior III

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

8 REPLIES 8
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 III

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 

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.

JonathanC
ST Employee

Hello Aureliano,

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

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.

JonathanC
ST Employee

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