USB OTG and Host in iMXRT1060

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

USB OTG and Host in iMXRT1060

721 次查看
EmbeddedTech
Contributor III

Hi,

We have a requirement to use one USB OTG as Host and the Other USB OTG as Host and device.

I have tried by using one OTG as Host with MSD, keyboard etc and other OTG as Device for virtual communication.  

Is there any example which demonstrates how to configure the USB OTG to enable it to work in device and host mode.

Thanks.

标签 (1)
0 项奖励
回复
3 回复数

678 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @EmbeddedTech ,

Please refer to the keyboard2mouse_bm demo in SDK.

 

Regards,

Jing

0 项奖励
回复

674 次查看
EmbeddedTech
Contributor III

Hi @jingpan,

The keyboard2mouse example in the sdk is for using OTG1 as device and OTG2 as host right?

In my case I want to use OTG1 as host or device based on what is connected and OTG2 to be host. How to achieve this.

Thanks.

0 项奖励
回复

667 次查看
jingpan
NXP TechSupport
NXP TechSupport

HI @EmbeddedTech ,

No, in this demo one controller work as host and the other work as device.

And the pin_detect_hid_mouse is OTG demo.

There isn't other demo can exactly mean your case. You have to combine these demos to your project.

 

Regards,

Jing

0 项奖励
回复