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.

UNIFLASH: Mass erase of a specific device when locked from the CLI

Part Number: UNIFLASH
Other Parts Discussed in Thread: CC2652RB

Tool/software:

I have read several posts here about this issue, but none of them solve my particular problem.

I have several XDS110 probes connected, and I need to issue a cc13xx-cc26xx-mass-erase to unlock and erase a specific device.

I am trying the command: c:\ti\uniflash_8.7.0\dslite.bat --mode cc13xx-cc26xx-mass-erase -c c:\ti\probe_config\L12004HX.ccxml

If the device is flashed but not locked, this command works and the device is erased.

If the device has been locked with DisableCpuDap=true, I get the result

Performing Device Unlock via Mass Erase...
Cortex_M4_0: MassErase(): Initializing.
Cortex_M4_0: MassErase(): Issuing Board Reset.
Failed: Connect failed

Using "-d XDS110" instead of specifying the config file does work and unlocks the device correctly if there is only one XDS110 connected, but I cannot target a specific probe if there are more than one. It also works when I use the UNIFLASH utility, but I need a CLI solution.

I am currently testing with a CC2652RB development kit, but will be switching to using XDS110 debug probes for production.

Thanks.

  • Hello,

    I am trying the command: c:\ti\uniflash_8.7.0\dslite.bat --mode cc13xx-cc26xx-mass-erase -c c:\ti\probe_config\L12004HX.ccxml

    In your ccxml file, did you disable the custom configuration option for the subpaths as mentioned in the below post?

    https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/914862/uniflash-how-to-use-uniflash-cli-to-mass-erase-cc2652rb-with-locked-debug-interface/3381792#3381792

    Thanks

    ki

  • I attempted to. Here is my config file.

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <configurations XML_version="1.2" id="configurations_0">
    <configuration XML_version="1.2" id="Texas Instruments XDS110 USB Debug Probe_0">
    <instance XML_version="1.2" desc="Texas Instruments XDS110 USB Debug Probe_0" href="connections/TIXDS110_Connection.xml" id="Texas Instruments XDS110 USB Debug Probe_0" xml="TIXDS110_Connection.xml" xmlpath="connections"/>
    <connection XML_version="1.2" id="Texas Instruments XDS110 USB Debug Probe_0">
    <instance XML_version="1.2" href="drivers/tixds510icepick_c.xml" id="drivers" xml="tixds510icepick_c.xml" xmlpath="drivers"/>
    <instance XML_version="1.2" href="drivers/tixds510cs_dap.xml" id="drivers" xml="tixds510cs_dap.xml" xmlpath="drivers"/>
    <instance XML_version="1.2" href="drivers/tixds510cortexM.xml" id="drivers" xml="tixds510cortexM.xml" xmlpath="drivers"/>
    <property Type="choicelist" Value="1" id="Power Selection">
    <choice Name="Probe supplied power" value="1">
    <property Type="stringfield" Value="3.3" id="Voltage Level"/>
    </choice>
    </property>
    <property Type="choicelist" Value="0" id="JTAG Signal Isolation"/>
    <property Type="choicelist" Value="4" id="SWD Mode Settings">
    <choice Name="cJTAG (1149.7) 2-pin advanced modes" value="enable">
    <property Type="choicelist" Value="1" id="XDS110 Aux Port"/>
    </choice>
    </property>
    <property Type="choicelist" Value="1" id="Debug Probe Selection">
    <choice Name="Select by serial number" value="0">
    <property Type="stringfield" Value="L12004HX" id="-- Enter the serial number"/>
    </choice>
    </property>
    <platform XML_version="1.2" id="platform_0">
    <instance XML_version="1.2" desc="CC2652RB1F_0" href="devices/cc2652rb1f.xml" id="CC2652RB1F_0" xml="cc2652rb1f.xml" xmlpath="devices"/>
    <device HW_revision="1" XML_version="1.2" description="SimpleLink(TM) multi-protocol CC2652RB wireless MCU" id="CC2652RB1F_0" partnum="CC2652RB1F" simulation="no">
    <router HW_revision="1.0" XML_version="1.2" description="ICEPick_C Router" id="IcePick_C_0" isa="ICEPICK_C">
    <subpath id="subpath_0">
    <router HW_revision="1.0" XML_version="1.2" description="CS_DAP Router" id="CS_DAP_0" isa="CS_DAP">
    <subpath id="subpath_1">
    <property Type="choicelist" Value="1" id="Custom Configuration"/>
    </subpath>
    </router>
    </subpath>
    <subpath id="subpath_2">
    <property Type="choicelist" Value="1" id="Custom Configuration"/>
    </subpath>
    </router>
    </device>
    </platform>
    </connection>
    </configuration>
    </configurations>

  • Looks like you did not uncheck those options I mentioned above.

    Please try my ccxml file:

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/908/2652rb.ccxml

    It is for the same target and serial number.

    See the video below for an example. The first time i run the command is with your ccxml file. It fails with the same error. The second time I run it, I use my ccxml file. It succeeds:

    You can double-click on the video to full size it.

  • Oh, I see, I unchecked "Custom Configuration" for subpath 1 and 2 instead of for 0 and 1. 

    Using your config file worked perfectly. Thank you for the help!