官方例程pinInterrupt_CC2640R2_LAUNCHXL_tirtos_ccs,调试发现程序卡在管教初始化这个死循环里了,32k晶振起振,但是24M的晶振不起振,我刷蓝牙的例程,工作都正常。就不带蓝牙功能的例程都不行,貌似一直是低功耗状态,怎么退出低功耗状态呢?

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.
官方例程pinInterrupt_CC2640R2_LAUNCHXL_tirtos_ccs,调试发现程序卡在管教初始化这个死循环里了,32k晶振起振,但是24M的晶振不起振,我刷蓝牙的例程,工作都正常。就不带蓝牙功能的例程都不行,貌似一直是低功耗状态,怎么退出低功耗状态呢?

例程默认都开启了power policy低功耗策略,在CC2640R2_LAUNCHXL.c中修改enablePolicy = false 关闭
/*
* =============================== 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,
.calibrateRCOSC_LF = true,
.calibrateRCOSC_HF = true,
};