2025-05-25 3:37 AM - last edited on 2025-05-26 2:43 AM by mƎALLEm
Dear All,
I'm trying to develop a USB HID mouse and keyboard both on the same USB connection for the nucleo-H755ZIQ board. I mean a complete project (from configuration in CubeMx) and software implementation for CubeIDE.
On the net I've tryed some example to emulate mouse and keyboard separately (one a time) and they work. But I'm not able to implement mouse and keyboard simultaneously on the same single USB connection.
My goal, at the moment, is software in which if I press the user button could move the mouse pointer and send a character as a keyboard.
Could somebody help me?
Best regards
2025-05-25 12:33 PM
This can be done in two ways: (1) composite device with two HID functions, (2) one HID device with two "top-level collections. Method (2) needs less resources (only one USB interface and one set of end points) and should work with all decent hosts (Linux, Windows, MAC).
CubeMX generates a limited HID device code that you can improve, based either on the "legacy" ST USB device library or UsbX.
Here you can find help with understanding the examples and coding.
2025-05-26 2:30 AM
Hi @stefanoma76
This thread should be helpful.
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.