This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Not working USB2.0 as HOST in AM5728 custom board?

Other Parts Discussed in Thread: AM5728

Hi,

In my AM5728 custom board ,USB2.0 is not enumerating the plugged Pen-drive.

The error log is:

------------------------

root@am57xx-evm:~# [   24.047714] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[   24.167735] usb 1-1: device descriptor read/64, error -71
[   24.397732] usb 1-1: device descriptor read/64, error -71
[   24.627707] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[   24.747747] usb 1-1: device descriptor read/64, error -71
[   24.977733] usb 1-1: device descriptor read/64, error -71
[   25.207707] usb 1-1: new high-speed USB device number 4 using xhci-hcd
[   25.214308] usb 1-1: Device not responding to setup address.
[   25.427755] usb 1-1: Device not responding to setup address.
[   25.637706] usb 1-1: device not accepting address 4, error -71
[   25.757707] usb 1-1: new high-speed USB device number 5 using xhci-hcd
[   25.764308] usb 1-1: Device not responding to setup address.
[   25.977752] usb 1-1: Device not responding to setup address.
[   26.187704] usb 1-1: device not accepting address 5, error -71
[   26.193626] usb usb1-port1: unable to enumerate USB device

Thanks,

PRRADDHEP REDDE
 

  • Hi Prraddhep,

    Could you specify what SW release and kernel version you are using? Is the problem appear with other USB devices?
    Could you execute 'lsusb' command before connecting pen-drive and after that when the pen-drive is already connected and errors are displayed?
    The output of 'dmesg' command also could be useful.

    BR
    Tsvetolin Shulev
  • Hi Cvetolin,

    Thanks for your replay.

    I am using TI SDK version "ti-processor-sdk-linux-am57xx-evm-02.00.01.07" and  kernel version is 4.1.13.

    With  different USB devices also same error is repeating.

    lsusb log without connecting USB device:

    ------------------------------------------------------------

    root@am57xx-evm:~# lsusb
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    root@am57xx-evm:~# usb-devices

    T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
    D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
    P:  Vendor=1d6b ProdID=0002 Rev=04.01
    S:  Manufacturer=Linux 4.1.13-dirty xhci-hcd
    S:  Product=xHCI Host Controller
    S:  SerialNumber=xhci-hcd.2.auto
    C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
    I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

    T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
    D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
    P:  Vendor=1d6b ProdID=0003 Rev=04.01
    S:  Manufacturer=Linux 4.1.13-dirty xhci-hcd
    S:  Product=xHCI Host Controller
    S:  SerialNumber=xhci-hcd.2.auto
    C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
    I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

    After USB device connected:

    ----------------------------------------------

    root@am57xx-evm:~# lsusb
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    root@am57xx-evm:~# usb-devices

    T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
    D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
    P:  Vendor=1d6b ProdID=0002 Rev=04.01
    S:  Manufacturer=Linux 4.1.13-dirty xhci-hcd
    S:  Product=xHCI Host Controller
    S:  SerialNumber=xhci-hcd.2.auto
    C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
    I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

    T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
    D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
    P:  Vendor=1d6b ProdID=0003 Rev=04.01
    S:  Manufacturer=Linux 4.1.13-dirty xhci-hcd
    S:  Product=xHCI Host Controller
    S:  SerialNumber=xhci-hcd.2.auto
    C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
    I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

    Please fine the Dmesg logs before connecting and After connecting USB device.

    0882.Dmesg_without_connect_USBdevice.txt

    7608.Dmesg_AfterConnecting_USBdevice.txt

    Thanks

    PRRADDHEP REDDE

  • Prraddhep,

    The error code "error -71" which appears in the console log means "Protocol error". Could you successfully connect some other USB device (not usb pen-drive only) for example USB mouse? If there are errors with each one USB device I suspect a problem with USB lines (swapped or incorrect connected or broken connection) on the board.

    BR
    Tsvetolin Shulev
  • Hi Cvetolin,

    Thanks for your replay.

    USB MOUSE is detected with USB2.0.
    Why pendrive is giving protocol error can i enable any drivers?

    Thanks,
    PRRADDHEP REDDE
  • Prraddhep,

    The further investigation of the protocol error can proceed via analyzing the USB communication. For example you can connect a USB hub between the board and pen-drive. Also you should connect to the USB hub a PC with some capture and analyzing software (but unfortunately I can not recommend you such good enough analyzer). I hope that the analyzer could find the reason causing protocol error if it is really presents.

    BR
    Tsvetolin Shulev
  • Hi Cvetolin,Thanks for your replay.

    Thanks,

    PRRADDHEP REDDE

  • Prraddhep,

    The schematics reviewing is out of scope of the E2E forum but con contact with local TI representative to negotiate schematics reviewing.

    BR
    Tsvetolin Shulev
  • Hi Cvetolin, No problem.

    Please clarify one thing,In AM5728 EVM  USB2.0 default to client mode.

    We have designed for USB2.0 as  HOST mode,In our case USB2_DRVVBUS enables the 5V power source to VBUS of USB connector this VBUS voltage   has given to PMIC VBUS is it correct ?

    Thanks,

    PRRADDHEP REDDE

  • Hi Cvetolin,
    Please send me the DTS configuration for USB2.0 as host.

    Thanks,
    PRRADDHEP REDDE