Watchdogs Flashcards
Damm, that processor has the DAWG in it
What is the job of a Watchdogs
Watchdogs monitor embedded systems to ensure they operate continuously
How does a Watchdog work (bite & kick)
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
What is one easy method of triggering the watchdog from inside of software
Enter an endless while loop, this will stop the CPU from executing any future bad decisions
What are some software faults which a watchdog can pick up on
Endless loops
Interrupt floods
Deadlocks from multitasking
What is one unintended problem which can arise with watchdogs
Watchdogs can end up disabling a system entirely and entering an endless loop of rebooting
As well as fault recovery, what are some other uses of watchdogs
Low power oscillator to wake up from sleep
Clean software resets, for example when you need to do a firmware update
What is the job of a monitor task
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