Skip to main content
Explorer
May 25, 2025
Question

nucleo-H755ZIQ mouse+keyboard simultaneous HID

  • May 25, 2025
  • 2 replies
  • 455 views

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

 

    This topic has been closed for replies.

    2 replies

    Super User
    May 25, 2025

    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.

     

    Technical Moderator
    May 26, 2025

    Hi @stefanoma76 

    This thread should be helpful.