i.MX6 USB Host disconnect detection

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

i.MX6 USB Host disconnect detection

1,459 次查看
sugiyamatoshihi
Contributor V

Hi,

It use i.MX6D USB Host1 and use SABRE AI board with Baseboard.

I'd like to know if it is possible to detect disconnection of USB device by monitor SE0 state of PORTSC1 LS bits?

Best Regards,

Sugiyama

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

981 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Sugiyama

yes this can be used in LS/FS modes, HS mode use other high-speed signaling

and seems this is not possible, as "Disconnection Envelope Detector" used in that case.

Please check sect.7.1.7.3 Connect and Disconnect Signaling USB 2.0 specification

found on usb.org.

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

0 项奖励
回复

981 次查看
sugiyamatoshihi
Contributor V

Hi, Igor,

I checked LS bits in PORTSC1 when connect device by using memtool, it is still SE0 even though D+ is high at I/O port.

I enabled USB clock gate at that time.

Does it require any setting to read port status by LS bits?

Best Regards,

Sugiyama

0 项奖励
回复

979 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Sugiyama

 

could you try to read with jtag and attached usb bare metal sdk example.

Full sdk can be obtained creating service request.

 

Best regards
igor

0 项奖励
回复