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.
谢谢!
我现在测试时拿掉仿真器,用电池供电。
我在 halPwrMgtMode = (timeout == 0) ? HAL_SLEEP_DEEP : HAL_SLEEP_TIMER;
这句后面加了一句点亮灯,点亮后就不会灭。
接上电池跑,灯没有亮!用手机与板子蓝牙通信正常。说明根本没有执行到这一句。
为了确认,我在点灯后面又加了一句while(1);
仍然,灯没有亮,而蓝牙通信正常。说明确实没有执行到这一句。
我确认程序是执行了main函数里的
#if defined ( POWER_SAVING )
osal_pwrmgr_device( PWRMGR_BATTERY );
#endif
这句的。
求大神指导,为何没能执行halPwrMgtMode = (timeout == 0) ? HAL_SLEEP_DEEP : HAL_SLEEP_TIMER;?
万分感谢!