各位好,我使用LPC802,SDK使用SDK_2.5.0_LPCXpresso802,
DEMO使用\boards\lpcxpresso802\demo_apps\power_mode_switch_lpc 进入Power down模式时,使用WKT 能正常唤醒,但是代码中开了BOD 如下:
POWER_EnterPowerDown(DEMO_ACTIVE_IN_DEEPSLEEP);
#define DEMO_ACTIVE_IN_DEEPSLEEP (kPDSLEEPCFG_DeepSleepBODActive | kPDSLEEPCFG_DeepSleepLPOscActive)
如果不开BOD 即:POWER_EnterPowerDown(kPDSLEEPCFG_DeepSleepLPOscActive); 。那么就无法唤醒了!
请问是不是SDK中存在问题?
Solved! Go to Solution.
Hi vector guo,
测试了复现了问题,解决方式是如果你不想设置BOD_PD,你需要将PDAWAKECFG中的BOD_PD也要设置成Powered down(代码如下所示),不然会直接复位的。
/* remain active during power down mode */
SYSCON->PDSLEEPCFG &= ~activePart;
SYSCON->BODCTRL &= ~(1<<4); // Disable BOD reset before de-powering BOD
SYSCON->PDRUNCFG |= 1<<3;
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi vector guo,
测试了复现了问题,解决方式是如果你不想设置BOD_PD,你需要将PDAWAKECFG中的BOD_PD也要设置成Powered down(代码如下所示),不然会直接复位的。
/* remain active during power down mode */
SYSCON->PDSLEEPCFG &= ~activePart;
SYSCON->BODCTRL &= ~(1<<4); // Disable BOD reset before de-powering BOD
SYSCON->PDRUNCFG |= 1<<3;
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
您的答案是正确的,同时也已经有线下FAE帮助我们解决问题。感谢!