cancel
Showing results for 
Search instead for 
Did you mean: 

USBX on STM32WBA6

NRedd.2
Associate III

Hello,

On CubeMX v6.14.1 and X-CUBE-AZRTOS-WB v6.2.0, I am not able to add a USB record/playback device.

NRedd2_0-1747468885037.png

 

This means that I cannot generate USB Device descriptors using CubeMX. 

Why is this not possible yet? What are the alternatives?

Best regards,

Navin

 

1 ACCEPTED SOLUTION

Accepted Solutions

We only deliver BLE Audio sample applications on bare-metal. If you are looking for a ThreadX sample application that uses USBX, you can use the Ux_Device_CDC_ACM app for NUCLEO-WBA65RI in the STM32CubeWBA firmware release. You can also find a FreeRTOS BLE example for NUCLEO-WBA55CG on GitHub Hotspot if you prefer another OS: https://github.com/stm32-hotspot/STM32WBA-BLE-HeartRate-FreeRTOS.

Best Regards,
Tom.

View solution in original post

8 REPLIES 8
NRedd.2
Associate III

Is there a planned upgrade for this package? Looks like X-Cube-AZRTOS-H7 is on v6.4.0 and this package is lagging behind.

FBL
ST Employee

Hi @NRedd.2 

Working on STM32WBA6, you should not point on X CUBE WB. Internal ticket is submitted to dedicated team (210018) 

Given that there haven't been any significant updates associated with the X-CUBE package, or directly impacting the functionality, it's unlikely that an upgrade will occur unless a major issue arises. Did you track any related issues?

You can manually select the Azure RTOS version without using CubeMX, as each X-CUBE package is associated with a specific Azure version by dev team.

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.


NRedd.2
Associate III

Hi @FBL,

Thank you for your response!

 

Is it not possible to add ThreadX using CubeMX anymore for STM32WBA6?

Even when I select manually, I do not see a recording or playback option. 

An option to select ThreadX is grayed out. What is your suggestion regrading manually selecting AzureRTOS version? It is not clear to me. 

 

May I ask why I cannot use X-CUBE-AZRTOS-WB here? Can you guide me on the workflow for WBA6 please?

NRedd2_1-1747648764260.png

NRedd2_2-1747648831082.png

 

 

TPITEL
ST Employee

Hi @NRedd.2,

A new GitHub Hotspot repository containing a USB Audio examples with USBX in standalone mode (without Azure RTOS) using the STM32WBA6 is currently under validation and should be released in a few weeks. It will include:

  • A USB Audio Playback project on STM32WBA65I-DK1, which plays audio from a USB host on the discovery kit's jack output
  • A USB Audio + BLE Auracast project on STM32WBA65I-DK1 and NUCLEO-WBA65RI, which plays audio from a USB host on a Bluetooth Auracast stream

Although it will not contain any USB Audio Record examples, you should be able to use these projects' USB descriptors as a base to build your own application.

Best Regards,

Tom.

Hi @TPITEL,

Thank you very much for your quick response!


A USB Audio + BLE Auracast project on STM32WBA65I-DK1 and NUCLEO-WBA65RI, which plays audio from a USB host on a Bluetooth Auracast stream

This is indeed my goal! 

But I also want to use RTOS with it, preferably ThreadX due to USBX dependency. I am aware that there is a standalone mode, for such a complex application I would prefer RTOS instead of bare-metal.

Is that a possibility in CubeMX, or should I configure it manually? How can I track the status, when the project will be available?

 

Although it will not contain any USB Audio Record examples, you should be able to use these projects' USB descriptors as a base to build your own application.

 

 I have achieved this with Nucelo-H723 already, using an example project from NXP. The MEMS PDM mic in the project uses DFSDM peripheral to convert PDM to PCM. Hopefully, someday I will make it open source!

 

Best regards,

Navin

 

We never tried BLE Audio apps with ThreadX but it should be feasible. However I'm not sure CubeMX will correctly generate a ThreadX + BLE Audio app. It will probably be easier to start from an existing BLE Audio app (or from the future USB Audio + Auracast app) and integrate ThreadX.

According to the current planning, the STM32WBA6 USB Project should release 2 or 3 weeks from now, but that will depend on the validation process.

Best Regards,

Tom.

Hi @TPITEL ,

Is there a sample example with any other RTOS?

Looking forward to trying out the example!

Best regards,

Navin

We only deliver BLE Audio sample applications on bare-metal. If you are looking for a ThreadX sample application that uses USBX, you can use the Ux_Device_CDC_ACM app for NUCLEO-WBA65RI in the STM32CubeWBA firmware release. You can also find a FreeRTOS BLE example for NUCLEO-WBA55CG on GitHub Hotspot if you prefer another OS: https://github.com/stm32-hotspot/STM32WBA-BLE-HeartRate-FreeRTOS.

Best Regards,
Tom.