工具/软件:
SDK:simplelink_lowpower_f3_SDK_8_10_01_02
我们开发了一款关键产品、发现某些密钥会快速消耗电能。 目前、怀疑 Power_Shutdown 功能未成功执行。 我想知道在什么情况下 Power_Shutdown 函数可能无法执行、以及在调用 Power_Shutdown 函数之前和之后是否需要任何特殊操作。
附录:当前使用 FreeRTOS、当在最高优先级任务中检测到超时时、将调用函数 Power_sthutdown (0、0);
if(gShutDownCurTick > SHUTDOWN_WAIT_TICK_S)
{
SetSleepFlag();
MenuModule_printf(APP_MENU_GENERAL_STATUS_LINE, 0, "SHUTDOWN ");
CtrlLED(0xff,0);
CloseWatchDog();
/* Configure DIO for wake up from shutdown */
GPIO_setConfig(CONFIG_GPIO_WAKEUP, GPIO_CFG_IN_PU | GPIO_CFG_SHUTDOWN_WAKE_LOW);
/* Go to shutdown */
Power_shutdown(0, 0);
}
