Watchdog Interrupt Flag

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

Watchdog Interrupt Flag

跳至解决方案
1,383 次查看
rmaier
Contributor III

Hello,

I am using a KEAZ128 MCU. I am working on the watchdog, and would like to conditionally do some things depend on whether a POR or watchdog reset has occurred. I attempted to use the Watchdog flag (WDOG_CS2_FLG) at system initialization to catch this condition, but I cannot get WDOG_CS2_FLG =1. It's always 0. Does this flag only persist during the 128 bus clock cycles before reset? I am able to set a RAM variable to a particular value and catch this, but not the flag.

Any instructions or recommendations are greatly appreciated.

Robert

 

 

 

0 项奖励
回复
1 解答
1,357 次查看
nxf77486
NXP TechSupport
NXP TechSupport

Hello @rmaier 

The register SIM_SRSID (System Reset Status and ID Registers), indicates a reset by WDOG timer timing out (field 5). And also indicates that the reset has occurred on POR (field 7). This will help to catch whenever a reset has occurred so you can finish with the rest of your application.

在原帖中查看解决方案

1 回复
1,358 次查看
nxf77486
NXP TechSupport
NXP TechSupport

Hello @rmaier 

The register SIM_SRSID (System Reset Status and ID Registers), indicates a reset by WDOG timer timing out (field 5). And also indicates that the reset has occurred on POR (field 7). This will help to catch whenever a reset has occurred so you can finish with the rest of your application.