dmitrystu / libusb_stm32

Lightweight USB device Stack for STM32 microcontrollers
Apache License 2.0
707 stars 160 forks source link

H7? #66

Open Jaystonian opened 3 years ago

Jaystonian commented 3 years ago

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.

dmitrystu commented 3 years ago

Unfortunately, I have no H7 nor F7 devices in my lab. But looking through PR's I have found confirmation about F7 support. (https://github.com/dmitrystu/libusb_stm32/pull/58#issuecomment-636506336) Maybe it will help.

bvernoux commented 3 years ago

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

minh7a6 commented 2 years ago

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.