i.MX6 USB OTG in host mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX6 USB OTG in host mode

跳至解决方案
10,776 次查看
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.

标签 (2)
0 项奖励
回复
1 解答
5,015 次查看
SergioSolis
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
回复
5 回复数
5,015 次查看
JasonDavis
Contributor II

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

0 项奖励
回复
5,015 次查看
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 项奖励
回复
5,016 次查看
SergioSolis
NXP Employee
NXP Employee

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

0 项奖励
回复
5,015 次查看
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 项奖励
回复
5,015 次查看
Yuri
NXP Employee
NXP Employee

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