Device Configuration (CCFG)

After importing a SysConfig enabled Proprietary RF project into CCS, by double clicking on the *.syscfg file, a GUI will appear where the project can be configured more easily. In the TI DEVICESDevice Configuration view, you can modify the CCFG area of dedicated flash which is used by boot ROM and TI drivers to configure the device through the ti_radio_config.c/h files generated by SysConfig.

../_images/device_configuration_cc23xx.png

This section will cover the most utilized features of the Device Configuration module.

Note

The CC23xx device must be re-programmed using the existing configuration for the new settings to take effect.

  • Low Frequency Clock Source: LF RCOSC can be selected instead of LF XOSC, but should only be done if the Proprietary RF configuration allows the additional LF clock inaccuracy which will be introduced

Bootloader Configuration

Default FCFG bootloader is the standard selection. This incorporates the following settings:

  • Serial Bootloader enabled

  • Serial IO Configuration Index 2 for UART RX/TX to DIO pins 22/20, respectively

  • Pin Trigger enabled for DIO 21, active low on reset

../_images/bootloader_configuration_cc23xx.png

The Serial IO Configuration Index and Pin Trigger DIO for blank devices or FCFG default values are fully described in the ROM Serial Bootloader Interfaces section of the CC23xx SimpleLink Wireless MCU Technical Reference Manual. By using Default FCFG bootloader, with CCFG settings instead, users can select custom values for each of the above settings. Alternatively, Any bootloader forbidden will fully disable the bootloader.

Device Permission Settings

This is where device permissions are controlled. Allow SWD Debug Port will control the SWD Debug Port to allow for debugging. If enabled, debug access is still dependent on the Debug ConfigurationDebug Authorization Configuration setting.

Most other settings, such Allow Flash Program and Allow Flash Erase, determines what device management operations the Secure AP Command Interface (SACI) can perform if entered during boot.

For more information on these CCFG permissions, and instructions for entering the SACI mode, please consult their respective sections within the CC23xx SimpleLink Wireless MCU Technical Reference Manual.

Debug Configuration

Within this drop-down window, it is possible to change the Debug Authorization and set Allow Bootloader. These are also influenced by the Bootloader Configuration and Device Permission Settings described above. When choosing Require Debug authentication the following steps are necessary:

  1. Choose a password between 12 to 64 characters in multiples of four (i.e. 32-bit word length). Characters can be letters, numbers or special characters.

  2. Use an online SHA256 tool to calculate the hash.

    ../_images/sha256_tool.png

    Note

    The default password is “Open Sesame!” to produce the default hash in SysConfig.

  3. Select a 32-bit password-ID. This ID typically helps in case you want to have different passwords (e.g. if you want to update the password daily on the production line). That way, you can check the password-ID loaded on the device and look-up the password.

  4. Populate SysConfig with the values found from the above steps.

    ../_images/require_debug_authentication.png
  5. Save the SysConfig file, re-build the project, and flash the CC23xx device.

  6. Afterwards, starting a debug session in the chosen IDE (e.g. IAR or CCS) will produce the following error since the debugger has not been provided the chosen password.

    ../_images/debug_error.png

    To resolve this, right-click on the ProjectDebug AsDebug Configurations. Then select your active project, enter TargetFlash Settings tab, and set the debug password according to the Device Configuration (CCFG) settings.

    ../_images/debug_flash_settings_password.png
  1. Click on Apply and Debug to proceed with a typical debug session.