Watchdogs Flashcards

Damm, that processor has the DAWG in it

1
Q

What is the job of a Watchdogs

A

Watchdogs monitor embedded systems to ensure they operate continuously

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does a Watchdog work (bite & kick)

A

The watchdog takes the form of a hardware counter with its own clock/ timer
When the timer runs out it sends a hardware reset
When the software is operating normally it restarts the timer before it runs out

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is one easy method of triggering the watchdog from inside of software

A

Enter an endless while loop, this will stop the CPU from executing any future bad decisions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are some software faults which a watchdog can pick up on

A

Endless loops
Interrupt floods
Deadlocks from multitasking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is one unintended problem which can arise with watchdogs

A

Watchdogs can end up disabling a system entirely and entering an endless loop of rebooting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

As well as fault recovery, what are some other uses of watchdogs

A

Low power oscillator to wake up from sleep
Clean software resets, for example when you need to do a firmware update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the job of a monitor task

A

Monitor tasks are used when multi-tasking, they use a set of global flags to monitor all other tasks and only restart the watchdog when all tasks have reported success

Monitor tasks must be the only ones to kick the watchdog

How well did you know this?
1
Not at all
2
3
4
5
Perfectly