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