MIMXRT1060-EVK: i.MX RT1064 Evaluation Kit - Need a USB Host example that works ?

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

MIMXRT1060-EVK: i.MX RT1064 Evaluation Kit - Need a USB Host example that works ?

跳至解决方案
2,839 次查看
k2
Contributor III

I Can get the device side examples to work - but none of the USB HS Host examples work. Whats the magic to get the Host to respond and attach to a device plug in ? VBUS is there ... This all worked in the old LPC examples. I'm migrating the design to the RT-1060 family. I have v11.3.1 with the latest 2.9.2 SDK installed. So please help. 

1 解答
2,752 次查看
k2
Contributor III

I finally got this to work. Used the host MSD cmd example. make sure you match the controller id to the connector you intend to use. J9 is Ehci0 and J10 is Ehci1.

in app.h ...

#define CONTROLLER_ID kUSB_ControllerEhci0 // Is J9

or

#define CONTROLLER_ID kUSB_ControllerEhci1 // Is J10

host init done
mass storage device attached:pid=0x5530vid=0x781 address=1
........................test start....................
get max logical units....success, logical units: 0
test unit ready....success, unit status: ready
request sense....success
inquiry...success
read capacity...success, last logical block:7856126 block length:512
read(10)...success
write(10)...success
........................test done....................
mass storage device detached

 

在原帖中查看解决方案

标记 (1)
6 回复数
2,003 次查看
james_boyce
Contributor II
Thanks K2
0 项奖励
回复
2,753 次查看
k2
Contributor III

I finally got this to work. Used the host MSD cmd example. make sure you match the controller id to the connector you intend to use. J9 is Ehci0 and J10 is Ehci1.

in app.h ...

#define CONTROLLER_ID kUSB_ControllerEhci0 // Is J9

or

#define CONTROLLER_ID kUSB_ControllerEhci1 // Is J10

host init done
mass storage device attached:pid=0x5530vid=0x781 address=1
........................test start....................
get max logical units....success, logical units: 0
test unit ready....success, unit status: ready
request sense....success
inquiry...success
read capacity...success, last logical block:7856126 block length:512
read(10)...success
write(10)...success
........................test done....................
mass storage device detached

 

标记 (1)
2,834 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @k2 

  Please download the newest SDK2.10.0 code from this link:

 https://mcuxpresso.nxp.com/

  You don't need to test the LPC examples, you can use the RT1060 SDK host code directly in the SDK:

SDK_2_10_0_EVK-MIMXRT1060\boards\evkmimxrt1060\usb_examples

Then refer to each demo readme to test it.

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

0 项奖励
回复
2,825 次查看
k2
Contributor III

I upgraded the RT-1064 SDK to V2.10  and I see no change (host msd command example doesnt work).

I don't see the Host respond to the device pulling high the DP pin using connector J10 wheni i plug a flash drive in as a device in to J10. I measured VBUS on J10 and its fine at 4,90V. 

Has anybody tested the Host examples using this 1064 EVK ? The device examples work fine. 

It doesnt get to echi Interrupt for port change ... so i don't see how its ever going to enumerate.

Need some guidance here ... has anybody got this working on this EVK ?

I can't believe i'm hung up on this. The Host controller defined is EHCI.  

0 项奖励
回复
2,812 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @k2 ,

   You are testing this project:

SDK_2_10_0_EVK-MIMXRT1060\boards\evkmimxrt1060\usb_examples\usb_host_msd_command\freertos

Right?

 Tomorrow, I will find one following cable and test it on my MIMXRT1064-EVK board:

• USB A to micro AB cable

Today, I don't have this cable on hand.

After my test, I will let you know the test result.

Do you already use the USB A to micro AB cable and connect to your U disk, right?

Best Regards,

Kerry

0 项奖励
回复
2,780 次查看
k2
Contributor III

Did you have any success ? I can not get any of the Host examples to enumerate anything. 

Seems like its missing the host interrupt that triggers the device attach when the device sets its DP pin high.

I did get the +5V supply to work. The trick is to not use the power slide switch. just eave it alone (off - all the way to the left). Just set the jumper to 1-2 from the default. 

 

 

0 项奖励
回复