USB OTG and Host in iMXRT1060

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

USB OTG and Host in iMXRT1060

720 Views
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.

Labels (1)
0 Kudos
Reply
3 Replies

677 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @EmbeddedTech ,

Please refer to the keyboard2mouse_bm demo in SDK.

 

Regards,

Jing

0 Kudos
Reply

673 Views
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 Kudos
Reply

666 Views
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 Kudos
Reply