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: flashing a mass-erased device using UniFlash dslite CLI

Part Number: CC2340R5
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

i'm using UniFlash dslite from the command-line to flash my launchpad....  all is well here....

on occasion, however, i will use the UniFlash GUI to manually erase the entire flash....

this is often the state of a newly-purchased launchpad....

when i run dslite from the command line, i receive an error suggesting i need to mass-erase the flash within CCS:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
> "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 https://software-dl.ti.com/ccs/esd/uniflash/docs/latest_qsguide.html#command-line-interface
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.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

i am, however, able to load a program through the UniFlash GUI in which i've selected the following settings:

could someone show me the equivalent command-line options for dslite....the earlier command output reports the options i'm currently passing to dslite....

  • FWIW, after i successfully loaded a mass-erased target through the UniFlash GUI, i tried creating a 'Standalone Command Line' version within the GUI....

    when i run the generated dslite script on a mass-erased target, i get the same command-line error reported above!!!!

    something i'm doing in the GUI is not being reflected in the generated CLI....

  • --mode noConnectFlash does not appear as an option....  and the latest online docs don't mention this option either....

    the other post you referenced looked like it would solve the problem....  i just can't get dslite to accept --mode noConnectFlash

  • here's what dslite --help (v 8.5.0) reports at the command line:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     

    could someone tell me how to select "--mode noConnectFlash"....  i keep reading about this in other posts (as well as some online BLE docs)....

  • The latest Uniflash (8.7) should have this supported: www.ti.com/.../UNIFLASH

    dslite --mode noConnectFlash -c target_configuration_file out_file