6621E开启低功耗配置后,关闭各定时器(包括广播),按键唤醒会重启的,simple工程如下: 1)睡眠配置 static void ble_stack_config(void) { wdt_enable(0); // enable DCDC pmu_dcdc_enable(true); // Select 32k clock for stack cc_sca_set(CC_SCA_1000PPM); // Enable sleep, SWD will be closed. co_power_sleep_enable(true); // xtal32m param pmu_xtal32m_change_param(20); // tx pwoer rf_tx_power_set(RF_TX_POWER_NORMAL); } 2)广播也关闭, om_ble_gap_adv_stop(); 包括其它定时器都关闭,按键唤醒打印如下: 3)修改配置 co_power_status_t power_sleep_status_handler(void) { co_power_status_t pmu_status; pmu_status = pmu_power_status(); // return pmu_status; return pmu_status > POWER_SLEEP ? POWER_SLEEP : pmu_status; } 4)修改后打印如下: |