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.
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)
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.
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!
-----------------------------------------------------------------------------------------------------------------------
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.
Hi Xi Guo,
You can refer to our BSP on reference board in our website.
Best Regards
Dan