cancel
Showing results for 
Search instead for 
Did you mean: 

Creating HID keyboard using USBX

mahirmahota
Associate III

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?

5 REPLIES 5
FBL
ST Employee

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.


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?

Grant Bt
Senior

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.

Hello @mahirmahota @Grant Bt 

You might need to look at this threadSoon, 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.