How to use i.MX6 DL Watchdog WDOG2

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

How to use i.MX6 DL Watchdog WDOG2

4,390 Views
xiguo
Contributor I

Hi All,

I'm using i.MX6 DL on linux system. The default WDOG signal is WDOG2(SD1_DAT3). It connect to external PMIC. Can anyone help my follow question

1. Can WDOG2 reset external PMIC when linux system is hang up? How to set it? Do I need to change to WDOG1?

2. What's the difference between WDOG1 and WDOG2?  What about WDOG2 in TZ mode?

Thanks in advance.

Tags (2)
0 Kudos
5 Replies

2,362 Views
jrtigerlee
Contributor III

Did this situation solve or not ?

I use the Yocto jethro with u-boot version 2015.04 from NXP BSP.

And enable the Watchdog WDOG2 on u-boot. 

But it can't trigger anymore and reset system.

Just only Watchdog WDOG1 workable.

Our hardware also connect external PMIC with signal WDOG2_B (GPIO_1)

0 Kudos

2,362 Views
xiguo
Contributor I

Hi Dan,

  We still have questions with WDOG2. It seems WDOG2 doesn't work in timeout mode While WDOG1 work well. Can yuo help us?

We modified cpu/arm_cortexa8/mx6/interrupts.c in U-boot and change watchdog to watchdog timeout mode. set watchdog timeout = 5s.

First

    #define RESET_CPU_REG  WDOG1_BASE_ADDR

  WDOG1 can reset system after 5s.

Second

  #define RESET_CPU_REG  WDOG2_BASE_ADDR

WDOG2 can not reset system after 5s. It seems WDOG2 cannot work.




 
 
 
 
 
 
 
 
 
 
 
 

0 Kudos

2,362 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Xi Guo,

You can refer to the thread in our community Q&A: Watchdogs in i.MX6 . Hope it can help you.

Have a nice day

Dan

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

0 Kudos

2,362 Views
xiguo
Contributor I

Hi Dan,

Thanks for your reply. Could you give some examples like C code about WDOG2 setting in linux? Our BSP version is a bit old. We just set

   mx6q_add_imx2_wdt(1, NULL) and timeout. But it didn't work.

Thank you.

0 Kudos

2,362 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Xi Guo,

You can refer to our BSP on reference board in our website.

Best Regards

Dan

0 Kudos