LPC802 使用SDK 无法唤醒

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC802 使用SDK 无法唤醒

Jump to solution
1,280 Views
vector123456
Contributor I

各位好,我使用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中存在问题?

Labels (1)
0 Kudos
Reply
1 Solution
1,191 Views
jeremyzhou
NXP Employee
NXP Employee

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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
3 Replies
1,191 Views
jeremyzhou
NXP Employee
NXP Employee
非常感谢使用NXP产品,很高兴为你提供技术支持!
好的,我待会测试复现一下现象。
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.
-------------------------------------------------------------------------------

0 Kudos
Reply
1,192 Views
jeremyzhou
NXP Employee
NXP Employee

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.
-------------------------------------------------------------------------------

0 Kudos
Reply
1,191 Views
vector123456
Contributor I

您的答案是正确的,同时也已经有线下FAE帮助我们解决问题。感谢!

0 Kudos
Reply