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.

CC1352R: How to check if CCFG_FORCE_VDDR_HH is set?

Part Number: CC1352R
Other Parts Discussed in Thread: SYSCONFIG

Hi!

We have BIM in our project and the CCFG_FORCE_VDDR_HH is set in the BIM opt file.

How could the main firmware check if CCFG_FORCE_VDDR_HH is set or not?

For example, we have a few versions of our products and old versions of the BIM are without BOOST mode.

We would like to be able to check if we can use 14dbm TX Output power after OTA on these devices.

  • Hi,

    If CCFG_FORCE_VDDR_HH is set, the VDDR_EXT_LOAD bit in the MODE_CONF register in CCFG will be 0, otherwise it will be 1.

    You can read the VDDR_EXT_LOAD bit to determine if CCFG_FORCE_VDDR_HH is set or not, but please note that the  CC13x2, CC26x2 SimpleLink Wireless MCU Technical Reference Manual states that the software should not rely on the value of this field (See table 11-6). 

    You can take a look at the SysConfig generated file ti_devices_config.c. This will include the the {SDK PATH}/source/ti/devices/cc13x2_cc26x2/startup_files/ccfg.c. You can see that the CCFG_FORCE_VDDR_HH field is directly controlling the value of VDDR_EXT_LOAD. See code below:

    #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


    Regards,
    Nikolaj

  • Thanks! I wrote the function

    #define MODE_CONF_OFFSET 0xFAC
    
    bool isBoostModeOn(void)
    {
        return (*(uint32_t *)(CCFG_BASE + MODE_CONF_OFFSET) & CCFG_MODE_CONF_VDDR_EXT_LOAD_M);
    }