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.

CC2640R2F,自己画的电路,无法下载程序

Other Parts Discussed in Thread: CC2640R2F, UNIFLASH

用XDS110,链接TMS RST TCK GND四根线,用网上买的4x4封装的邮票孔模块测试了程序下载都没问题。

图中芯片型号标的不对,实际用的是CC2640R2F  5x5封装的,检查了两款芯片的最小电路没有区别,下载环境和代码完全一样。

下载的时候提示一个242的错误。

正常下载的时候万用表测量RST发现2次明显的拉低,报242错误的时候RST没有拉低。

求大神帮忙

  • 用的是flash programmer2吗,把具体错误log信息传上来
  • 是CCS的debug

    Error connecting to the target:
    (Error -242 @ 0x0)
    A router subpath could not be accessed.
    The board configuration file is probably incorrect.
    (Emulation package 8.2.0.00004)
  • 这个错误是需要更新固件,你用flash programmer2或uniflash连接上下载一次,之后再用CCS下载时更新固件后就好了
  • 已经尝试了mass erase,图片下方的报错信息就是。

  • 使用C:\ti\ccs1010\ccs\ccs_base\common\uscif\xds110目录下的xdsdfu重新刷下固件试试
  • xdsdfu -m
    xdsdfu -f firmware.bin -r

    我执行了这两个命令,然后xds110就不上电了,插拔、重启电脑都不行。
  • Use the actual filename of the firmware file. Starting with firmware version 3.0.0.8, the version number is part of the filename (e.g. firmware_3.0.0.8.bin). You may need to pause after the first command to give the OS time to recognize that the XDS110 has reconfigured as a different USB device.

    需要将firmware改成具体的版本,例如:

    xdsdfu -m
    xdsdfu -f firmware_3.0.0.13.bin -r

    改成和目录下相同的版本

  • 现在XDS110已经不开机了,灯都不亮了。还有办法吗?xdsdfu -e已经搜不到设备了

  • 你用的是板载的xds110还是xds110下载器?正常接上绿色的led会亮,可能电路有问题或者芯片烧了。
    除了运行上述命令,还有没有进行其他操作
  • 我用的XDS110下载器,淘宝买的,之前还能正常用。
    xdsdfu -m
    xdsdfu -f firmware.bin -r
    执行了这两条命令后,就彻底挂了。没有其它操作
  • 在设备管理器中看下COM 口是否存在
  • 检查下连线和电路,排查看是不是里面的芯片烧了
  • 会不会是我命令给的不对烧错固件,导致芯片里的程序不对了呢?
  • 不会,当时运行xdsdfu -m
    xdsdfu -f firmware.bin -r后shell 中输出的信息是什么
  • 具体信息记不住了,印象里大概是开始烧写,然后烧写完成。然后就再也找不到了
  • 应该不会成功,因为没有指定具体的文件
    Switching device into DFU mode.
    PS C:\ti\ccs1010\ccs\ccs_base\common\uscif\xds110> .\xdsdfu -f firmware.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.bin to device...
    Unable to open file firmware.bin. Does it exist?
    PS C:\ti\ccs1010\ccs\ccs_base\common\uscif\xds110>
  • firmware.bin这个文件我是有的啊

  • 新买的XDS110刚到,我用program2更新了一下固件能找到芯片了

    但是进CCS用DEBUG再更新固件的话还是找不到,是不是我CCS版本老的问题?里边自带的固件版本也老了?

  • 我试了CCS9是可以的,找不到的具体log信息是什么,和之前一样吗
  • 下边是项目属性里点verify出来的信息

    [Start]

    Execute the command:

    %ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -S integrity

    [Result]


    -----[Print the board config pathname(s)]------------------------------------

    C:\Users\trubo\AppData\Local\Texas Instruments\
    CCS\ccs910\0\0\BrdDat\testBoard.dat

    -----[Print the reset-command software log-file]-----------------------------

    This utility has selected a 100- or 510-class product.
    This utility will load the adapter 'jioxds110.dll'.
    The library build date was 'Jun 3 2019'.
    The library build time was '15:24:38'.
    The library package version is '8.2.0.00004'.
    The library component version is '35.35.0.0'.
    The controller does not use a programmable FPGA.
    The controller has a version number of '5' (0x00000005).
    The controller has an insertion length of '0' (0x00000000).
    This utility will attempt to reset the controller.
    This utility has successfully reset the controller.

    -----[Print the reset-command hardware log-file]-----------------------------

    The scan-path will be reset by toggling the JTAG TRST signal.
    The controller is the XDS110 with USB interface.
    The link from controller to target is direct (without cable).
    The software is configured for XDS110 features.
    The controller cannot monitor the value on the EMU[0] pin.
    The controller cannot monitor the value on the EMU[1] pin.
    The controller cannot control the timing on output pins.
    The controller cannot control the timing on input pins.
    The scan-path link-delay has been set to exactly '0' (0x0000).

    An error occurred while hard opening the controller.

    -----[An error has occurred and this utility has aborted]--------------------

    This error is generated by TI's USCIF driver or utilities.

    The value is '-242' (0xffffff0e).
    The title is 'SC_ERR_ROUTER_ACCESS_SUBPATH'.

    The explanation is:
    A router subpath could not be accessed.
    The board configuration file is probably incorrect.

    [End]



    下边是烧录报错

    Error connecting to the target:
    (Error -242 @ 0x0)
    A router subpath could not be accessed.
    The board configuration file is probably incorrect.
    (Emulation package 8.2.0.00004)

    跟之前没什么区别

    我怎么觉得是电路哪里有问题呢。。
  • [Start]
    
    Execute the command:
    
    %ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -S integrity
    
    [Result]
    
    
    -----[Print the board config pathname(s)]------------------------------------
    
    C:\Users\X1060709\AppData\Local\TEXASI~1\
        CCS\ccs1010\0\0\BrdDat\testBoard.dat
    
    -----[Print the reset-command software log-file]-----------------------------
    
    This utility has selected a 100- or 510-class product.
    This utility will load the adapter 'jioxds110.dll'.
    The library build date was 'May  7 2020'.
    The library build time was '21:10:18'.
    The library package version is '9.2.0.00002'.
    The library component version is '35.35.0.0'.
    The controller does not use a programmable FPGA.
    The controller has a version number of '5' (0x00000005).
    The controller has an insertion length of '0' (0x00000000).
    This utility will attempt to reset the controller.
    This utility has successfully reset the controller.
    
    -----[Print the reset-command hardware log-file]-----------------------------
    
    The scan-path will be reset by toggling the JTAG TRST signal.
    The controller is the XDS110 with USB interface.
    The link from controller to target is direct (without cable).
    The software is configured for XDS110 features.
    The controller cannot monitor the value on the EMU[0] pin.
    The controller cannot monitor the value on the EMU[1] pin.
    The controller cannot control the timing on output pins.
    The controller cannot control the timing on input pins.
    The scan-path link-delay has been set to exactly '0' (0x0000).
    
    -----[Perform the Integrity scan-test on the JTAG IR]------------------------
    
    This test will use blocks of 64 32-bit words.
    This test will be applied just once.
    
    Do a test using 0xFFFFFFFF.
    Scan tests: 1, skipped: 0, failed: 0
    Do a test using 0x00000000.
    Scan tests: 2, skipped: 0, failed: 0
    Do a test using 0xFE03E0E2.
    Scan tests: 3, skipped: 0, failed: 0
    Do a test using 0x01FC1F1D.
    Scan tests: 4, skipped: 0, failed: 0
    Do a test using 0x5533CCAA.
    Scan tests: 5, skipped: 0, failed: 0
    Do a test using 0xAACC3355.
    Scan tests: 6, skipped: 0, failed: 0
    All of the values were scanned correctly.
    
    The JTAG IR Integrity scan-test has succeeded.
    
    -----[Perform the Integrity scan-test on the JTAG DR]------------------------
    
    This test will use blocks of 64 32-bit words.
    This test will be applied just once.
    
    Do a test using 0xFFFFFFFF.
    Scan tests: 1, skipped: 0, failed: 0
    Do a test using 0x00000000.
    Scan tests: 2, skipped: 0, failed: 0
    Do a test using 0xFE03E0E2.
    Scan tests: 3, skipped: 0, failed: 0
    Do a test using 0x01FC1F1D.
    Scan tests: 4, skipped: 0, failed: 0
    Do a test using 0x5533CCAA.
    Scan tests: 5, skipped: 0, failed: 0
    Do a test using 0xAACC3355.
    Scan tests: 6, skipped: 0, failed: 0
    All of the values were scanned correctly.
    
    The JTAG DR Integrity scan-test has succeeded.
    
    [End]
    

    这是烧录正确的信息,电路我看了下应该没什么问题

  • 不是,这个正确信息是在板子没上电的情况下出来了,而且不是烧录过程,只是verify出来的。
    下边是上电后的verify和烧录报的


    下边是项目属性里点verify出来的信息

    [Start]

    Execute the command:

    %ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -S integrity

    [Result]


    -----[Print the board config pathname(s)]------------------------------------

    C:\Users\trubo\AppData\Local\Texas Instruments\
    CCS\ccs910\0\0\BrdDat\testBoard.dat

    -----[Print the reset-command software log-file]-----------------------------

    This utility has selected a 100- or 510-class product.
    This utility will load the adapter 'jioxds110.dll'.
    The library build date was 'Jun 3 2019'.
    The library build time was '15:24:38'.
    The library package version is '8.2.0.00004'.
    The library component version is '35.35.0.0'.
    The controller does not use a programmable FPGA.
    The controller has a version number of '5' (0x00000005).
    The controller has an insertion length of '0' (0x00000000).
    This utility will attempt to reset the controller.
    This utility has successfully reset the controller.

    -----[Print the reset-command hardware log-file]-----------------------------

    The scan-path will be reset by toggling the JTAG TRST signal.
    The controller is the XDS110 with USB interface.
    The link from controller to target is direct (without cable).
    The software is configured for XDS110 features.
    The controller cannot monitor the value on the EMU[0] pin.
    The controller cannot monitor the value on the EMU[1] pin.
    The controller cannot control the timing on output pins.
    The controller cannot control the timing on input pins.
    The scan-path link-delay has been set to exactly '0' (0x0000).

    An error occurred while hard opening the controller.

    -----[An error has occurred and this utility has aborted]--------------------

    This error is generated by TI's USCIF driver or utilities.

    The value is '-242' (0xffffff0e).
    The title is 'SC_ERR_ROUTER_ACCESS_SUBPATH'.

    The explanation is:
    A router subpath could not be accessed.
    The board configuration file is probably incorrect.

    [End]



    下边是烧录报错

    Error connecting to the target:
    (Error -242 @ 0x0)
    A router subpath could not be accessed.
    The board configuration file is probably incorrect.
    (Emulation package 8.2.0.00004)

    跟之前没什么区别

    我怎么觉得是电路哪里有问题呢。。
  • 电路设计看这里的参考设计:dev.ti.com/.../node

    按照这里的方法排查下http://software-dl.ti.com/ccs/esd/documents/ccsv7_debugging_jtag_connectivity_issues.html#Cannot_access_the_DAP