The processor freezes even if watchdog is enabled.

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

The processor freezes even if watchdog is enabled.

跳至解决方案
1,427 次查看
cerma
Contributor IV

Hello everyone.,

I´m using custom PCB with i.MX1061, MCUXpresso11.2, SDK2.8.0 Manifest Ver 3.6.0, BareMetal, Win10.

The program runs from an external Flash SPI. I'm using power save mode. One GPT timer and three UARTs are still ON. Every minute, the MCU wakes up itself(LPM_PowerModeLowPowerRun --> LPM_PowerModeFullRun) and then goes back to sleep (LPM_PowerModeFullRun --> LPM_PowerModeLowPowerRun).
After 1 to 3 days the i.MX1061 freezes (WatchDog is ENABLED). At that moment, I am not able to connect to the processor via JTag. The WatchDog does not reset the processor. I inserted an LED to the WDOG_Refresh function (WDOG1_PERIPHERAL);. I know the program is definitely frozen. When I press the reset button, the processor starts up again.
However, WatchDog module is enabled and working. When I insert WHILE (1) into the same code, the processor is reset by the WatchDog.
I only use WD1. Why doesn't WatchDog WD1 reset the processor? Did I set WD1 correctly?

Thank you for your advice.

Regards

Jaroslav C.

标签 (1)
0 项奖励
1 解答
1,379 次查看
cerma
Contributor IV

Hi Kerry,

This question is different. I started to suspect WachDog settings. I did not have the WDT bit set. A POR reset was not performed but only a COLD reset was performed. This caused the processor to freeze.

Best Regards,

 

Jaroslav C.

在原帖中查看解决方案

0 项奖励
2 回复数
1,380 次查看
cerma
Contributor IV

Hi Kerry,

This question is different. I started to suspect WachDog settings. I did not have the WDT bit set. A POR reset was not performed but only a COLD reset was performed. This caused the processor to freeze.

Best Regards,

 

Jaroslav C.

0 项奖励
1,401 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi cerma,

Seems this issue is the same issue as your another case:

https://community.nxp.com/t5/i-MX-RT/Freezes-microcontroller-i-MXRT1061/td-p/1162948

 

Could you test the run mode without the low power mode, whether hardfault or the freeze still happen or not?

 

Any updated information, please kindly let me know.

Best Regards,

Kerry

0 项奖励