2023-08-15 09:27 AM
Hello,
I followed the examples in STM32CubeH7 package and implemented USB Custom HID device with 1 interface. The device is working fine. Now, I want to implement USB Custom HID Device with two interfaces. I want my device to be listed as highlighted in attached image.
I was able to go through the posts in community but I am not clear on how to add/register second interface to a Custom HID class Device.
https://community.st.com/t5/stm32-mcu-products/hid-device-with-multiple-interfaces/td-p/534331
https://community.st.com/t5/stm32-mcu-products/stm32-hid-multiple-endpoint/td-p/439963
https://community.st.com/t5/stm32cubemx-mcu/usb-composite-device-cdc-hid/td-p/354586
What I understood from the post is, for the 2nd interface add the following in USBD_CUSTOM_HID_CfgDesc in usbd_customhid.c
Questions:
Greatly appreciate any help on this.
Thanks!
2023-09-12 11:48 AM
Hi, @KGane.1. I'm having the exactly same doubts you have, have you managed to accomplish any progress with this issue?
2023-09-26 01:46 AM
ST have failed to provide multi-device (composite) USB for their MCUs since at least 2014, which is amazing considering that USB was introduced over 20 years ago.
There is an MX plugin that provides composite support for all the standard devices and I've just installed it in the latest CubeIDE and it looks great, however, the code isn't fully up-to-date with the latest HAL H7 structure names.
If this was updated it might provide the solution that we are all looking for.