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.

CC1314R10: Problem with unlocking device

Part Number: CC1314R10
Other Parts Discussed in Thread: CC1310, UNIFLASH, SYSCONFIG

Tool/software:

Hi Ti Experts.

We are validating/porting our code base from a cc1310 design to a cc1314R10 one. We have been able to run example code on the custom boards, but while matching the CCFG settings from the cc1310, the PWRPROF TAP was disabled by accident for the cc1314R10 project and loaded into the MCU. Now the board is unusable and we can't flash or erase the chip using the UNIFLASH tool. We have also tried the dslite tool to no avail. We always get the following error code:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.\dslite.bat -c cc1314R10.ccxml -e -b Erase
For more details and examples, please visit https://software-dl.ti.com/ccs/esd/uniflash/docs/latest_qsguide.html#command-line-interface
DSLite version 12.2.0.2919
Configuring Debugger (may take a few minutes on first launch)...
Initializing Register Database...
Initializing: IcePick_C
Executing Startup Scripts: IcePick_C
Initializing: CS_DAP_0
Executing Startup Scripts: CS_DAP_0
Initializing: Cortex_M33_0
Executing Startup Scripts: Cortex_M33_0
Connecting...
fatal: IcePick_C: Error connecting to the target: (Error -241 @ 0x0) A router subpath could not be accessed. A security error has probably occurred. Make sure your device is unlocked. (Emulation package 9.9.0.00040)
Failed: Operation was aborted
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Used versions:

CCS 12.8.1.00005
SimpleLink cc13xx CC26xx SDK 7.41.0.17
SysConfig 1.21.0

How can we return this chip back to a programmable state?

  • Hi J,

    is the board still detected when you connect the Launchpad to your computer and open Uniflash?

    Did you try to select under "New Configuration" the CC1314R10, then as connection the XDS110 and start. Did you try the erase and flash options provided by this menu?

    Kind regards,
    Theo

  • Hi Theo,

    is the board still detected when you connect the Launchpad to your computer and open Uniflash?

    Not sure what you mean by this. The tools discovers the launchpad regardless if an external board is connected to it. Our cc1310 based board is not discovered, but can be programmed if we use the cc1310F128 device and XDS110 programmer.

    Did you try to select under "New Configuration" the CC1314R10, then as connection the XDS110 and start. Did you try the erase and flash options provided by this menu?

    This is what I did. The options that I tried were: "Erase Entrire Flash" and "Program load with erasing all unprotected sectors". With both I get the same error: 

    Fullscreen
    1
    [25/10/2024, 15:02:08] [ERROR] IcePick_C: Error connecting to the target: (Error -241 @ 0x0) A router subpath could not be accessed. A security error has probably occurred. Make sure your device is unlocked. (Emulation package 9.9.0.00040)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi J,

    this is what I needed to know. 

    When you were modifying the ccfg settings did you define "SET_CCFG_ERASE_CONF_CHIP_ERASE_DIS_N" as "0x0" ?

    Kind regards,
    Theo

  • Hi Theo,

    I don't have a definition for that define. This is the ti_devices_config.c that was generated by SysConfig:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /*
    * ======== ti_devices_config.c ========
    * Customer Configuration for CC26XX and CC13XX devices.
    *
    * DO NOT EDIT - This file is generated by the SysConfig tool.
    *
    */
    //#####################################
    // Force VDDR high setting (Higher output power but also higher power consumption)
    // This is also called "boost mode"
    //#####################################
    // Use default VDDR trim
    #define CCFG_FORCE_VDDR_HH 0x0
    //#####################################
    // Power settings
    //#####################################
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Kind regards,

    J.

  • Hi J, 

    can you please go to ccfg.c and share it with me: Includes -> C:/ti/simplelink/... -> ti -> devices -> cc13x4_cc26x4 -> startup_files -> ccfg.c

    From what I can see in you modifications you only locked the access to the power profiler which should not lock the whole device and still allows you to send an erase command. 

    Are you sure that your device works correctly?

    Kind regards,
    Theo

  • Hi Theo,

    The ccfg.c file defines SET_CCFG_ERASE_CONF_CHIP_ERASE_DIS_N as 0x01

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /******************************************************************************
    * Filename: ccfg.c
    *
    * Description: Customer Configuration for:
    * CC13x4, CC26x4 device family.
    *
    * Copyright (C) 2020-2022, Texas Instruments Incorporated - http://www.ti.com/
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions are met:
    *
    * 1) Redistributions of source code must retain the above copyright notice,
    * this list of conditions and the following disclaimer.
    *
    * 2) Redistributions in binary form must reproduce the above copyright notice,
    * this list of conditions and the following disclaimer in the documentation
    * and/or other materials provided with the distribution.
    *
    * 3) Neither the name of the copyright holder nor the names of its contributors
    * may be used to endorse or promote products derived from this software
    * without specific prior written permission.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Kind regards,

    J.

  • Hi J,

    I reproduced the issue by locking the power profiler on one of our boards.

    If you run the following command from the Uniflash directory you will trigger a mass erase and afterwards you can flash the board again with new software.

    ./dslite.bat --mode cc13xx-cc26xx-mass-erase -d XDS110

    Please let me know if it worked.

    Kind regards,
    Theo

  • Hi Theo,

    The command works. Thank you for the support.

    Kind regards,

    J.