STM32H7 USB Dual Role: have Cube act as both host and device
Hello,
I am trying to use an H7 with USB OTG as host/device. Only 1 will be enabled at any given time. The issue is that with Cube, if I set the FS PHY to OTG/Dual_Role_Device, I get nothing but the IO set. Which is, obviously, the opposite of what I want. Ideally when I setup dual role I want dual role not 0 role. The HAL doesn't generate PCD or HCD files, instead of generating both. The NVIC tab doesn't allow me to manually enable the USB IRQ, let alone have it automatically enabled. Middleware is also completely disabled.
This is what I would like to have seen when I set the PHY for OTG:
- Parameter settings for Host and Device
- IO for host and device (meaning include the ID pin)
- NVIC capability
- USB_HOST and USB_DEVICE middlewares able to be used
As of right now it is impossible to use the functionality of the FS OTG PHY as truly OTG while also using the IOC configuration, as manually changing the HAL config gets overwritten on code generation.
Thank you
