UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer pritya
Observer
378 Views
Registered: ‎10-13-2017

How to check whether usb cable connected to board or not.

Hi,

 

    I have zed board and I am trying to write a usb driver in u-boot.

Uboot provides "g_dnl_board_usb_cable_connected()" to check whether cable is connected or not, but it returns EOPNOTSUPP.

 

     I checked for other boards, there they have pin to sense for the same (Kindly correct me if I am misunderstood).

 

So How can I detect whether usb cable is connected or disconnected.

Can I read one of the USB pins and detect it . ?

 

Any help would be appreciated.

 

 

 

0 Kudos