Using OTG_ID HW to switch role does not fully work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using OTG_ID HW to switch role does not fully work

447 Views
yangao
Contributor III

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

Labels (1)
0 Kudos
1 Reply

442 Views
igorpadykov
NXP Employee
NXP Employee

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

0 Kudos