The solution for the USB test

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

The solution for the USB test

跳至解决方案
6,568 次查看
george
Senior Contributor II

Dear all,

I want to verify USB-I/F for the i.MX6 original board.

Isn't the utility for a USB compliance test in somewhere?

* I use USB as a host on linux.

If there are some good ideas, please let me know.

Best Regards,

George

标记 (2)
0 项奖励
回复
1 解答
3,928 次查看
Yuri
NXP Employee
NXP Employee

  Please note that there is no special software needed to generate the

test pattern. The USB controller is compliant with the EHCI specification.

The test modes are set by the PTC bits in the PORTSC register (bits 19-16).

PTC = 0x4 will force the controller to send the test packet.

  Prior to setting the test mode, the controller must be initialized in the same

way as for normal operation. If the controller is running, the driver must first

stop the asynchronous and synchronous schedules and stop the controller

(USBCMS.RS = 0).

Then the PTC bits can be set for the desired test mode.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
4 回复数
3,928 次查看
PeterChan
NXP Employee
NXP Employee

If you are referring to the PC software tool for the USB hub/device framework testing, please refer to the page USB.org - Tools.

3,928 次查看
george
Senior Contributor II

Dear Peter,

Thank you for your infomation.

BR

George

0 项奖励
回复
3,929 次查看
Yuri
NXP Employee
NXP Employee

  Please note that there is no special software needed to generate the

test pattern. The USB controller is compliant with the EHCI specification.

The test modes are set by the PTC bits in the PORTSC register (bits 19-16).

PTC = 0x4 will force the controller to send the test packet.

  Prior to setting the test mode, the controller must be initialized in the same

way as for normal operation. If the controller is running, the driver must first

stop the asynchronous and synchronous schedules and stop the controller

(USBCMS.RS = 0).

Then the PTC bits can be set for the desired test mode.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
3,928 次查看
george
Senior Contributor II

Dear Yuri,

Thanks

0 项奖励
回复