Using both HS and FS on an STM32H7R/STM32H7S with internal HS PHY; is this possible, could I port over code form another H7, or would there be issues? #2813
-
The basic idea I have is that my board would have two main ports: a HS port in the front for main communication (CDC, possibly DFU as well) and a FS port in the back (DFU only) that would also support USBPD; the FS part of the port would only be used for DFU and it would otherwise be plugged into a power adapter. The issue I am currently running into is that the H7RS line is considered distinct from the remaining H7 line, and, as such, has a completely different set up. It has an internal HS PHY, unlike the other H7 chips, so the family.c and similar files would not directly work with the H7RS line. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Currently TUSB doesn't support using both ports as device concurrently, you have to choose the port on init. |
Beta Was this translation helpful? Give feedback.
You can do any combination as long as it doesn't exceed the device endpoint and FIFO limit.
You can check cdc_dual_ports and cdc_msc example to see how it's done.
tinyusb/examples/device/cdc_dual_ports/src/usb_descriptors.c
Line 133 in f4dd176
tinyusb/examples/device/cdc_msc/src/usb_descriptors.c
Line 144 in f4dd176