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.

CC2640 BL - CMD_SET_CCFG

Other Parts Discussed in Thread: CC2640

Hi,

The CC2640 backdoor bootloader can write to CCFG using the CMD_SET_CCFG   command.

In sblApp  there is a function SblDeviceCC2650::setCCFG(uint32_t ui32Field, uint32_t ui32FieldValue):

/** \brief Writes the CC26xx defined CCFG fields to the flash CCFG area with
* the values received in the data bytes of this command.
*
* \param[in] ui32Field
* CCFG Field ID which identifies the CCFG parameter to be written.
* \param[in] ui32FieldValue
* Field value to be programmed.
* \return
* Returns SBL_SUCCESS, ...
*/

What is CCFG Field ID ?

Do I need to erase the CCFG sector explicitly , Or it's done internal by BL ?

  • Hello,

    If the CCFG sector (page 31) was not erased, it will need to be erased either via the mass erase or individually. CC26xx devices that are not shipped in an eval kit are shipped blank.

    The CCFG Fields IDs are the individual parameters that can be set in the CCFG structure. These are described in the "Device Configuration" section of the TRM.

    Best wishes
  • Hi JXS,

    Thanks, I was looking @ old TRM doc!

    BR, Bitkiller.

  • Hi,

    I'm trying to write to flash memory using BL command : COMMAND_MEMORY_WRITE (0x2B) and it's not working
    In the TRM there is a note: "NOTE: This command will not succeed writing to any flash memory."

    Am I missing something or what is the purpose of having none working command ?

    How to program CCFG area using bootloader ?

    Is it possible to prevent FCFG1 to reprogram CCFG after erase of the CCFG page ?