iMX6 Watchdog active, but resets irregularly in Linux

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

iMX6 Watchdog active, but resets irregularly in Linux

跳至解决方案
3,713 次查看
erezsteinberg
Contributor IV

Hello all,

On a system with iMX6DL, WDOG1 is activated in U-Boot.

If U-Boot hangs, or Linux hangs during boot, the watchdog resets the system as expected.

However, if Linux boots, the watchdog does not cause a system reset on time.   It may take minutes, and then at some random time the system would reset.

Looking at the watchdog registers:

   Memory mapped at address 0x76f53000.

   Read at address  0x020BC000 (0x76f53000): 0x779F

Timeout is set to 60 seconds, and watchdog is enabled.

What might be the reason for such behavior?

Any suggestions how to debug this?

Regards,

Erez

标签 (3)
0 项奖励
回复
1 解答
2,362 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Erez

one can check WDOGx_WCR WDW or WDZST bit - Watchdog Disable for Wait

or low-power modes. These bit determines the operation of WDOG during Low Power WAIT mode.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,362 次查看
bandarulavanya
Contributor V

Hi all ,

Can you please tell me how to enable watchdog timer in u boot for 2014 kernel version.

Thanks ,

Lavanya

0 项奖励
回复
2,363 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Erez

one can check WDOGx_WCR WDW or WDZST bit - Watchdog Disable for Wait

or low-power modes. These bit determines the operation of WDOG during Low Power WAIT mode.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
2,362 次查看
erezsteinberg
Contributor IV

Thanks Igor,

The problem was due to the WDW bit in the watchdog configuration register.  The watchdog driver in U-Boot automatically sets it.

In Linux, the processor is place in WAIT mode whenever it is idle.  This causes the watchdog to suspend.  Setting WDW=0 resolves this issue.

Regards,

Erez

0 项奖励
回复