imx6 watchdog in low power mode

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

imx6 watchdog in low power mode

860 Views
ilyyxfe
Contributor I

hello、

i do not want to suspend the watchdog in stop mode.

so i check the manual ,and find that clear the WDZST in WCR  can keep watchdog work.

is that only thing i need to do  if i want keep watchdog work in stop mode? is there any other action need to do for this?

pls give me advice

for the more,pls tell me in normal mode and the low power mode,do the watchdog use the same clk?

in stop mode, the clk is 32khz,is that right?

if i want to reset the system by watchdog even in the stop mode,how to set timeout value?

for example , if i want to watchdog timeout in 10s in stop mode, how to configure ?

looking forwards.

best regards

Labels (3)
0 Kudos
3 Replies

721 Views
ilyyxfe
Contributor I

hello,sir

>>..clear the WDZST in WCR  can keep watchdog work.

>>is that only thing i need to do  if i want keep watchdog work in stop mode?

 

>yes

about this.I modified the follow source,and tried in the imx6sll evk bsp revA1.

static inline void imx2_wdt_setup(struct watchdog_device *wdog)
{
struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog);
u32 val;

regmap_read(wdev->regmap, IMX2_WDT_WCR, &val);

/* Suspend timer in low power mode, write once-only */
//val |= IMX2_WDT_WCR_WDZST;
val &= ~IMX2_WDT_WCR_WDZST;

i modify the last line code. but it still can not keep watchdog work in stop mode.

my source is base on 4.9.88.2.0.0

the situation is :

i open the watchdog first, then I make system into stop mode. it can not reset in expected timeout . it will keep sleep .

and when i wake up system, it will reset when timeout.

if I just open the watchdog,and not let system into sleep, it will reset when timeout.

pls give me advice.

best regards

zhang

0 Kudos

721 Views
igorpadykov
NXP Employee
NXP Employee

Hi zhang

>..clear the WDZST in WCR  can keep watchdog work.

>is that only thing i need to do  if i want keep watchdog work in stop mode?

yes

> in normal mode and the low power mode,do the watchdog use the same clk?

yes, same

>if i want to reset the system by watchdog even in the stop mode,how to set timeout value?

in stop mode it is not possible to service wdog (writing 0x_5555 followed by 0x_AAAA)

as arm core is not working in low power mode.

Timeout value is the same in normal mode and low power. So question

"watchdog timeout in 10s in stop mode, how to configure" does not make sense.

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

0 Kudos

721 Views
ilyyxfe
Contributor I

sir

if possible,pls give me some advice about the follow question.

best regards

zhang

0 Kudos