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.
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:
.\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
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:
[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)
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:
/* * ======== 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 //##################################### // Use the DC/DC during recharge in powerdown #define SET_CCFG_MODE_CONF_DCDC_RECHARGE 0x0 // Use the DC/DC during active mode #define SET_CCFG_MODE_CONF_DCDC_ACTIVE 0x0 //##################################### // Clock settings //##################################### // LF XOSC #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x2 // Don't apply cap-array delta #define SET_CCFG_MODE_CONF_XOSC_CAP_MOD 0x1 //##################################### // Special HF clock source setting //##################################### // HF source is a 48 MHz xtal #define SET_CCFG_MODE_CONF_XOSC_FREQ 0x2 //##################################### // Bootloader settings //##################################### // Disable ROM boot loader #define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0x00 // Default address in IMAGE_VALID_CONF register #define SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID 0x00000000 //##################################### // Debug access settings //##################################### // Disable unlocking of TI Failure Analysis option #define SET_CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE 0x00 // Disable customer key CKEY0-3 to be XOR'ed with TI FA option unlock key #define SET_CCFG_CCFG_TI_OPTIONS_C_FA_DIS 0xC5 // Access enabled if also enabled in FCFG #define SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE 0xC5 // Access disabled #define SET_CCFG_CCFG_TAP_DAP_0_PWRPROF_TAP_ENABLE 0x00 // Access disabled #define SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE 0x00 // Access disabled #define SET_CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE 0x00 // Access disabled #define SET_CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE 0x00 // Access disabled #define SET_CCFG_CCFG_TAP_DAP_1_AON_TAP_ENABLE 0x00 //##################################### // Select between cache or GPRAM //##################################### // Cache is enabled and GPRAM is disabled (unavailable) #define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM 0x1 // Set all of flash to non-secure, except the lowest 8 KB #define SET_CCFG_TRUSTZONE_FLASH_CFG_NSADDR_BOUNDARY 0x1 //##################################### // Bus security settings //##################################### /* * ======== Include Base Settings for device ======== */ #include <ti/devices/DeviceFamily.h> #include DeviceFamily_constructPath(startup_files/ccfg.c)
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
/****************************************************************************** * 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. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ #ifndef __CCFC_C__ #define __CCFC_C__ #include <stdint.h> #include "../inc/hw_types.h" #include "../inc/hw_ccfg.h" #include "../inc/hw_ccfg_simple_struct.h" //***************************************************************************** // // Introduction // // This file contains fields used by Boot ROM, startup code, and SW radio // stacks to configure chip behavior. // // Fields are documented in more details in hw_ccfg.h and CCFG.html in // DriverLib documentation (doc_overview.html -> CPU Domain Memory Map -> CCFG). // // PLEASE NOTE: // It is not recommended to do modifications inside the ccfg.c file. // This file is part of the CoreSDK release and future releases may have // important modifications and new fields added without notice. // The recommended method to modify the CCFG settings is to have a separate // <customer_ccfg>.c file that defines the specific CCFG values to be // overridden and then include the TI provided ccfg.c at the very end, // giving default values for non-overriden settings. // // Example: // #define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0xC5 // Enable ROM boot loader // #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x3 // LF RCOSC // //---- Use default values for all others ---- // #include "<project-path>/source/ti/devices/<device>/startup_files/ccfg.c" // //***************************************************************************** //***************************************************************************** // // Internal settings, forcing several bit-fields to be set to a specific value. // //***************************************************************************** //##################################### // Force VDDR high setting (Higher output power but also higher power consumption) // This is also called "boost mode" // WARNING: CCFG_FORCE_VDDR_HH must not be set to 1 if running in external regulator mode. //##################################### #ifndef CCFG_FORCE_VDDR_HH #define CCFG_FORCE_VDDR_HH 0x0 // Use default VDDR trim // #define CCFG_FORCE_VDDR_HH 0x1 // Force VDDR voltage to the factory HH setting (FCFG1..VDDR_TRIM_HH) #endif //***************************************************************************** // // Set the values of the individual bit fields. // //***************************************************************************** //##################################### // Alternative DC/DC settings //##################################### #ifndef SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING #define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING 0x0 // Alternative DC/DC setting enabled // #define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING 0x1 // Alternative DC/DC setting disabled #endif #if ( CCFG_FORCE_VDDR_HH ) #define SET_CCFG_MODE_CONF_1_ALT_DCDC_VMIN 0xC // Special VMIN level (2.5V) when forced VDDR HH voltage #else #ifndef SET_CCFG_MODE_CONF_1_ALT_DCDC_VMIN #define SET_CCFG_MODE_CONF_1_ALT_DCDC_VMIN 0x8 // 2.25V #endif #endif #ifndef SET_CCFG_MODE_CONF_1_ALT_DCDC_DITHER_EN #define SET_CCFG_MODE_CONF_1_ALT_DCDC_DITHER_EN 0x0 // Dithering disabled // #define SET_CCFG_MODE_CONF_1_ALT_DCDC_DITHER_EN 0x1 // Dithering enabled #endif #ifndef SET_CCFG_MODE_CONF_1_ALT_DCDC_IPEAK #define SET_CCFG_MODE_CONF_1_ALT_DCDC_IPEAK 0x0 // Peak current #endif //##################################### // XOSC override settings //##################################### #ifndef SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR // #define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR 0x0 // Enable override #define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR 0x1 // Disable override #endif #ifndef SET_CCFG_MODE_CONF_1_DELTA_IBIAS_INIT #define SET_CCFG_MODE_CONF_1_DELTA_IBIAS_INIT 0x0 // Delta = 0 #endif #ifndef SET_CCFG_MODE_CONF_1_DELTA_IBIAS_OFFSET #define SET_CCFG_MODE_CONF_1_DELTA_IBIAS_OFFSET 0x0 // Delta = 0 #endif #ifndef SET_CCFG_MODE_CONF_1_XOSC_MAX_START #define SET_CCFG_MODE_CONF_1_XOSC_MAX_START 0x10 // 1600us #endif //##################################### // Power settings //##################################### #ifndef SET_CCFG_MODE_CONF_VDDR_TRIM_SLEEP_DELTA #define SET_CCFG_MODE_CONF_VDDR_TRIM_SLEEP_DELTA 0xF // Signed delta value +1 to apply to the VDDR_TRIM_SLEEP target (0xF=-1=default=no compensation) #endif #ifndef SET_CCFG_MODE_CONF_DCDC_RECHARGE #define SET_CCFG_MODE_CONF_DCDC_RECHARGE 0x0 // Use the DC/DC during recharge in powerdown // #define SET_CCFG_MODE_CONF_DCDC_RECHARGE 0x1 // Do not use the DC/DC during recharge in powerdown #endif #ifndef SET_CCFG_MODE_CONF_DCDC_ACTIVE #define SET_CCFG_MODE_CONF_DCDC_ACTIVE 0x0 // Use the DC/DC during active mode // #define SET_CCFG_MODE_CONF_DCDC_ACTIVE 0x1 // Do not use the DC/DC during active mode #endif #if ( CCFG_FORCE_VDDR_HH ) #define SET_CCFG_MODE_CONF_VDDS_BOD_LEVEL 0x1 // Special setting to enable forced VDDR HH voltage #else #ifndef SET_CCFG_MODE_CONF_VDDS_BOD_LEVEL // #define SET_CCFG_MODE_CONF_VDDS_BOD_LEVEL 0x0 // VDDS BOD level is 2.0V #define SET_CCFG_MODE_CONF_VDDS_BOD_LEVEL 0x1 // VDDS BOD level is 1.8V (or 1.65V for external regulator mode) #endif #endif #ifndef SET_CCFG_MODE_CONF_VDDR_TRIM_SLEEP_TC #define SET_CCFG_MODE_CONF_VDDR_TRIM_SLEEP_TC 0x1 // Temperature compensation on VDDR sleep trim disabled (default) // #define SET_CCFG_MODE_CONF_VDDR_TRIM_SLEEP_TC 0x0 // Temperature compensation on VDDR sleep trim enabled #endif //##################################### // Clock settings //##################################### #ifndef SET_CCFG_MODE_CONF_SCLK_LF_OPTION // #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x0 // LF clock derived from HF clock. Note: using this configuration will block the device from entering Standby mode. // #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x1 // External LF clock #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x2 // LF XOSC // #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x3 // LF RCOSC #endif #ifndef SET_CCFG_MODE_CONF_XOSC_CAP_MOD // #define SET_CCFG_MODE_CONF_XOSC_CAP_MOD 0x0 // Apply cap-array delta #define SET_CCFG_MODE_CONF_XOSC_CAP_MOD 0x1 // Don't apply cap-array delta #endif #ifndef SET_CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA #define SET_CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA 0xFF // Signed 8-bit value, directly modifying trimmed XOSC cap-array value #endif #ifndef SET_CCFG_EXT_LF_CLK_DIO #define SET_CCFG_EXT_LF_CLK_DIO 0x01 // DIO number if using external LF clock #endif #ifndef SET_CCFG_EXT_LF_CLK_RTC_INCREMENT #define SET_CCFG_EXT_LF_CLK_RTC_INCREMENT 0x800000 // RTC increment representing the external LF clock frequency #endif //##################################### // Special HF clock source setting //##################################### #ifndef SET_CCFG_MODE_CONF_XOSC_FREQ // #define SET_CCFG_MODE_CONF_XOSC_FREQ 0x0 // HF source is 48 MHz TCXO // #define SET_CCFG_MODE_CONF_XOSC_FREQ 0x1 // HF source is HPOSC (BAW) (only valid for CC2652RB) #define SET_CCFG_MODE_CONF_XOSC_FREQ 0x2 // HF source is a 48 MHz xtal // #define SET_CCFG_MODE_CONF_XOSC_FREQ 0x3 // HF source is a 24 MHz xtal (not supported) #endif //##################################### // Bootloader settings //##################################### #ifndef SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE #define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0x00 // Disable ROM boot loader // #define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0xC5 // Enable ROM boot loader #endif #ifndef SET_CCFG_BL_CONFIG_BL_LEVEL // #define SET_CCFG_BL_CONFIG_BL_LEVEL 0x0 // Active low to open boot loader backdoor #define SET_CCFG_BL_CONFIG_BL_LEVEL 0x1 // Active high to open boot loader backdoor #endif #ifndef SET_CCFG_BL_CONFIG_BL_PIN_NUMBER #define SET_CCFG_BL_CONFIG_BL_PIN_NUMBER 0xFF // DIO number for boot loader backdoor #endif #ifndef SET_CCFG_BL_CONFIG_BL_ENABLE // #define SET_CCFG_BL_CONFIG_BL_ENABLE 0xC5 // Enabled boot loader backdoor #define SET_CCFG_BL_CONFIG_BL_ENABLE 0xFF // Disabled boot loader backdoor #endif //##################################### // Debug access settings //##################################### #ifndef SET_CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE #define SET_CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE 0x00 // Disable unlocking of TI FA option // #define SET_CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE 0xC5 // Enable unlocking of TI FA option with the unlock key #endif #ifndef SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE // #define SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE 0x00 // Access disabled #define SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE 0xC5 // Access enabled if also enabled in FCFG #endif #ifndef SET_CCFG_CCFG_TAP_DAP_0_PWRPROF_TAP_ENABLE //#define SET_CCFG_CCFG_TAP_DAP_0_PWRPROF_TAP_ENABLE 0x00 // Access disabled #define SET_CCFG_CCFG_TAP_DAP_0_PWRPROF_TAP_ENABLE 0xC5 // Access enabled if also enabled in FCFG #endif #ifndef SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE #define SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE 0x00 // Access disabled //#define SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE 0xC5 // Access enabled if also enabled in FCFG #endif #ifndef SET_CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE #define SET_CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE 0x00 // Access disabled // #define SET_CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE 0xC5 // Access enabled if also enabled in FCFG #endif #ifndef SET_CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE #define SET_CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE 0x00 // Access disabled // #define SET_CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE 0xC5 // Access enabled if also enabled in FCFG #endif #ifndef SET_CCFG_CCFG_TAP_DAP_1_AON_TAP_ENABLE #define SET_CCFG_CCFG_TAP_DAP_1_AON_TAP_ENABLE 0x00 // Access disabled // #define SET_CCFG_CCFG_TAP_DAP_1_AON_TAP_ENABLE 0xC5 // Access enabled if also enabled in FCFG #endif #ifndef SET_CCFG_CCFG_TI_OPTIONS_C_FA_DIS // #define SET_CCFG_CCFG_TI_OPTIONS_C_FA_DIS 0x00 // Enable customer key CKEY0-3 to be XOR'ed with TI FA option unlock key #define SET_CCFG_CCFG_TI_OPTIONS_C_FA_DIS 0xC5 // Disable customer key CKEY0-3 to be XOR'ed with TI FA option unlock key #endif #ifndef SET_CCFG_CKEY0 #define SET_CCFG_CKEY0 0xFFFFFFFF // Bits [31:0] #endif #ifndef SET_CCFG_CKEY1 #define SET_CCFG_CKEY1 0xFFFFFFFF // Bits [63:32] #endif #ifndef SET_CCFG_CKEY2 #define SET_CCFG_CKEY2 0xFFFFFFFF // Bits [95:64] #endif #ifndef SET_CCFG_CKEY3 #define SET_CCFG_CKEY3 0xFFFFFFFF // Bits [127:96] #endif //##################################### // Alternative IEEE 802.15.4 MAC address //##################################### #ifndef SET_CCFG_IEEE_MAC_0 #define SET_CCFG_IEEE_MAC_0 0xFFFFFFFF // Bits [31:0] #endif #ifndef SET_CCFG_IEEE_MAC_1 #define SET_CCFG_IEEE_MAC_1 0xFFFFFFFF // Bits [63:32] #endif //##################################### // Alternative BLE address //##################################### #ifndef SET_CCFG_IEEE_BLE_0 #define SET_CCFG_IEEE_BLE_0 0xFFFFFFFF // Bits [31:0] #endif #ifndef SET_CCFG_IEEE_BLE_1 #define SET_CCFG_IEEE_BLE_1 0xFFFFFFFF // Bits [63:32] #endif //##################################### // Flash erase settings //##################################### #ifndef SET_CCFG_ERASE_CONF_CHIP_ERASE_DIS_N // #define SET_CCFG_ERASE_CONF_CHIP_ERASE_DIS_N 0x0 // Any chip erase request detected during boot will be ignored #define SET_CCFG_ERASE_CONF_CHIP_ERASE_DIS_N 0x1 // Any chip erase request detected during boot will be performed by the boot FW #endif #ifndef SET_CCFG_ERASE_CONF_BANK_ERASE_DIS_N // #define SET_CCFG_ERASE_CONF_BANK_ERASE_DIS_N 0x0 // Disable the boot loader bank erase function #define SET_CCFG_ERASE_CONF_BANK_ERASE_DIS_N 0x1 // Enable the boot loader bank erase function #endif #ifndef SET_CCFG_ERASE_CONF_1_WEPROT_CCFG_N // #define SET_CCFG_ERASE_CONF_1_WEPROT_CCFG_N 0x0 // Disable CCFG from being erased or programmed (Warning: This is sticky/permanent) #define SET_CCFG_ERASE_CONF_1_WEPROT_CCFG_N 0x1 // Enable CCFG erase and program #endif //##################################### // Flash image valid //##################################### #ifndef SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID #define SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID 0x00000000 // Flash image vector table is at address 0x00000000 (default) // #define SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID <valid_vector_table_addr> // Flash image vector table is at address <valid_vector_table_addr> // #define SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID <invalid_vector_table_addr> // Flash image vector table address is invalid. ROM boot loader is called. #endif //##################################### // Flash sector write protection //##################################### #ifndef SET_CCFG_CCFG_WEPROT_31_0_BY2K #define SET_CCFG_CCFG_WEPROT_31_0_BY2K 0xFFFFFFFF #endif #ifndef SET_CCFG_CCFG_WEPROT_SPARE_1 #define SET_CCFG_CCFG_WEPROT_SPARE_1 0xFFFFFFFF #endif #ifndef SET_CCFG_CCFG_WEPROT_SPARE_2 #define SET_CCFG_CCFG_WEPROT_SPARE_2 0xFFFFFFFF #endif #ifndef SET_CCFG_CCFG_WEPROT_SPARE_3 #define SET_CCFG_CCFG_WEPROT_SPARE_3 0xFFFFFFFF #endif //##################################### // Select between cache or GPRAM //##################################### #ifndef SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM // #define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM 0x0 // Cache is disabled and GPRAM is available at 0x11000000-0x11001FFF #define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM 0x1 // Cache is enabled and GPRAM is disabled (unavailable) #endif //##################################### // TCXO settings //##################################### #ifndef SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_TCXO #define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_TCXO 0x1 // Deprecated. Must be set to 0x1. #endif #ifndef SET_CCFG_MODE_CONF_1_TCXO_TYPE #define SET_CCFG_MODE_CONF_1_TCXO_TYPE 0x1 // 1 = Clipped-sine type. //#define SET_CCFG_MODE_CONF_1_TCXO_TYPE 0x0 // 0 = CMOS type. #endif #ifndef SET_CCFG_MODE_CONF_1_TCXO_MAX_START #define SET_CCFG_MODE_CONF_1_TCXO_MAX_START 0x7F // Maximum TCXO startup time in units of 100us. #endif //##################################### // Trustzone settings //##################################### #ifndef SET_CCFG_CCFG_TI_OPTIONS_IDAU_CFG_ENABLE #define SET_CCFG_CCFG_TI_OPTIONS_IDAU_CFG_ENABLE 0x0 // Must be any value except 0xC5 //#define SET_CCFG_CCFG_TI_OPTIONS_IDAU_CFG_ENABLE 0xC5 // Disable IDAU configuration #endif #ifndef SET_CCFG_TRUSTZONE_FLASH_CFG_NSADDR_BOUNDARY #define SET_CCFG_TRUSTZONE_FLASH_CFG_NSADDR_BOUNDARY 0x0 // Min value; set all except the lowest 8KB of flash as nonsecure //#define SET_CCFG_TRUSTZONE_FLASH_CFG_NSADDR_BOUNDARY 0x3FF // Max value; all flash is secure-only #endif #ifndef SET_CCFG_TRUSTZONE_FLASH_CFG_NSCADDR_BOUNDARY #define SET_CCFG_TRUSTZONE_FLASH_CFG_NSCADDR_BOUNDARY 0x0 // Min value; set all flash as nonsecure callable //#define SET_CCFG_TRUSTZONE_FLASH_CFG_NSCADDR_BOUNDARY 0x7F // Max value; all flash is secure-only #endif #ifndef SET_CCFG_TRUSTZONE_SRAM_CFG_NSADDR_BOUNDARY #define SET_CCFG_TRUSTZONE_SRAM_CFG_NSADDR_BOUNDARY 0x0 // Min value; set all SRAM as nonsecure //#define SET_CCFG_TRUSTZONE_SRAM_CFG_NSADDR_BOUNDARY 0x1FF // Max value; all SRAM is secure-only #endif #ifndef SET_CCFG_TRUSTZONE_SRAM_CFG_NSCADDR_BOUNDARY #define SET_CCFG_TRUSTZONE_SRAM_CFG_NSCADDR_BOUNDARY 0x0 // Min value; set all SRAM as nonsecure callable //#define SET_CCFG_TRUSTZONE_SRAM_CFG_NSCADDR_BOUNDARY 0x1FF // Max value; all SRAM is secure-only #endif //##################################### // SRAM configuration //##################################### #ifndef SET_CCFG_SRAM_CFG_MEM_SEL #define SET_CCFG_SRAM_CFG_MEM_SEL 0xFFFFFF // Enable all memory banks #endif #ifndef SET_CCFG_SRAM_CFG_PARITY_DIS #define SET_CCFG_SRAM_CFG_PARITY_DIS 0x0 // Enable parity //#define SET_CCFG_SRAM_CFG_PARITY_DIS 0x1 // Disable parity #endif //##################################### // Bus security settings //##################################### #ifndef SET_CCFG_CPU_LOCK_CFG_LOCKNSVTOR #define SET_CCFG_CPU_LOCK_CFG_LOCKNSVTOR 0x1 // Disable lock on non-secure vector table base address //#define SET_CCFG_CPU_LOCK_CFG_LOCKNSVTOR 0x1 // Enable lock on non-secure vector table base address #endif #ifndef SET_CCFG_CPU_LOCK_CFG_LOCKSVTAIRCR #define SET_CCFG_CPU_LOCK_CFG_LOCKSVTAIRCR 0x1 // Disable lock on secure interrupt config //#define SET_CCFG_CPU_LOCK_CFG_LOCKSVTAIRCR 0x1 // Enable lock on secure interrupt config #endif #ifndef SET_CCFG_CPU_LOCK_CFG_LOCKSAU #define SET_CCFG_CPU_LOCK_CFG_LOCKSAU 0x1 // Disable lock on SAU regions //#define SET_CCFG_CPU_LOCK_CFG_LOCKSAU 0x1 // Enable lock on SAU regions #endif #ifndef SET_CCFG_CPU_LOCK_CFG_LOCKNSMPU #define SET_CCFG_CPU_LOCK_CFG_LOCKNSMPU 0x1 // Disable lock on non-secure MPU //#define SET_CCFG_CPU_LOCK_CFG_LOCKNSMPU 0x1 // Enable lock on non-secure MPU #endif #ifndef SET_CCFG_CPU_LOCK_CFG_LOCKSMPU #define SET_CCFG_CPU_LOCK_CFG_LOCKSMPU 0x1 // Disable lock on secure MPU //#define SET_CCFG_CPU_LOCK_CFG_LOCKSMPU 0x1 // Enable lock on secure MPU #endif //##################################### // Bus authentication settings //##################################### #ifndef SET_CCFG_DEB_AUTH_CFG_INTSPNIDEN #define SET_CCFG_DEB_AUTH_CFG_INTSPNIDEN 0x1 // Internal secure non-invasive debug enable //#define SET_CCFG_DEB_AUTH_CFG_INTSPNIDEN 0x0 // Internal secure non-invasive debug disable #endif #ifndef SET_CCFG_DEB_AUTH_CFG_SPNIDENSEL #define SET_CCFG_DEB_AUTH_CFG_SPNIDENSEL 0x1 // Internal secure non-invasive debug select //#define SET_CCFG_DEB_AUTH_CFG_SPNIDENSEL 0x0 // Internal secure non-invasive debug deselect #endif #ifndef SET_CCFG_DEB_AUTH_CFG_INTSPIDEN #define SET_CCFG_DEB_AUTH_CFG_INTSPIDEN 0x1 // Internal secure invasive debug enable //#define SET_CCFG_DEB_AUTH_CFG_INTSPIDEN 0x0 // Internal secure invasive debug disable #endif #ifndef SET_CCFG_DEB_AUTH_CFG_SPIDENSEL #define SET_CCFG_DEB_AUTH_CFG_SPIDENSEL 0x1 // Internal secure invasive debug select //#define SET_CCFG_DEB_AUTH_CFG_SPIDENSEL 0x0 // Internal secure invasive debug deselect #endif //***************************************************************************** // // CCFG values that should not be modified. // //***************************************************************************** #define SET_CCFG_SIZE_AND_DIS_FLAGS_SIZE_OF_CCFG 0x007C #define SET_CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS (CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS_M >> CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS_S) #if ( CCFG_FORCE_VDDR_HH ) #define SET_CCFG_MODE_CONF_VDDR_EXT_LOAD 0x0 // Special setting to enable forced VDDR HH voltage #else #define SET_CCFG_MODE_CONF_VDDR_EXT_LOAD 0x1 #endif #define SET_CCFG_MODE_CONF_RTC_COMP 0x1 #define SET_CCFG_MODE_CONF_HF_COMP 0x1 #define SET_CCFG_VOLT_LOAD_0_VDDR_EXT_TP45 0xFF #define SET_CCFG_VOLT_LOAD_0_VDDR_EXT_TP25 0xFF #define SET_CCFG_VOLT_LOAD_0_VDDR_EXT_TP5 0xFF #define SET_CCFG_VOLT_LOAD_0_VDDR_EXT_TM15 0xFF #define SET_CCFG_VOLT_LOAD_1_VDDR_EXT_TP125 0xFF #define SET_CCFG_VOLT_LOAD_1_VDDR_EXT_TP105 0xFF #define SET_CCFG_VOLT_LOAD_1_VDDR_EXT_TP85 0xFF #define SET_CCFG_VOLT_LOAD_1_VDDR_EXT_TP65 0xFF #define SET_CCFG_RESERVED0 0xFFFFFFFF //***************************************************************************** // // Concatenate bit fields to words. // DO NOT EDIT! // //***************************************************************************** #define DEFAULT_CCFG_SIZE_AND_DIS_FLAGS ( \ ((((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_SIZE_OF_CCFG )) << CCFG_SIZE_AND_DIS_FLAGS_SIZE_OF_CCFG_S ) | ~CCFG_SIZE_AND_DIS_FLAGS_SIZE_OF_CCFG_M ) & \ ((((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS )) << CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS_S ) | ~CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS_M ) & \ ((((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_TCXO )) << CCFG_SIZE_AND_DIS_FLAGS_DIS_TCXO_S ) | ~CCFG_SIZE_AND_DIS_FLAGS_DIS_TCXO_M ) & \ ((((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM )) << CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM_S ) | ~CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM_M ) & \ ((((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING )) << CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING_S ) | ~CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING_M ) & \ ((((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR )) << CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR_S ) | ~CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR_M ) ) #define DEFAULT_CCFG_MODE_CONF ( \ ((((uint32_t)( SET_CCFG_MODE_CONF_VDDR_TRIM_SLEEP_DELTA )) << CCFG_MODE_CONF_VDDR_TRIM_SLEEP_DELTA_S ) | ~CCFG_MODE_CONF_VDDR_TRIM_SLEEP_DELTA_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_DCDC_RECHARGE )) << CCFG_MODE_CONF_DCDC_RECHARGE_S ) | ~CCFG_MODE_CONF_DCDC_RECHARGE_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_DCDC_ACTIVE )) << CCFG_MODE_CONF_DCDC_ACTIVE_S ) | ~CCFG_MODE_CONF_DCDC_ACTIVE_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_VDDR_EXT_LOAD )) << CCFG_MODE_CONF_VDDR_EXT_LOAD_S ) | ~CCFG_MODE_CONF_VDDR_EXT_LOAD_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_VDDS_BOD_LEVEL )) << CCFG_MODE_CONF_VDDS_BOD_LEVEL_S ) | ~CCFG_MODE_CONF_VDDS_BOD_LEVEL_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_SCLK_LF_OPTION )) << CCFG_MODE_CONF_SCLK_LF_OPTION_S ) | ~CCFG_MODE_CONF_SCLK_LF_OPTION_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_VDDR_TRIM_SLEEP_TC )) << CCFG_MODE_CONF_VDDR_TRIM_SLEEP_TC_S ) | ~CCFG_MODE_CONF_VDDR_TRIM_SLEEP_TC_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_RTC_COMP )) << CCFG_MODE_CONF_RTC_COMP_S ) | ~CCFG_MODE_CONF_RTC_COMP_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_XOSC_FREQ )) << CCFG_MODE_CONF_XOSC_FREQ_S ) | ~CCFG_MODE_CONF_XOSC_FREQ_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_XOSC_CAP_MOD )) << CCFG_MODE_CONF_XOSC_CAP_MOD_S ) | ~CCFG_MODE_CONF_XOSC_CAP_MOD_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_HF_COMP )) << CCFG_MODE_CONF_HF_COMP_S ) | ~CCFG_MODE_CONF_HF_COMP_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA )) << CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA_S ) | ~CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA_M ) ) #define DEFAULT_CCFG_MODE_CONF_1 ( \ ((((uint32_t)( SET_CCFG_MODE_CONF_1_TCXO_TYPE )) << CCFG_MODE_CONF_1_TCXO_TYPE_S ) | ~CCFG_MODE_CONF_1_TCXO_TYPE_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_1_TCXO_MAX_START )) << CCFG_MODE_CONF_1_TCXO_MAX_START_S ) | ~CCFG_MODE_CONF_1_TCXO_MAX_START_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_1_ALT_DCDC_VMIN )) << CCFG_MODE_CONF_1_ALT_DCDC_VMIN_S ) | ~CCFG_MODE_CONF_1_ALT_DCDC_VMIN_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_1_ALT_DCDC_DITHER_EN )) << CCFG_MODE_CONF_1_ALT_DCDC_DITHER_EN_S ) | ~CCFG_MODE_CONF_1_ALT_DCDC_DITHER_EN_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_1_ALT_DCDC_IPEAK )) << CCFG_MODE_CONF_1_ALT_DCDC_IPEAK_S ) | ~CCFG_MODE_CONF_1_ALT_DCDC_IPEAK_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_1_DELTA_IBIAS_INIT )) << CCFG_MODE_CONF_1_DELTA_IBIAS_INIT_S ) | ~CCFG_MODE_CONF_1_DELTA_IBIAS_INIT_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_1_DELTA_IBIAS_OFFSET )) << CCFG_MODE_CONF_1_DELTA_IBIAS_OFFSET_S ) | ~CCFG_MODE_CONF_1_DELTA_IBIAS_OFFSET_M ) & \ ((((uint32_t)( SET_CCFG_MODE_CONF_1_XOSC_MAX_START )) << CCFG_MODE_CONF_1_XOSC_MAX_START_S ) | ~CCFG_MODE_CONF_1_XOSC_MAX_START_M ) ) #define DEFAULT_CCFG_VOLT_LOAD_0 ( \ ((((uint32_t)( SET_CCFG_VOLT_LOAD_0_VDDR_EXT_TP45 )) << CCFG_VOLT_LOAD_0_VDDR_EXT_TP45_S ) | ~CCFG_VOLT_LOAD_0_VDDR_EXT_TP45_M ) & \ ((((uint32_t)( SET_CCFG_VOLT_LOAD_0_VDDR_EXT_TP25 )) << CCFG_VOLT_LOAD_0_VDDR_EXT_TP25_S ) | ~CCFG_VOLT_LOAD_0_VDDR_EXT_TP25_M ) & \ ((((uint32_t)( SET_CCFG_VOLT_LOAD_0_VDDR_EXT_TP5 )) << CCFG_VOLT_LOAD_0_VDDR_EXT_TP5_S ) | ~CCFG_VOLT_LOAD_0_VDDR_EXT_TP5_M ) & \ ((((uint32_t)( SET_CCFG_VOLT_LOAD_0_VDDR_EXT_TM15 )) << CCFG_VOLT_LOAD_0_VDDR_EXT_TM15_S ) | ~CCFG_VOLT_LOAD_0_VDDR_EXT_TM15_M ) ) #define DEFAULT_CCFG_VOLT_LOAD_1 ( \ ((((uint32_t)( SET_CCFG_VOLT_LOAD_1_VDDR_EXT_TP125 )) << CCFG_VOLT_LOAD_1_VDDR_EXT_TP125_S ) | ~CCFG_VOLT_LOAD_1_VDDR_EXT_TP125_M ) & \ ((((uint32_t)( SET_CCFG_VOLT_LOAD_1_VDDR_EXT_TP105 )) << CCFG_VOLT_LOAD_1_VDDR_EXT_TP105_S ) | ~CCFG_VOLT_LOAD_1_VDDR_EXT_TP105_M ) & \ ((((uint32_t)( SET_CCFG_VOLT_LOAD_1_VDDR_EXT_TP85 )) << CCFG_VOLT_LOAD_1_VDDR_EXT_TP85_S ) | ~CCFG_VOLT_LOAD_1_VDDR_EXT_TP85_M ) & \ ((((uint32_t)( SET_CCFG_VOLT_LOAD_1_VDDR_EXT_TP65 )) << CCFG_VOLT_LOAD_1_VDDR_EXT_TP65_S ) | ~CCFG_VOLT_LOAD_1_VDDR_EXT_TP65_M ) ) #define DEFAULT_CCFG_EXT_LF_CLK ( \ ((((uint32_t)( SET_CCFG_EXT_LF_CLK_DIO )) << CCFG_EXT_LF_CLK_DIO_S ) | ~CCFG_EXT_LF_CLK_DIO_M ) & \ ((((uint32_t)( SET_CCFG_EXT_LF_CLK_RTC_INCREMENT )) << CCFG_EXT_LF_CLK_RTC_INCREMENT_S ) | ~CCFG_EXT_LF_CLK_RTC_INCREMENT_M ) ) #define DEFAULT_CCFG_IEEE_MAC_0 SET_CCFG_IEEE_MAC_0 #define DEFAULT_CCFG_IEEE_MAC_1 SET_CCFG_IEEE_MAC_1 #define DEFAULT_CCFG_IEEE_BLE_0 SET_CCFG_IEEE_BLE_0 #define DEFAULT_CCFG_IEEE_BLE_1 SET_CCFG_IEEE_BLE_1 #define DEFAULT_CCFG_BL_CONFIG ( \ ((((uint32_t)( SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE )) << CCFG_BL_CONFIG_BOOTLOADER_ENABLE_S ) | ~CCFG_BL_CONFIG_BOOTLOADER_ENABLE_M ) & \ ((((uint32_t)( SET_CCFG_BL_CONFIG_BL_LEVEL )) << CCFG_BL_CONFIG_BL_LEVEL_S ) | ~CCFG_BL_CONFIG_BL_LEVEL_M ) & \ ((((uint32_t)( SET_CCFG_BL_CONFIG_BL_PIN_NUMBER )) << CCFG_BL_CONFIG_BL_PIN_NUMBER_S ) | ~CCFG_BL_CONFIG_BL_PIN_NUMBER_M ) & \ ((((uint32_t)( SET_CCFG_BL_CONFIG_BL_ENABLE )) << CCFG_BL_CONFIG_BL_ENABLE_S ) | ~CCFG_BL_CONFIG_BL_ENABLE_M ) ) #define DEFAULT_CCFG_ERASE_CONF ( \ ((((uint32_t)( SET_CCFG_ERASE_CONF_CHIP_ERASE_DIS_N )) << CCFG_ERASE_CONF_CHIP_ERASE_DIS_N_S ) | ~CCFG_ERASE_CONF_CHIP_ERASE_DIS_N_M ) & \ ((((uint32_t)( SET_CCFG_ERASE_CONF_BANK_ERASE_DIS_N )) << CCFG_ERASE_CONF_BANK_ERASE_DIS_N_S ) | ~CCFG_ERASE_CONF_BANK_ERASE_DIS_N_M ) ) #define DEFAULT_CCFG_ERASE_CONF_1 ( \ ((((uint32_t)( SET_CCFG_ERASE_CONF_1_WEPROT_CCFG_N )) << CCFG_ERASE_CONF_1_WEPROT_CCFG_N_S ) | ~CCFG_ERASE_CONF_1_WEPROT_CCFG_N_M ) ) #define DEFAULT_CCFG_CCFG_TI_OPTIONS ( \ ((((uint32_t)( SET_CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE )) << CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE_S ) | ~CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE_M ) & \ ((((uint32_t)( SET_CCFG_CCFG_TI_OPTIONS_IDAU_CFG_ENABLE )) << CCFG_CCFG_TI_OPTIONS_IDAU_CFG_ENABLE_S ) | ~CCFG_CCFG_TI_OPTIONS_IDAU_CFG_ENABLE_M ) & \ ((((uint32_t)( SET_CCFG_CCFG_TI_OPTIONS_C_FA_DIS )) << CCFG_CCFG_TI_OPTIONS_C_FA_DIS_S ) | ~CCFG_CCFG_TI_OPTIONS_C_FA_DIS_M ) ) #define DEFAULT_CCFG_CCFG_TAP_DAP_0 ( \ ((((uint32_t)( SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE )) << CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE_S ) | ~CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE_M ) & \ ((((uint32_t)( SET_CCFG_CCFG_TAP_DAP_0_PWRPROF_TAP_ENABLE )) << CCFG_CCFG_TAP_DAP_0_PWRPROF_TAP_ENABLE_S ) | ~CCFG_CCFG_TAP_DAP_0_PWRPROF_TAP_ENABLE_M ) & \ ((((uint32_t)( SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE )) << CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE_S ) | ~CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE_M ) ) #define DEFAULT_CCFG_CCFG_TAP_DAP_1 ( \ ((((uint32_t)( SET_CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE )) << CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE_S ) | ~CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE_M ) & \ ((((uint32_t)( SET_CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE )) << CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE_S ) | ~CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE_M ) & \ ((((uint32_t)( SET_CCFG_CCFG_TAP_DAP_1_AON_TAP_ENABLE )) << CCFG_CCFG_TAP_DAP_1_AON_TAP_ENABLE_S ) | ~CCFG_CCFG_TAP_DAP_1_AON_TAP_ENABLE_M ) ) #define DEFAULT_CCFG_IMAGE_VALID_CONF SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID #define DEFAULT_CCFG_WEPROT_31_0_BY2K SET_CCFG_CCFG_WEPROT_31_0_BY2K #define DEFAULT_CCFG_WEPROT_SPARE_1 SET_CCFG_CCFG_WEPROT_SPARE_1 #define DEFAULT_CCFG_WEPROT_SPARE_2 SET_CCFG_CCFG_WEPROT_SPARE_2 #define DEFAULT_CCFG_WEPROT_SPARE_3 SET_CCFG_CCFG_WEPROT_SPARE_3 #define DEFAULT_CCFG_TRUSTZONE_FLASH_CFG ( \ ((((uint32_t)( SET_CCFG_TRUSTZONE_FLASH_CFG_NSADDR_BOUNDARY )) << CCFG_TRUSTZONE_FLASH_CFG_NSADDR_BOUNDARY_S ) | ~CCFG_TRUSTZONE_FLASH_CFG_NSADDR_BOUNDARY_M ) & \ ((((uint32_t)( SET_CCFG_TRUSTZONE_FLASH_CFG_NSCADDR_BOUNDARY )) << CCFG_TRUSTZONE_FLASH_CFG_NSCADDR_BOUNDARY_S ) | ~CCFG_TRUSTZONE_FLASH_CFG_NSCADDR_BOUNDARY_M ) ) #define DEFAULT_CCFG_TRUSTZONE_SRAM_CFG ( \ ((((uint32_t)( SET_CCFG_TRUSTZONE_SRAM_CFG_NSADDR_BOUNDARY )) << CCFG_TRUSTZONE_SRAM_CFG_NSADDR_BOUNDARY_S ) | ~CCFG_TRUSTZONE_SRAM_CFG_NSADDR_BOUNDARY_M ) & \ ((((uint32_t)( SET_CCFG_TRUSTZONE_SRAM_CFG_NSCADDR_BOUNDARY )) << CCFG_TRUSTZONE_SRAM_CFG_NSCADDR_BOUNDARY_S ) | ~CCFG_TRUSTZONE_SRAM_CFG_NSCADDR_BOUNDARY_M ) ) #define DEFAULT_CCFG_SRAM_CFG ( \ ((((uint32_t)( SET_CCFG_SRAM_CFG_MEM_SEL )) << CCFG_SRAM_CFG_MEM_SEL_S ) | ~CCFG_SRAM_CFG_MEM_SEL_M ) & \ ((((uint32_t)( SET_CCFG_SRAM_CFG_PARITY_DIS )) << CCFG_SRAM_CFG_PARITY_DIS_S ) | ~CCFG_SRAM_CFG_PARITY_DIS_M ) ) #define DEFAULT_CCFG_RESERVED0 SET_CCFG_RESERVED0 #define DEFAULT_CCFG_CPU_LOCK_CFG ( \ ((((uint32_t)( SET_CCFG_CPU_LOCK_CFG_LOCKNSVTOR )) << CCFG_CPU_LOCK_CFG_LOCKNSVTOR_N_S ) | ~CCFG_CPU_LOCK_CFG_LOCKNSVTOR_N_M ) & \ ((((uint32_t)( SET_CCFG_CPU_LOCK_CFG_LOCKSVTAIRCR )) << CCFG_CPU_LOCK_CFG_LOCKSVTAIRCR_N_S ) | ~CCFG_CPU_LOCK_CFG_LOCKSVTAIRCR_N_M ) & \ ((((uint32_t)( SET_CCFG_CPU_LOCK_CFG_LOCKSAU )) << CCFG_CPU_LOCK_CFG_LOCKSAU_N_S ) | ~CCFG_CPU_LOCK_CFG_LOCKSAU_N_M ) & \ ((((uint32_t)( SET_CCFG_CPU_LOCK_CFG_LOCKNSMPU )) << CCFG_CPU_LOCK_CFG_LOCKNSMPU_N_S ) | ~CCFG_CPU_LOCK_CFG_LOCKNSMPU_N_M ) & \ ((((uint32_t)( SET_CCFG_CPU_LOCK_CFG_LOCKSMPU )) << CCFG_CPU_LOCK_CFG_LOCKSMPU_N_S ) | ~CCFG_CPU_LOCK_CFG_LOCKSMPU_N_M ) ) #define DEFAULT_CCFG_DEB_AUTH_CFG ( \ ((((uint32_t)( SET_CCFG_DEB_AUTH_CFG_INTSPNIDEN )) << CCFG_DEB_AUTH_CFG_INTSPNIDEN_S ) | ~CCFG_DEB_AUTH_CFG_INTSPNIDEN_M ) & \ ((((uint32_t)( SET_CCFG_DEB_AUTH_CFG_SPNIDENSEL )) << CCFG_DEB_AUTH_CFG_SPNIDENSEL_S ) | ~CCFG_DEB_AUTH_CFG_SPNIDENSEL_M ) & \ ((((uint32_t)( SET_CCFG_DEB_AUTH_CFG_INTSPIDEN )) << CCFG_DEB_AUTH_CFG_INTSPIDEN_S ) | ~CCFG_DEB_AUTH_CFG_INTSPIDEN_M ) & \ ((((uint32_t)( SET_CCFG_DEB_AUTH_CFG_SPIDENSEL )) << CCFG_DEB_AUTH_CFG_SPIDENSEL_S ) | ~CCFG_DEB_AUTH_CFG_SPIDENSEL_M ) ) #define DEFAULT_CCFG_CKEY0 SET_CCFG_CKEY0 #define DEFAULT_CCFG_CKEY1 SET_CCFG_CKEY1 #define DEFAULT_CCFG_CKEY2 SET_CCFG_CKEY2 #define DEFAULT_CCFG_CKEY3 SET_CCFG_CKEY3 //***************************************************************************** // // Customer Configuration Area in Lock Page // //***************************************************************************** #if defined(__IAR_SYSTEMS_ICC__) __root const ccfg_t __ccfg @ ".ccfg" = #elif defined(__TI_COMPILER_VERSION__) #pragma DATA_SECTION(__ccfg, ".ccfg") #pragma RETAIN(__ccfg) const ccfg_t __ccfg = #elif defined(__llvm__) const ccfg_t __ccfg __attribute__((section(".ccfg"), retain)) = #else const ccfg_t __ccfg __attribute__((section(".ccfg"))) __attribute__((used)) = #endif { // Mapped to address DEFAULT_CCFG_SIZE_AND_DIS_FLAGS , // 0x50000000 (0x50000000 maps to the DEFAULT_CCFG_MODE_CONF , // 0x50000004 NONMAIN sector in Bank 0. DEFAULT_CCFG_MODE_CONF_1 , // 0x50000008 Independent of FLASH size) DEFAULT_CCFG_VOLT_LOAD_0 , // 0x5000000C DEFAULT_CCFG_VOLT_LOAD_1 , // 0x50000010 DEFAULT_CCFG_EXT_LF_CLK , // 0x50000014 DEFAULT_CCFG_IEEE_MAC_0 , // 0x50000018 DEFAULT_CCFG_IEEE_MAC_1 , // 0x5000001C DEFAULT_CCFG_IEEE_BLE_0 , // 0x50000020 DEFAULT_CCFG_IEEE_BLE_1 , // 0x50000024 DEFAULT_CCFG_BL_CONFIG , // 0x50000028 DEFAULT_CCFG_ERASE_CONF , // 0x5000002C DEFAULT_CCFG_ERASE_CONF_1 , // 0x50000030 DEFAULT_CCFG_CCFG_TI_OPTIONS , // 0x50000034 DEFAULT_CCFG_CCFG_TAP_DAP_0 , // 0x50000038 DEFAULT_CCFG_CCFG_TAP_DAP_1 , // 0x5000003C DEFAULT_CCFG_IMAGE_VALID_CONF , // 0x50000040 DEFAULT_CCFG_WEPROT_31_0_BY2K , // 0x50000044 DEFAULT_CCFG_WEPROT_SPARE_1 , // 0x50000048 DEFAULT_CCFG_WEPROT_SPARE_2 , // 0x5000004C DEFAULT_CCFG_WEPROT_SPARE_3 , // 0x50000050 DEFAULT_CCFG_TRUSTZONE_FLASH_CFG , // 0x50000054 DEFAULT_CCFG_TRUSTZONE_SRAM_CFG , // 0x50000058 DEFAULT_CCFG_SRAM_CFG , // 0x5000005C DEFAULT_CCFG_RESERVED0 , // 0x50000060 DEFAULT_CCFG_CPU_LOCK_CFG , // 0x50000064 DEFAULT_CCFG_DEB_AUTH_CFG , // 0x50000068 DEFAULT_CCFG_CKEY0 , // 0x5000006C DEFAULT_CCFG_CKEY1 , // 0x50000070 DEFAULT_CCFG_CKEY2 , // 0x50000074 DEFAULT_CCFG_CKEY3 , // 0x50000078 }; #endif // __CCFC_C__
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