主题中讨论的其他器件:CC2340R5、
您好!
对于某些项目、需要使用 CC2340R5芯片刷写器件。 将 Uniflash GUI 与 Launchpad XDS110S 配合使用时工作正常、我能够刷写.hex 文件。
但我需要通过命令行进行刷写、以便从 Uniflash 的"Standalone Command Line"字段生成包、并运行脚本"one_time_setup.bat"。
对于已使用 Uniflash GUI 刷写的器件、以下命令也可以正常使用:"./dslite-Cortex_M0P.bat --config=./user_files/configs/cc2340r5.ccxml --flash ./user_files/image/ --详细
我首先要指出的是、默认命令"./dslite-Cortex_M0P.bat"会返回以下错误:
error: Cortex_M0P: File Loader: Verification failed: Values at address 0x4E02000C do not match Please verify target memory and memory map.
Finished: 99%
Failed: File: user_files/images/pf2_superhex_v1.8.1.hex: a data verification error occurred, file load failed.
第二点是、我无法使用命令行刷写新器件(尚未编程)。 它将返回以下错误:
DSLite version 12.5.888.714
Configuring Debugger (may take a few minutes on first launch)...
Initializing Register Database...
Initializing: CS_DAP_0
Executing Startup Scripts: CS_DAP_0
Initializing: Cortex_M0P
Executing Startup Scripts: Cortex_M0P
Initializing: SEC_AP
Executing Startup Scripts: SEC_AP
info: Cortex_M0P: Flash loader: CC23xx_FLASH_LIBRARY_VERSION 3.17.10.24
Connecting...
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.
error: Cortex_M0P: Halting at entry of application is not allowed. Are you sure debugging is allowed?
info: Cortex_M0P: Running the application, without halting at the entry of the application.
fatal: Cortex_M0P: Error connecting to the target: (Error -1274 @ 0x0) Error encountered during connect sequence. The specific reason is unknown but may be the result of trying to access a Core or logic that is inaccessible due to a lack of Power, Clocks, or Authentication (i.e. Security is preventing). If blocked by security, and if supported, access may be allowed after following the Authentication process. (Emulation package 9.13.0.00201)
Failed: Operation was aborted
有人已经遇到了这个问题? 为什么只能使用命令行来刷写已编程的设备?
注意:使用 Uniflash v8.5.0.4593和芯片 CC2340R5
此致、
安托万