dmitrystu/libusb_stm32

H7?

Jaystonian opened this issue · 3 comments

Is there a reason this library never supported the H-series of STM32's? I am trying to port a project from an F4 to an H753 and this is a major component of it.

Unfortunately, I have no H7 nor F7 devices in my lab. But looking through PR's I have found confirmation about F7 support.
(#58 (comment))
Maybe it will help.

Do you have any update to support H7 (FS & HS USB 2.0) ?

Hi all, the USB FS and HS peripherals of the H750 (the MCU that I have on hand currently) is the same as the USB HS of F446 or F7. The only difference that I see is the bus that this is operating. For USB FS (USB2 HS defined by ST), instead of AHB2, it is AHB1 for H7. For my case, since I only have USB FS connected to the USB port via pin PA11 and PA12, I modify the RCC macros in usbd_stm32f446_otghs.c to match with USB2 peripheral. And with that I managed to run the cdc loop fine with H750. I think this can provide some clues for H743 & H750 support. I am not too sure if this will apply with the rest of the H7 family since there are quite many of them.