IMX6Q watchdog issue

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

IMX6Q watchdog issue

601 Views
57063778
Contributor II

Hi all,

    Our product is designed by referencing SABRESDB with IMX6Q. The linux kernel version is 3.14.28. We use watchdog by "open("/dev/watchdog", O_WRONLY);" and the timeout of watchdog is 15 second. We feed the watchdog and print one information from debug uart COM every second in our application program . Usually, the watchdog works well. But after about 10 day, the watchdog reset without any error information. What`s more, the time between the last feeding watchdog information and the first kernel debug information is difference, sometimes it is 2 minute, sometimes is 8 minute, sometimes is more than 30 minute. 

    It is impossible that it last more than 30 minute before the watchdog reset the system supposing that our application program do not feed the watchdog. Can someone give us some advise about this issue or how to debug the issue? Thanks in advance!

0 Kudos
3 Replies

456 Views
igorpadykov
NXP Employee
NXP Employee

Hi 永贤 许 

except memory errors such issue may be caused by low power modes,

as wdog behaviour is configured by WDZST bit WDOGx_WCR register,

suspending the watchdog timer in low power mode.


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

0 Kudos

456 Views
57063778
Contributor II

Hi igorpadykov,

     The value of  WDOG_WCR register is 0x1d35. That is the WDZST  bit is 1. Does the issue will be solved if we set WDZST  to 0?

0 Kudos

456 Views
igorpadykov
NXP Employee
NXP Employee

yes it can be solved setting WDZST  to 0

Best regards
igor