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.

LAUNCHXL-CC1312R1: Write protected blocks on the internal flash from the command line on Linux

Part Number: LAUNCHXL-CC1312R1
Other Parts Discussed in Thread: UNIFLASH

When I install BIM on a CC1312R1 Launchpad, it write protects some of the blocks. I can erase the flash using UniFlash 8.0.0 GUI. But I need to do the same from the Linux command line for a test pipeline. I have made a standalone command line package and can re-flash successfully using dslite.sh when there are no write protected blocks. But it fails if BIM has been installed and I can only erase and clear the write protection from the GUI.

I have also tried openocd (flash protect 0 0 last last off) but that doesn't remove the protection.

Is there a command line equivalent of doing 'Settings & Utilities, Manual Erase, Erase Entire Flash'?

  • Hi David,

    Thanks for your patience.

    You can use below command to perform a "Mass Erase" which will remove the protection.

    dslite --mode cc13xx-cc26xx-mass-erase -d XDS110

    For more information, please refer to https://software-dl.ti.com/ccs/esd/uniflash/docs/v6_0/uniflash_quick_start_guide.html#cc13xx-cc26xx-mass-erase-from-cli

    Regards,
    Nikolaj

  • Thanks for the reply Nikolaj.

    Unfortunately I get this output:

    david@seneco-dww:~/ti/cl$ ./dslite.sh --mode cc13xx-cc26xx-mass-erase -d XDS110
    For more details and examples, please visit software-dl.ti.com/.../latest_qsguide.html


    Failed: Cannot read System Setup data from XML file /home/david/ti/cl/ccs_base/arm/cc13xx_cc26xx_2pin_cJTAG_XDS110.ccxml
    Error parsing file:
    Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/home/david/ti/cl/ccs_base/common/targetdb/devices/cc1310f128.xml while parsing file: /home/david/ti/cl/ccs_base/common/targetdb/devices/cc1310f128.xml
    david@seneco-dww:~/ti/cl$

  • Hi David,

    This is a known issue (that will be fixed in a future Uniflash release). As a workaround you can copy the cc1310f128.xml file from your uniflash installation directory (on windows it is located at <uniflash install directory>/deskdb/content/TICloudAgent/win/ccs_base/common/targetdb/devices/cc1310f128.xml) to your standalone cli (/home/david/ti/cl/ccs_base/common/targetdb/devices/cc1310f128.xml)

    Note, the use of cc1310f128.xml does not really have anything to do the cc1310f128 device, the file is just used as part of the mass erase solution implemention.

    Alternatively, you can edit the /home/david/ti/cl/ccs_base/arm/cc13xx_cc26xx_2pin_cJTAG_XDS110.ccxml file, and replace the reference to cc1310f128.xml with cc1312r1f3.xml

    Regards,
    Nikolaj