Skip to main content
Visitor II
October 20, 2020
Question

How to implement HID + CDC?

  • October 20, 2020
  • 1 reply
  • 963 views

Hello, I am actually trying to implement HID + CDC in my project, I found nothing interesting on Google.

Is someone know something about it or have a working example? It would help me a lot, thank you in advance.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    October 20, 2020

    Hello @HGaut.1​ ,

    You can follow the instructions from the STM32 USB training:

    I recommend you to refer to the "STM32Cube USB device library" User manual UM173 and UM1720.

    You can refer to the CDC_Standalone and HID projects available in the STM32Cube firmware related to your device.

    The ready-to-use application can help you as an implementation example. 

    Hope this helpful for you.

    Imen

    HGaut.1Author
    Visitor II
    October 21, 2020

    Thank you for your reply Imen.

    What I want to do is implement both HID + CDC in 1 project to be able to send keyboard key through HID and data through COM PORT. (having a HID and COM PORT keyboard is my goal)

    I tried on my own and with help on Google, but I found nothing interesting.