2025-02-20 07:43 AM
I'm trying to experiment with a Custom HID USB demo.
I'm following the instructions at:
How to implement a USB device custom HID class on ... - STMicroelectronics Community
Part way down it suggests:
However when I got to Middleware I don't have USB_DEVICE (I just have USBX)
I can't see a way to add the USB_DEVICE Package to to the middleware list.
Help (please)?
2025-02-20 07:53 AM
Ok,
I've come across the post:
USB_DEVICE missing from CubeMX - STMicroelectronics Community
This suggests the instructions linked in the top post are out of date. Is there an up to date guide/tutorial for implementing a custom USB HID device on a Dev Kit/Demo Board?
2025-02-20 07:53 AM
Hi @BenG
STM32H5 natively supports USBX not legacy library. So CubeMX doesn't support ST classic library. Check this repository for ready to use examples based on classic middleware over H5.
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.
2025-02-20 07:57 AM
Thanks @FBL
I'm not too bothered (at this stage) whether I use the classic library or USBX (as frankly, I don't yet have enough knowledge to have a preference).
Are there any guides/tutorials/demos on using USBX ?
2025-02-20 08:06 AM
I've come across this one:
How to implement the USB host in STM32 using the A... - STMicroelectronics Community
I'll give it a try.
2025-02-20 08:50 AM
That's regrading on OTG Host, I'm after something much more simpler to demo/experiment with.
2025-02-20 11:34 AM
Hi @BenG
> I'm not too bothered (at this stage) whether I use the classic library or USBX (as frankly, I don't yet have enough knowledge to have a preference).
Both stacks are supported on this product, if you would like to use CubeMX, you need to use USBX stack.
I'd rather suggest this article How to implement USBX in standalone mode - STMicroelectronics Community
I hope this helps!
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.