Question
CubeMX - USBX - Broken user code blocks and missing enum definitions
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:
- USBX/App/ux_device_descriptors.h: Even when AUDIO Device Class is enabled, the CLASS_TYPE_AUDIO enum entry is not added into USBD_CompositeClassTypeDef enum definition. Since there are not USER CODE blocks, I cannot add this enum entry, without it being removed every IOC regeneration.
- USBX/App/ux_device_descriptors.c: Even when AUDIO Device Class is enabled, the CLASS_TYPE_AUDIO enum entry is not added into UserClassInstance array. Since there are not USER CODE blocks, I cannot add this enum entry, without it being removed every IOC regeneration.
- USBX/App/ux_device_descriptors.c: The user code block USER CODE FrameWork_AddToConfDesc_1 doesn't work properly (during IOC regeneration, the code inside of this block is always removed). This happens probably because the closing comment miss END keyword

- USBX/App/app_usbx_device.c: There is missing USER CODE block in function MX_USBX_Device_Init, before tx_thread_create call. Thus, when I register other class via ux_device_stack_class_register before creating the final usb device thread (in my case, registering audio class), my changes are always erased during IOC regeneration, as user code block is missing there.
Thanks
