[Do Not Merge] Introduce DWC2_I_WANT_FS_ON_HS_BOARD hack#3450
[Do Not Merge] Introduce DWC2_I_WANT_FS_ON_HS_BOARD hack#3450ceedriic wants to merge 3 commits intohathach:masterfrom
Conversation
Size Difference ReportBecause TinyUSB code size varies by port and configuration, the metrics below represent the averaged totals across all example builds. Note: If there is no change, only one value is shown. Changes >1% in sizeNo entries. Changes <1% in sizeNo entries. No changes
|
|
why not use the built-in FS PHY instead ? does the mcu only has 1 phy, and that is used by the other usb controller ? |
You're right, I could use the built-in FS PHY of the MCU, but the board has been designed with the USB3315C external PHY, to be high-speed capable. So the built-in FS PHY pins are not connected. At the moment, for some reasons I'm trying to understand, high-speed devices do not enumerate on that board with the latest TinyUSB, but full-speed devices work well. So with this patch I'm able to run high-speed devices in full speed mode. |
|
Deleted in favour of #3494 |
Describe the PR
This is a proof-of-concept patch to support Full-Speed USB on DWC2 on a board with High-Speed ULPI
Additional context
I've a stm32h747 board with a high-speed external PHY.
But for testing/reliability purposes I want to limit the speed to Full-Speed.
I tried with:
#define BOARD_TUH_MAX_SPEED OPT_MODE_HIGH_SPEED#define CFG_TUH_MAX_SPEED OPT_MODE_FULL_SPEEDIn my
tusb_config.h, but with bad results (hang in trying to setup the low-speed phy)This patch is just a proof-of-concept that it is not too difficult to make that work, In the hope that someone can clean that up :)