Hello @Kk ,
You can get inspired from one of the CustomHID_Standalone example within STM32CubeH7 MCU package:
STM32Cube_FW_H7_V1.9.0\Projects\STM32H747I-DISCO\Applications\USB_Device\CustomHID_Standalone
STM32Cube_FW_H7_V1.9.0\Projects\STM32H747I-EVAL\Applications\USB_Device\CustomHID_Standalone
STM32Cube_FW_H7_V1.9.0\Projects\STM32H743I-EVAL\Applications\USB_Device\CustomHID_Standalone
Any CustomHID example from STM32H7 can be used as reference, and it will help you to develop the USB device application.
Hope this helps !
Imen
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks