Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
liuyang
Level 2
Level 2
First reply posted 25 sign-ins 10 questions asked

TLE9854示例代码,注释掉喂狗函数,然后重新下载,单片机未发生复位,重新上电后发生了复位,是怎么回事,如何才能关闭看门狗

0 项奖励
1 解答
Kevin_Wu
Moderator
Moderator
Moderator
10 likes received 25 solutions authored 50 sign-ins

Hi liuyang,

  WD 在正常工作模式下是 不能被禁止,但是在其他模式,例如休眠,Debug 等其他模式是不活动的,所以,去掉喂狗命令,在debug 模式是正常的,但下载后运行进入正常模式,WD工作,没有喂狗,所以不能正常工作。

 

thanks, Keivin

在原帖中查看解决方案

0 项奖励
2 回复数
Raj_JC
Moderator
Moderator
Moderator
50 likes received 250 replies posted First question asked

Hi @liuyang,

As per the TLE985xQX user manual, the WDT1 is always enabled in Active Mode. In Sleep Mode, Stop Mode and Debug Mode the WDT1 is disabled. Watchdog cannot be deactivated in Normal Mode.

Please refer to the below section of the datasheet:

Raj_JC_0-1656511912435.png

Can you please let us know the reason to disable the WDT1?

Thank you

Best Regards

Raj Chaudhari

0 项奖励
Kevin_Wu
Moderator
Moderator
Moderator
10 likes received 25 solutions authored 50 sign-ins

Hi liuyang,

  WD 在正常工作模式下是 不能被禁止,但是在其他模式,例如休眠,Debug 等其他模式是不活动的,所以,去掉喂狗命令,在debug 模式是正常的,但下载后运行进入正常模式,WD工作,没有喂狗,所以不能正常工作。

 

thanks, Keivin

0 项奖励