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.

[参考译文] LP-XDS110ET:Linux 连接不成功

Guru**** 2350610 points
Other Parts Discussed in Thread: LP-XDS110ET, UNIFLASH
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1471336/lp-xds110et-linux-connection-is-not-successful

器件型号:LP-XDS110ET
主题中讨论的其他器件: UNIFLASH

工具与软件:

在 Linux 中打开 CCS studio ,开始连接到目标,出现错误:

初始化仿真器时出错:
(错误-260 @ 0x0)
尝试连接到 XDS110失败。
原因可能为一个或多个:未连接 XDS110、无效
固件更新、XDS110序列号无效或 USB 故障
限制。 可以使用更新固件和序列号
xdsdfu 实用程序(位于……/ccs_base/common/uscif/xds110)
安装目录中。 请查看 XDS110SupportReadMe.pdf
请将其归档以获取说明。
(仿真软件包20.0.0.3178)

使用 Linux 命令、将列出 USB  

Bus 003 Device 021:ID 0451:bef3 Texas Instruments、Inc. CC1352R1 Launchpad

运行 xdsdfu -e 后、找不到设备。  USB 断开连接和再次连接也是相同的。


USB 设备固件升级实用程序
版权所有(c) 2008-2019德州仪器(TI)公司。  保留所有权利。

正在扫描支持的 XDS110器件的 USB 总线...


找到0个器件。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    最新动态:

    安装驱动程序后、USB 连接正常、但序列号不可写入

     $./xdsdfu -m

    USB 设备固件升级实用程序
    版权所有(c) 2008-2019德州仪器(TI)公司。  保留所有权利。

    正在扫描支持的 XDS110器件的 USB 总线...


    <<<器件0 >>>

    VID:0x0451   PID:0xbef3
    器件名称:  具有 CMSIS-DAP 的 XDS110探针
    版本:      3.0.33
    制造商: 德州仪器(TI)
    序列号:   NOSERIAL
    Mode:         Runtime
    配置:标准

    正在将器件切换至 DFU 模式。

    $./xdsdfu -s 12345678 -r

    USB 设备固件升级实用程序
    版权所有(c) 2008-2019德州仪器(TI)公司。  保留所有权利。

    正在扫描支持的 XDS110器件的 USB 总线...

    设置序列号时报告 DFU_ERR_UNKNOWN (-4)错误

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 X.Zia:

    请确认您已执行了 LP-XDS110ET 手动更新、如果无法进行更新、则可以考虑 刷写引导加载程序

    此致、
    Ryan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    执行手动更新、如日志中所示。 。 但系列号更新不成功、升级固件后也最终出现错误。  

    引导加载程序是相同的。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您能否说明哪些成功、哪些失败?

    • 序列号更新
    • 固件升级
    • 引导加载程序刷写

    您从何处获得此 LP-XDS110ET、而且您以前是否曾使用过它?

    此致、
    Ryan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    在 Windows 中工作正常、在 Linux 中不工作、 引导加载现在已刷写、固件也是如此。 系列号也可以使用。 但在 Linux 中则不然。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    它能在 Windows 中100%运行吗?  您以前是否曾在 Linux 计算机上成功使用过 LP-XDS110ET?  您的 Linux 发行版是什么?  我一直在 Linux Ubuntu 22.04上操作、没有任何问题。  您可以考虑重新安装 CCS、或联系 Code Composer Studio 论坛

    此致、
    Ryan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    CCS Studio 现已安装。 用于 xdsdfu 的 Linux 计算机以前不能正常打印。  Windows 是100%

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    CCS studio 现已安装。 用于 xdsdfu 的 Linux 计算机以前不能正常打印。  Windows 是100%[/报价]

    您是否执行了本节中提到的编译后处理步骤?

    https://software-dl.ti.com/ccs/esd/documents/users_guide_ccs/ccs_installation.html#post-installation-step-linux-only

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    是的、已安装驱动程序、这样调试在 Linux 中工作、但是 Linux 中的 xdsdfu 不能这么完美。 在 Windows 中运行正常。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您能说明哪些不适用于 Linux 吗?

    听起来 CCS 调试没有问题。

    但您不能在 Linux 上更改序列号、但您可以在 Windows 上更改序列号? 这是 Windows 上唯一的 xdsdfu 错误吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    但是您无法在 Linux 上更改序列号、但您可以在 Windows 上更改序列号? 这是 Windows 上唯一的 xdsdfu 错误吗?

    xdsdfu 可以在 Windows 上更改序列号、 但不能在 Linux 上更改序列号。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢。 因此、当尝试使用 xdsdfu 更改序列号时、这只是一个问题。

    您能否确认您在使用此 XDS110: https://www.ti.com/tool/LP-XDS110ET

    此外、您提到的有关更改完整序列号的错误通常可以通过重新刷新引导加载程序来解决。 基于:

    在 windows 中工作正常、在 Linux 中不工作、 引导加载现在已刷新、固件也是如此。 系列号也可以使用。 但在 Linux 中则不然。  [报价]

    听起来您已经按照 https://www.ti.com/lit/ug/sprui94/sprui94.pdf 中3.7.3.3所述刷写了引导加载程序。 "boot_loader.bin"文件是否使用了 CCS 20中的文件?  

    如果您仅使用"-s"指定最后四个字符、而不是使用"-s"的完整序列号、是否仍存在同样的问题?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我使用了来自 uniflash 9.0的 boot_loader.bin ,我认为它是新的,它成功地在 Windows 中闪存。 我们使用 CCS 12.8.1、因为 CCS 20完全不同。 工具。

    -s -n 在 Windows 中工作,在 Linux Ubuntu 22.01中不工作。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    很奇怪、问题出在序列号上。 通常、更新引导加载程序可解决此问题。 我需要看看我是否可以建议其他东西。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我也测试了 MacOS,也工作正常,但在 Linux 不.  

    Last login: Fri Feb 14 11:45:32 on console
    
    The default interactive shell is now zsh.
    To update your account to use zsh, please run `chsh -s /bin/zsh`.
    For more details, please visit support.apple.com/.../HT208050.
    PandaMac:xds110 xza2abt$ ./xdsdfu 
    
    USB Device Firmware Upgrade Utility
    Copyright (c) 2008-2019 Texas Instruments Incorporated.  All rights reserved.
    
    This application may be used to download images to a Texas Instruments
    XDS110 Debug Probe using the USB Device Firmware Upgrade boot loader.
    
    Supported parameters are:
    
    -e        - Enumerate connected devices, show info, then exit.
    -m        - Switch into DFU mode if device is currently in runtime mode.
                The device must be in DFU mode to download firmware, to set 
                the serial number, or to change the configuration.
    -f <file> - Download the given file to the device.
    -n <text> - Set device serial number to any four character string (no 
                spaces). This option preserves the board prefix (if any). May 
                be used when downloading an image into device.
    -s <text> - Set device serial number to any eight character string (no 
                spaces). This option replaces the entire serial number. May 
                be used when downloading an image into device.
    -c <num>  - Set the configuration of the device. Use -c ? to show a list 
                of available device configurations. (Configurations were 
                implemented starting with firmware version 2.3.0.15.)
    -I <text> - Set the serial number of the device to access. If more than 
                one have the same serial number, the first device found is 
                used. The -i option is ignored when this option is selected. 
    -i <num>  - Set the index of the USB DFU device to access if more
                than one is found. If absent, the first device found is used.
    -r        - Reset the target on completion of operation.
    -? or -h  - Show this help.
    -q        - Quiet mode. Disable output to stdio.
    -w        - Wait for a key press before exiting.
    -v        - Enable verbose output
    
    Examples:
    
       xdsdfu -m
    
    Switches the device into DFU mode.
    
       xdsdfu -f firmware_3.0.0.8.bin -r
    
    Writes firmware_3.0.0.8.bin to the device, and then resets it.
    
       xdsdfu -s 00001234 -r
    
    Sets device serial number to "00001234", and then resets device.
    
       xdsdfu -c 1 -r
    
    Sets device to configuration #1, and then resets device.
    
    ERROR: No file name was specified. The file name is required.
    PandaMac:xds110 xza2abt$ ./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: 0x0451    PID: 0xbef3
    Device Name:   XDS110 Embed with CMSIS-DAP
    Version:       3.0.0.20
    Manufacturer:  Texas Instruments
    Serial Num:    49240409
    Mode:          Runtime
    Configuration: Standard
    
    Found 1 device.
    PandaMac:xds110 xza2abt$ ./xdsdfu -m
    
    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: 0x0451    PID: 0xbef3
    Device Name:   XDS110 Embed with CMSIS-DAP
    Version:       3.0.0.20
    Manufacturer:  Texas Instruments
    Serial Num:    49240409
    Mode:          Runtime
    Configuration: Standard
    
    Switching device into DFU mode.
    PandaMac:xds110 xza2abt$ ./xdsdfu -b boot_loader.bin -r
    
    USB Device Firmware Upgrade Utility
    Copyright (c) 2008-2019 Texas Instruments Incorporated.  All rights reserved.
    
    Replacing the bootloader may render the XDS110 unusable.
    Do you want to continue (Y/N) ?  y
    Scanning USB buses for supported XDS110 devices...
    
    Downloading boot_loader.bin to device...
    PandaMac:xds110 xza2abt$ ./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: 0x0451    PID: 0xbef3
    Device Name:   XDS110 Embed with CMSIS-DAP
    Version:       3.0.0.20
    Manufacturer:  Texas Instruments
    Serial Num:    49240409
    Mode:          Runtime
    Configuration: Standard
    
    Found 1 device.
    PandaMac:xds110 xza2abt$ ./xdsdfu -m
    
    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: 0x0451    PID: 0xbef3
    Device Name:   XDS110 Embed with CMSIS-DAP
    Version:       3.0.0.20
    Manufacturer:  Texas Instruments
    Serial Num:    49240409
    Mode:          Runtime
    Configuration: Standard
    
    Switching device into DFU mode.
    PandaMac:xds110 xza2abt$ ./xdsdfu -f firmware_3.0.0.33.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.33.bin to device...
    PandaMac:xds110 xza2abt$ ./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: 0x0451    PID: 0xbef3
    Device Name:   XDS110 Embed with CMSIS-DAP
    Version:       3.0.0.33
    Manufacturer:  Texas Instruments
    Serial Num:    49240409
    Mode:          Runtime
    Configuration: Standard
    
    Found 1 device.
    PandaMac:xds110 xza2abt$ 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    设置序列号也可以在 Mac 上运行吗? 我在您的输出中没有看到这种情况。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    如果二进制刷写正常且没有错误、请更改序列号 也不错。

    bin 闪存也返回错误。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Linux bin 闪存中也返回错误。

    好的、那么它不仅仅是序列号。 在 Linux 上、刷新 bin (固件和引导加载程序)也失败

    听起来 xdsdfu 实用程序和您的 Linux 系统之间存在一些冲突。 我感到困惑、为什么这只会在 Linux 上出现问题。