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.

Updating embedded XDS110 fails "usbfs: process 4112 (xdsdfu) did not claim interface 0 before use"

Hello,

I'm trying to flas the XDS110 using the firmware from  ti_emupack_setup_9.1.0.00001_linux_x86_64.bin

$:~/ti/ccs_base/common/uscif/xds110$ ./xdsdfu -f firmware_3.0.0.11.bin -r       
USB Device Firmware Upgrade Utility
Copyright (c) 2008-2019 Texas Instruments Incorporated.  All rights reserved.

Scanning USB buses for supported XDS110 devices...

Downloading firmware_3.0.0.11.bin to device...


$:~/ti/ccs_base/common/uscif/xds110$ ./xdsdfu -e                                
USB Device Firmware Upgrade Utility
Copyright (c) 2008-2019 Texas Instruments Incorporated.  All rights reserved.

Scanning USB buses for supported XDS110 devices...


<<<< Device 0 >>>>

VID: 0x1cbe    PID: 0x00ff
Device Name:   Tiva Device Firmware Update
Manufacturer:  Texas Instruments Incorporated
Serial Num:    00000000
Mode:          DFU

Found 1 device.

I can see in dmesg that the device does not change state from DFU to XDS

[ 4398.094741] usb 1-1: usbfs: process 4112 (xdsdfu) did not claim interface 0 before use
[ 4404.936944] usb 1-1: USB disconnect, device number 12
[ 4405.314969] usb 1-1: new full-speed USB device number 13 using xhci_hcd
[ 4405.464630] usb 1-1: New USB device found, idVendor=1cbe, idProduct=00ff, bcdDevice= 0.01
[ 4405.464636] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4405.464639] usb 1-1: Product: Tiva Device Firmware Update
[ 4405.464643] usb 1-1: Manufacturer: Texas Instruments Incorporated
[ 4405.464645] usb 1-1: SerialNumber: 00000000

I'm using Linux visteon-XPS-15-9560 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux; Ubuntu 18.04.4 LTS.

Please advise.



  • Hi,

    I haven't seen this error before but, as you suspect, the update may have failed somehow. 

    Since this was never reported before, unfortunately I can't necessarily pinpoint a root cause for that and can give some general troubleshooting tips.

    If you haven't done so, did you try to unplug and re-plug the Debug Probe after the update? Sometimes the utlity is unable to fully reset the probe. 

    Additional aspects are due to the environment itself: if you are running from Vagrant, docker or a virtual machine, keep in mind these utilities (and CCS) are not tested on these environments. An ideal scenario is to update from a native install. 

    If that is not your case, I would try on a different host or with a different USB cable - I wonder if there are any external influences to this. 

    If all else fails, as a last resort I would re-flash the bootloader by following the details at the section Troubleshooting of the XDS110 page below:

    http://software-dl.ti.com/ccs/esd/documents/xdsdebugprobes/emu_xds110.html 

    Hope this helps,

    Rafael

  • Hi Rafael,

    it appears that I'd got defective board in my previous attempt.

    On another instance, I'm able to flash even though I see the same message.

    122700.479703] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [122718.725372] mmc0: card aaaa removed
    [123200.626145] usb 1-1: new full-speed USB device number 10 using xhci_hcd
    [123200.779722] usb 1-1: New USB device found, idVendor=0451, idProduct=bef3, bcdDevice= 1.00
    [123200.779728] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [123200.779732] usb 1-1: Product: XDS110 (03.00.00.11) Embed with CMSIS-DAP
    [123200.779735] usb 1-1: Manufacturer: Texas Instruments
    [123200.779738] usb 1-1: SerialNumber: 00000000
    [123200.786523] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
    [123200.887693] cdc_acm 1-1:1.3: ttyACM1: USB ACM device
    [123200.989692] hid-generic 0003:0451:BEF3.0005: hiddev0,hidraw0: USB HID v1.11 Device [Texas Instruments XDS110 (03.00.00.11) Embed with CMSIS-DAP] on usb-0000:00:14.0-1/input5
    [123257.939488] usb 1-1: USB disconnect, device number 10
    [123258.386295] usb 1-1: new full-speed USB device number 11 using xhci_hcd
    [123258.534690] usb 1-1: New USB device found, idVendor=1cbe, idProduct=00ff, bcdDevice= 0.01
    [123258.534692] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [123258.534693] usb 1-1: Product: Tiva Device Firmware Update
    [123258.534694] usb 1-1: Manufacturer: Texas Instruments Incorporated
    [123258.534694] usb 1-1: SerialNumber: 00000000
    [123267.976168] usb 1-1: usbfs: process 27087 (xdsdfu) did not claim interface 0 before use
    [123270.616563] usb 1-1: USB disconnect, device number 11
    [123270.962289] usb 1-1: new full-speed USB device number 12 using xhci_hcd
    [123271.111985] usb 1-1: New USB device found, idVendor=0451, idProduct=bef3, bcdDevice= 1.00
    [123271.111991] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [123271.111995] usb 1-1: Product: XDS110 (02.03.00.11) Embed with CMSIS-DAP
    [123271.111998] usb 1-1: Manufacturer: Texas Instruments
    [123271.112001] usb 1-1: SerialNumber: 00000000
    [123271.118686] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
    [123271.119583] cdc_acm 1-1:1.3: ttyACM1: USB ACM device
    [123271.121125] hid-generic 0003:0451:BEF3.0006: hiddev0,hidraw0: USB HID v1.11 Device [Texas Instruments XDS110 (02.03.00.11) Embed with CMSIS-DAP] on usb-0000:00:14.0-1/input5
    


    Cheers!