2025-07-08 4:06 PM - edited 2025-07-08 4:07 PM
I'm trying to generate an HID keyboard through CubeMX for USBX. I'm using an F411CE based board so picked the appropriate software pack for that. However, when I go to pick to pick components, I can only see the generic HID pack instead of separate keyboard and mouse packs as I've seen here before. I'd usually be fine with this and add the keyboard files in myself but this generic HID pack is based on a mouse implementation and adds a lot of unnecessary bloat to the stack. Is there a way to generate the files without the ux_device_mouse files?
2025-07-14 9:43 AM
Hi @mahirmahota
X-Cube-Azrtos-F4 is an old pack. You might find some differences in CubeMX implementation.
An internal ticket is submitted to dedicated team to separate USBX components in code generation (214068).
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-07-15 9:25 AM
2025-07-15 9:29 AM
Hi!
I'd prefer to use USBX since I'm implementing ThreadX for the rest of my application. Is the RTOS implementation outdated after Microsoft ended support and is the classic USB class back to being the preferred method of doing this now?
2025-07-16 7:32 AM
Understood and good question. I was wondering myself if STM were going to rework all the ThreadX examples with FreeRTOS. It's definitely an about-face.
2025-07-17 2:32 AM
Hello @mahirmahota @Grant Bt
You might need to look at this thread. Soon, we will provide example using FreeRTOS as the main kernel, integrating it with USBX.
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.