2025-05-17 1:04 AM
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.
This means that I cannot generate USB Device descriptors using CubeMX.
Why is this not possible yet? What are the alternatives?
Best regards,
Navin
Solved! Go to Solution.
2025-05-19 6:47 AM
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.
2025-05-18 7:31 AM
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.
2025-05-19 2:40 AM - edited 2025-05-19 2:53 AM
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.
2025-05-19 3:04 AM
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?
2025-05-19 3:14 AM
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:
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.
2025-05-19 3:46 AM
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
2025-05-19 6:19 AM
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.
2025-05-19 6:34 AM
Hi @TPITEL ,
Is there a sample example with any other RTOS?
Looking forward to trying out the example!
Best regards,
Navin
2025-05-19 6:47 AM
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.