i.MX6 USB OTG in host mode

cancel
Showing results for 
Search instead for 
Did you mean: 

i.MX6 USB OTG in host mode

Jump to solution
6,521 Views
JasonDavis
Contributor II

Has anyone successfully used the i.MX6's USB OTG port in host mode?  In our hardware design the USB OTG port works great for bootstrapping the processor.  However I cannot seem to get it to operate in a host only mode (for use with thumb drives, etc.).  It never seems to detect the attached device.  Has anyone gotten this to work on one of the Freescale or Boundary development boards?  In their own HW design?  If so what changes if any were needed to the kernel or its configuration?  Thanks for the help.

Labels (2)
0 Kudos
1 Solution
760 Views
SergioSolis
NXP Employee
NXP Employee

Are you setting the USBOTG ID pin to GND ?, that should work to set it as host

View solution in original post

0 Kudos
5 Replies
760 Views
JasonDavis
Contributor II

Thanks guys, adding a pulldown to the USBOTG pin did the trick.

0 Kudos
760 Views
harald_krapfenb
Contributor III

Hi,

Usually, the USB Mini/Micro cable should do the trick for you.

If you want to have an OTG port, then you design in an AB-plug, where both connectors fit.

Generally speaking, the A connectors (which sets host mode of OTG port) are bigger than B, and hence the former only fit in AB-plugs, whereas the latter fit in both.

An A cable connects the ID pin to GND, and a B does not.

If you want to connect a thumb drive, then get an adapter from Mini/Micro-A to A-plug.

Best regards,

Harald Krapfenbauer

Bluetechnix

0 Kudos
761 Views
SergioSolis
NXP Employee
NXP Employee

Are you setting the USBOTG ID pin to GND ?, that should work to set it as host

View solution in original post

0 Kudos
760 Views
rahulsoni
Contributor II

HiSergioSolis,

In my i.MX6S design, USB_ID pin is directly connected to GND. USD_VBUS is directly connected to 5V supply generated by a buck converter with enough supply capacity.

The board easily works in slave mode when it is connected to a host PC (USB_ID=1). but when I change the USB_ID pin to GND and try to use a slave device like USB pen drive, it does not show anything.

Also, I have not used USB_OC and USB_PWR pins in my design. Is it the reason of non-functional host mode?

Can you please help?

0 Kudos
760 Views
Yuri
NXP TechSupport
NXP TechSupport

1.

On SABRE AI CPU card, USB VBUS is controlled thru MAX7310, which in fact is controlled via I2C3,

but both spi nor and weim nor have conflict pad (EIM_D17 EIM_D18) with I2C3. When spi nor or weim nor

is enabled, the I2C3 can't be used, so that USB VBUS can't be powered on - as result the USB OTG can't
act as host.

2.

Please check if USB cable is proper for host operations :

https://community.freescale.com/message/314655#314655