3143 views|3 replies

6742

Posts

2

Resources
The OP
 

How to use WatchDog in RTOS? [Copy link]

I believe many people have used watchdogs. The main function of the watchdog is that the system cannot be fed when it crashes. When the watchdog timer reaches the specified time, the system will be forced to reset, which can prevent the system from becoming a brick after crashing. How to use the watchdog in RTOS? Generally, a task will be opened to feed the dog. When the system is stuck, the feeding task will not run, and the system will be reset when the watchdog timer reaches the time. It seems that there is no problem. But there is such a problem. I want to monitor the running of other tasks. If the situation is not good, reset the system. If the above method is used, when other tasks are stuck (there are problems with the operation), but the feeding task is still running, the system will not restart. So what method should be used to use the watchdog if you want to monitor whether multiple tasks are stuck ?

This post is from MCU

Latest reply

If you want stability, don't be afraid of complexity, or improve your testing and programming design capabilities to reduce instability as much as possible.   Details Published on 2021-12-10 17:14
 

7422

Posts

2

Resources
2
 

The watchdog is used to monitor system-level crashes, not task crashes.

Because if the system crashes, for example, it jumps into an abnormal infinite loop, there is no other way to detect and recover/jump out of this state except for the watchdog hardware reset.

If the system is not dead, but a task is dead, you can use a dedicated monitoring task to monitor all other business tasks.

This post is from MCU

Comments

How to achieve this special monitoring task? It seems that it is more complicated to perform the monitoring task.  Details Published on 2021-12-10 09:12
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 

6742

Posts

2

Resources
3
 
freebsder posted on 2021-12-9 17:53 The watchdog is used to monitor system-level crashes, not task crashes. Because if the system crashes, for example, it jumps to an abnormal crash...

How to achieve this special monitoring task? It seems that it is more complicated to perform the monitoring task.

This post is from MCU

Comments

If you want stability, don't be afraid of complexity, or improve your testing and programming design capabilities to reduce instability as much as possible.  Details Published on 2021-12-10 17:14
 
 
 

7422

Posts

2

Resources
4
 
wangerxian posted on 2021-12-10 09:12 How to implement this special monitoring task? It seems that it will be more cumbersome to monitor the task.

If you want stability, don't be afraid of complexity, or improve your testing and programming design capabilities to reduce instability as much as possible.

This post is from MCU
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Homemade STEVAL-IPM05F 3Sh board: FOC motor control 400V/8A non-sensing/sensing Hall/sensing encoder and other reference programs...

This post was last edited by music_586 on 2019-4-4 19:06 This content was originally created by EEWORLD forum user musi ...

C language uses binary tree to parse polynomials and evaluate

It mainly realizes the analysis of polynomial data calculation. If there is a need to make a simple calculator based on ...

Zhouyi Compass Simulation Experiment 2——Environment and Routine Analysis

Zhouyi Compass Simulation Experiment 2——Environment and Routine Analysis In simulation experiment 1 (https://bbs.eewor ...

【Development and application based on NUCLEO-F746ZG motor】13. Parameter configuration - USART3 configuration

The function of this serial port on the development board is to communicate with ST-LINK, and then connect ST_LINK2 to t ...

[EEWorld invites you to play disassembly] PISEN fast charging power bank 10500mAh 22.5W

Quote: Thank you EEWorld for inviting you to the disassembly (fourth issue): popular power bank disassembly event. As w ...

Please tell me why this machine often burns the starting resistor at the customer's place

Please tell me why the resistor burned out and how to fix it? 627875627874627873

[Flower carving hands-on] Interesting and fun music visualization series of small projects (26) - LED hypercube

This post was last edited by eagler8 on 2022-10-5 08:59 I had the urge to do a series of topics on sound visualization. ...

Is it possible to perform socket communication without IP and port number?

When using socket communication, whether it is internal communication within the local machine or communication betwee ...

Development Background and Advantages of SiC Power Devices

SiC power components have higher withstand voltage, lower on-resistance, can operate at higher speeds, and can operate a ...

【Digi-Key Follow me Issue 2】Task Collection

I got the board quite late, and after completing the task, I got busy with a lot of other things so I didn't have time t ...

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list