LPC 1519 watchdog reset not happening correctly

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC 1519 watchdog reset not happening correctly

954 次查看
ravalimuppalla
Contributor I

Hello,

I am trying to wake the Micro, 1519, from power down after WFI with a watchdog. I change the time in TC then put it to power down. So after TC amount of time i expect a reset from watchdog. But when i check the reset status it gives me a POR and not a watchdog reset. 

LPC_WWDT->TC = 2 minutes;  //previously the time was for 33sec

LPC_WWDT->MOD = 0x23; 

disable_irq;

WFI;

enable_irq;

After reset i check the reset status with Chip_SYSCTL_GetSystemRSTStatus(); and i get a POR.

I tried "Chip_SYSCTL_EnableERP0PeriphWakeup(SYSCTL_ERP0_WAKEUP_WDTINT)" which wakes the micro but i don't get a reset on wake up, instead the micro waits for 90 seconds before getting reset. Then the reset status is watchdog reset.

Is there any reason for this?

Thanks!

标记 (3)
0 项奖励
回复
1 回复

851 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Ravali Muppalla ,

Thank you for your interest in NXP Semiconductor products and 
for the opportunity to serve you.

To provide the fastest possible support, I'd like to recommend you to refer to the periph_wwdt demo in the LPCOpen library.

LPCOpen Software for LPC15XX|NXP 

TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复