2023-08-08 12:19 AM - edited 2023-08-08 12:20 AM
STM32CubeIDE, Version: 1.13.1, Build: 17479_20230728_0839 (UTC)
STM32Cube MCU Package for STM32U5 Series, Version: 1.3.0
I am using USBX with enabled USB Device FS and AUDIO Device Class FS.
I found following problems and issues:
Thanks
2023-08-08 01:40 AM
Hi @Despair1337 , Audio class 1.0 and 2.0 is supported by USBX stack but Code generation and Code init of those are not yet implemented in CubeMx you can refer to Microsoft AzureRTOS documentation to develop your Owen application : https://learn.microsoft.com/en-us/azure/rtos/usbx/usbx-device-stack-supplemental-2#usb-device-audio-class
2023-08-08 01:44 AM - edited 2023-08-08 03:19 AM
Dear @mohamed.ayed , thank you for fast reply.
Yes, I am aware that the code generation for Audio is not implemented in STM32CubeMX, I integrated it by myself successfully.
Although even it is not officially implemented, I think that CubeMX should generate at least enum entries, so I can use it to provide own implementation. Also please note, that point (3) and (4) is general bug in USBX file templates, and they should be fixed, as user code are lost.
Thanks!
2023-08-16 10:37 PM
Dear @mohamed.ayed ,
please, would it be possible to report those bugs (mainly 3. and 4.) to CubeMX team, so user code areas can be fixed? Because of reported issues, CubeMX always clears our code, which we need to manually restore via git.
Thanks
2024-03-06 08:18 PM
I also had your problem (3). I fixed it by modifying ux_device_descriptors_c.ftl, adding the 'BEGIN' and 'END' keywords to the USER CODE blocks that I care about. That fixed my problem, and I noticed there were several other blocks with the same error that I don't care about (yet):
Device_Framework1
String_Framework0
String_Framework1
HidReportDesc0
... and probably more. Can't be bothered searching. A smart person at ST should go through the template and fix it up.
2024-05-04 11:10 PM
The issue is still present (STM32CubeIDE 1.15.1) and the latest STM32 platform.