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.

CC2640R2F: Need the workaround for the Advisory 03?

Part Number: CC2640R2F


Tool/software:

Hello,

1. Do we need the workaround for errata advisory 03? (SDK 5.30.00.03 with blestack not ble5stack)

Our project based on the simple_peripheral example and use POWER_SAVING and does not use USE_RCOSC. Power setting is below.

const PowerCC26XX_Config PowerCC26XX_config = {
.policyInitFxn = NULL,
.policyFxn = &PowerCC26XX_standbyPolicy,
.calibrateFxn = &PowerCC26XX_calibrate,
.enablePolicy = true,
#ifdef USE_RCOSC
.calibrateRCOSC_LF = true,
#else
.calibrateRCOSC_LF = false,
#endif
.calibrateRCOSC_HF = true,
};

2. I realized that the power setting code is different with below CC2640R2_LAUNCHXL.c's.

Is it okay to use it like above?

const PowerCC26XX_Config PowerCC26XX_config = {
.policyInitFxn = NULL,
.policyFxn = &PowerCC26XX_standbyPolicy,
.enablePolicy = true,
#ifdef USE_RCOSC
.calibrateFxn = &PowerCC26XX_calibrate,
.calibrateRCOSC_LF = true,
.calibrateRCOSC_HF = true,
#else
#ifdef NO_CALIBRATION_NO_RCOSC
// use no_calibrate functions (when RCOSC is not used)
// in order to save uncalled functions flash size
.calibrateFxn = &PowerCC26XX_noCalibrate,
.calibrateRCOSC_LF = false,
.calibrateRCOSC_HF = false,
#else
// old configuration
.calibrateFxn = &PowerCC26XX_calibrate,
.calibrateRCOSC_LF = false,
.calibrateRCOSC_HF = true,
#endif
#endif
};

Thanks,

Calvin

  • Hi !

    From what I could find when looking at the drivers code, the advisory 03 is not a concern when using the TI Drivers. The power driver will ensure that flash access is blocked when the clock switching happens. You should only be concerned if you directly called Power_setDependency(XOSC_HF) or Power_releaseDependency(XOSC_HF) yourself.

    As for your power settings, they are exactly the same if NO_CALIBRATION_NO_RCOSC is set to true. This depends on if you want higher precision at the cost of calibration being run periodically.

    Kind regards,
    Maxence