Hello,
We are trying to toggle back and forth the OTG role using OTG_ID. When device boots up, OTG_ID is high, and the port is in gadget mode(It cannot recognize a USB storage thumb device). When we set OTG_ID pin to low, OTG port switch to host mode and the USB storage thumb device can be mounted. The issue happens when we set OTG_ID pin back to high again, the port sticks to host mode and does not switch to gadget mode.
What would be wrong?
Thanks,
Winston
Hi Yan
one can check sect.4.9.9 Changing the Controller Operation Mode i.MX Linux Reference Manual
and test with usb unit tests
https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_usb_test?h=lf-5.10.y_1.0.0
Best regards
igor