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.

[参考译文] CC2340R5:使用 UniFlash dslite CLI 刷写批量擦除的器件

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1401897/cc2340r5-flashing-a-mass-erased-device-using-uniflash-dslite-cli

器件型号:CC2340R5
主题中讨论的其他器件:UNIFLASH

工具与软件:

我正在使用命令行中的 UniFlash dslite 来刷写我的 Launchpad…  这里一切都很好…

但是、有时我会使用 UniFlash GUI 手动擦除整个闪存...

这通常是一个新购买的 Launchpad 的状态。。

当我从命令行运行 dslite 时、收到一个错误、建议我需要批量擦除 CCS 中的闪存:

> "C:\Users\biosb\em-sdk\tools\ti-uniflash\ccs_base\DebugServer\bin\DSLite" flash -c ti.cc23xx/ti.distro.cc23xx/CC2340R5.ccxml -b Erase .out/main.out 

For more details and examples, please visit software-dl.ti.com/.../latest_qsguide.html

info: Cortex_M0P: Flash loader: CC23xx_FLASH_LIBRARY_VERSION 3.17.10.24
info: Cortex_M0P: Debugging is not allowed. If this is not expected, check your CCFG. 
info: Cortex_M0P:     If you are experiencing issues with loading your application, do the following (this will erase the chip):
info: Cortex_M0P:      - Code Composer Studio:
info: Cortex_M0P:        - End the current debug session (if any is active).
info: Cortex_M0P:        - View -> Target Configurations -> Right click on .ccxml file for your project -> Launch Selected Configuration. 
info: Cortex_M0P:        - Right click on the 'Debug Probe/Cortex_M0P' and select 'Show all cores'.
info: Cortex_M0P:        - Select the 'Debug Probe/CS_DAP0' item after expanding the 'Non Debuggable Devices' item.
info: Cortex_M0P:        - Scripts -> CC23xx -> ChipErase  to start Chip erase.
info: Cortex_M0P:        - You should now be able to load your application to the target. 

但我可以通过 UniFlash GUI 加载程序、我已在其中选择以下设置:

有人可以告诉我 dslite 的等效命令行选项...以前的命令输出报告了我当前传递给 dslite 的选项...

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

    FWEW、在我通过 UniFlash GUI 成功加载了一个批量擦除的目标后、我尝试在 GUI...中创建一个"独立命令行"版本

    在批量擦除目标上运行生成的 dslite 脚本时、出现上文报告的相同命令行错误!!!

    我在 GUI 中执行的操作不会反映在生成的 CLI 中...

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

    尊敬的 Bob:

    我在您的命令行中看到"flash -c"。

    相反、您可以尝试执行批量擦除、但使用"--mode noConnectFlash"选项吗?
    相关帖子: https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1386349/uniflash-cli-linux---failed-target-must-be-connected-before-calling-the-function/5304568#5304568

    谢谢!
    Toby

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

    --mode noConnectFlash 不显示为选项....  和最新的在线文档也不要提到这个选项..

    你引用的另一个帖子看起来像它将解决问题..  我只是不能得到 dslite 接受--mode noConnectFlash

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

    下面是 dslite --help (v8.5.0)在命令行中报告的内容:

    Usage:
      dslite flash --config=ccxml-file [options] [flash-file1 ...]
    
    
    Options:
      -c [ --config ] arg                Target Configuration (ccxml) file, must be
                                         supplied other than running --help. CCXML
                                         file can be generated and exported using
                                         the Uniflash GUI or Code Composer Studio.
      -N [ --list-cores ]                List the available cores and index of the
                                         current configuration (index to be used 
                                         with -n afterwards).
      -n [ --core ] arg (=0)             Zero based index of core to operate on.
      -S [ --list-settings ] arg         Takes a regex and list the final values
                                         applied to the matching settings. (ie; use
                                         .* to list all available settings)
      -p [ --list-ops ]                  List the available flash operations.
      -I [ --list-device-cmds ]          List the available device commands, if
                                         any.
      -l [ --load-settings ] arg         Apply settings file generated by UniFlash
                                         GUI.
      -s [ --setting ] arg               Override a specific setting by using
                                         id=value.  Can be specified multiple 
                                         times.
      -b [ --before ] arg                Operation(s) to perform before loading.
                                         Can be specified multiple times, and are
                                         performed in the order they appear on the
                                         command line. Get a list of operations by
                                         using --list-ops.
      -f [ --flash ]                     Load the file(s) specified at the end of
                                         the command line to flash.  This is
                                         assumed to be set unless verify is set.
      -v [ --verify ]                    Verify the file(s) specified at the end of
                                         the command line.
      -a [ --after ] arg                 Optional operation to perform after 
                                         loading.  Can be specified multiple times,
                                         and are performed in the order they appear
                                         on the command line. Get a list of
                                         operations by using --list-ops.
      -R [ --list-resets ]               List of resets that can be done after
                                         program load and verification.
      -u [ --run ]                       Run the target at the end of the flash
                                         load/operation.
      -r [ --reset ] arg                 Set reset operation to be done after
                                         program load and verification.
      -O [ --post-flash-device-cmd ] arg Execute the given device command. Get a
                                         list of device commands by using
                                         --list-device-cmds.
      -t [ --timeout ] arg               Timeout in seconds, infinite if
                                         unspecified.
      -g [ --log ] arg                   Enable detailed logging to the specified
                                         file.
      -e [ --verbose ]                   Outputs progress messages to the console.
      -h [ --help ]                      Print this message.
    
     

    有人能告诉我如何选择"--mode noConnectFlash".  我在其他文章(以及一些在线 BLE 文档)中不断阅读此内容...

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

    最新的 Uniflash (8.7)应支持该模式: www.ti.com/.../UNIFLASH

    Dslite --mode noConnectFlash -c target_configuration_file out_file