2025-01-15 07:02 AM
MCU:STM32U585xx
Env:ThreadX + USBX + FileX
I want to use USBX add my own class type, but I'm already have 3 classes, HID, MSC and CDC ACM, it means 4 classes after added my own.
In file (ux_device_descriptors.h) have a define (USBD_MAX_SUPPORTED_CLASS 3U), this value determined the (tclasslist) array size, also the framework max class, can not be changed by user define or STM32CubeMX(no option find).
If I change this define, it will be overwrite by STM32CubeMX when generated code. How can I do this correctly?