i.MX6 USB Host disconnect detection

cancel
Showing results for 
Search instead for 
Did you mean: 

i.MX6 USB Host disconnect detection

565 Views
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

Labels (1)
0 Kudos
3 Replies

87 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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 Kudos

87 Views
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 Kudos

87 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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 Kudos