How to disable the OTG function of RT1062 and use it as device mode only.

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

How to disable the OTG function of RT1062 and use it as device mode only.

Jump to solution
1,139 Views
Taka05
Contributor I

Hello,

We want to use USB of MIMXRT1062 as device mode only.

We would like to use OTG1_PWR, OTG1_OC and OTG1_ID as GPIO because we do not use the OTG function.

The questions are

Q1. To disable OTG and enable device mode only, can I just set the CM register in  42.7.33 USB Device Mode (USB_nUSBMODE) to Device Controller?

Q2. Are there any precautions when using

USB_OTG1_PWR (GPIO_AD_B0_02, GPIO_AD_B1_01)

USB_OTG1_OC (GPIO_AD_B0_03, GPIO_AD_B1_03)

USB_OTG1_ID (GPIO_AD_B0_01, GPIO_AD_B1_02)

as GPIO?

Labels (1)
0 Kudos
Reply
1 Solution
1,105 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

No, I think nothing need to aware.

 

Regards,

jing

View solution in original post

0 Kudos
Reply
3 Replies
1,126 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @Taka05 ,

1. yes. Please refer to the USB device examples.

2. yes.

 

Regards,

Jing

0 Kudos
Reply
1,119 Views
Taka05
Contributor I

Hello.

@jingpan 

> 2. yes.

Could you tell me what to be aware of when using these pins as GPIO?

0 Kudos
Reply
1,106 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

No, I think nothing need to aware.

 

Regards,

jing

0 Kudos
Reply