Other Parts Discussed in Thread: LAUNCHXL-CC2640R2, , CC1350
Tool/software: TI-RTOS
Hi,
our device isn't entering standby mode. This is necessary, because our device is battery driven. I'm using IAR embedded workbench.
As recommended in TI literature i've choosen simple_peripheral example project to set up the application on our device. So far everything works fine, but the power consumption is ~1.5mA, which is too high.
I tried this by running my application with all tasks commented out, except SYS/BIOS task.
I didn't change the static power config in the board file, so standby mode should work properly.
* =============================== Power ===============================
*/
#include <ti/drivers/Power.h>
#include <ti/drivers/power/PowerCC26XX.h>
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,
};
I enabled power manager IAR by entering POWER_SAVING in the preprocessor settings. Furthermore i entered USE_RCOSC to enable calibration and clock for standby mode.
Preprocessor config below:
BOARD_DISPLAY_USE_LCD=0
BOARD_DISPLAY_USE_UART=0
BOARD_DISPLAY_USE_UART_ANSI=0
CC26XX
CC26XX_R2
DeviceFamily_CC26X0R2
xDisplay_DISABLE_ALL
ICALL_EVENTS
ICALL_JT
ICALL_LITE
ICALL_MAX_NUM_ENTITIES=6
ICALL_MAX_NUM_TASKS=3
ICALL_STACK0_ADDR
MAX_NUM_BLE_CONNS=1
POWER_SAVING
RF_SINGLEMODE
STACK_LIBRARY
USE_ICALL
USE_RCOSC
xdc_runtime_Assert_DISABLE_ALL
xdc_runtime_Log_DISABLE_ALL
Display_DISABLE_ALL
I followed the instructions from processors.wiki.ti.com/.../CC26xx_HW_Troubleshooting as recommended in post e2e.ti.com/.../485324.
We didn't mount the LF 32kHz XTAL oscillator. Could this be the reason why our device isn't entering standby mode?
To find out if this is the reason for the standby issue i tried the following:
To compare standby behaviour i flashed simple_peripheral example on LAUNCHXL-CC2640R2, commented out all tasks in main except Bios_start(), measured current by removing the 3V3 jumper and exited debug mode.
After doing this the current consumption is still high at 935uA.
What do you think is going wrong?
Greets,
Alex