iMX6 Watchdog active, but resets irregularly in Linux

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

iMX6 Watchdog active, but resets irregularly in Linux

Jump to solution
2,718 Views
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

Labels (3)
0 Kudos
1 Solution
1,367 Views
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!

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

View solution in original post

0 Kudos
3 Replies
1,367 Views
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 Kudos
1,368 Views
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 Kudos
1,367 Views
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 Kudos