Date
1 - 2 of 2
Using Task Watchdog
Omar Morceli
|
|
Martin Jäger
Hi Omar,
I would only use it for critical tasks.
If you want to supervise the entire application using the task
watchdog you'll need one channel per thread.
You have to put the task_wdt_feed()
somewhere into the code section that has to be executed regularly.
The hardware watchdog fallback is
useful as an additional safety measure. If for some reason the
RTOS kernel itself gets stuck (e.g. because of a bug or because of
some blocking code in an ISR) the hardware watchdog will kick in
and reset the device.
This is an excellent article about
hardware and task watchdogs I recommend to read: https://interrupt.memfault.com/blog/firmware-watchdog-best-practices
Martin
On 23.05.22 20:26, Omar Morceli wrote:
|
|