Other Parts Discussed in Thread: CC2340R5,
Hi,
For some project it is required to flash device with CC2340R5 chip. When using Uniflash GUI with Launchpad XDS110S it works fine, I'm able to flash the .hex file.
But I need to flash through command line so I generate package from "Standalone Command Line" field in Uniflash, and run the script "one_time_setup.bat".
With the device that was already flashed with Uniflash GUI, the following command works well too: "./dslite-Cortex_M0P.bat --config=./user_files/configs/cc2340r5.ccxml --flash ./user_files/images/<fw_name.hex> --verbose
My first point is that the default command "./dslite-Cortex_M0P.bat" return the below error:
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.
And the second point is that I can't flash a fresh device (not already programmed) using Command line. It return the below error:
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
Someone already faced this issue ? Why it is possible to only flash already programmed devices using Command Line ?
Note: Using Uniflash V8.5.0.4593 and chip CC2340R5
Best regards,
Antoine