2024-08-31 05:45 AM
I'd like to use both of the Synopsis USB controllers on the STM32H743VIT6, one as device, one as host, but to do that I understand that the other USB controller is accessed through the USB HS device, which is disabled because of the use of LTDC.
Currently I have the FS USB device working as switchable dual-role Host/Device.
I don't know why the HS USB controller is disabled by CubeMX, as the pin outs for HS DM+/- are free.
Is there a way to get around this to use both USB controllers and the LTDC?
Solved! Go to Solution.
2024-09-01 02:41 AM - edited 2024-09-01 02:44 AM
Yes, you're correct, it seems MX Cube was blocked because PB13 was assigned to SPI2_CLK and it wanted to use that for USB_OTH_HS_VBUS, which I assume must be internally hard-wired to the USB-HS controller, I just had to move SPI2_CLK to PA9 to free it.
It looks like I can simply configure both controllers, one as device, one as host, and use the standard routines (modified for CDC to work), would you agree, or are there any hidden complication?
2024-08-31 07:06 AM
I tried to have LTDC and both USB , no problem to see:
I am on IDE 1.13.1 .
2024-09-01 02:41 AM - edited 2024-09-01 02:44 AM
Yes, you're correct, it seems MX Cube was blocked because PB13 was assigned to SPI2_CLK and it wanted to use that for USB_OTH_HS_VBUS, which I assume must be internally hard-wired to the USB-HS controller, I just had to move SPI2_CLK to PA9 to free it.
It looks like I can simply configure both controllers, one as device, one as host, and use the standard routines (modified for CDC to work), would you agree, or are there any hidden complication?
2024-09-01 03:55 AM
Yes, agree.
Anyway OTG (auto switching host/device on a usb port) doesnt work by generating code - you would have to write it yourself... (or find a working example on git).
2024-09-01 05:11 AM
Yes, we have that working already, with a custom circuit for the two device/host sense lines and a VBUS power IC.
Well, lets hope this will be an easy sale!