On 2021-03-14 17:36, Xiang Xiao wrote:
On Sun, Mar 14, 2021 at 8:27 AM Fotis Panagiotopoulos <f.j.pa...@gmail.com>
wrote:

Why not to use the hardware watchdog timer which is more reliable and
simple than the pure software solution?

I do use it, but a hardware watchdog can monitor only one thing (in my case
the kernel itself).


If you want to catch some task/thread in an infinite loop, the hardware
watchdog monitor in nuttx can do it for you.

Of course. But it will not be easy to do if you want to watch multiple threads. Because the hardware watchdog is very binary. If any thread were to kick the watchdog, it will not do a reset. So if one thread is hung, but others still run, your hardware watchdog will not do what you want, possibly.

Not to mention that from a diagnistics point of view, it could be nice to be informed which thread was hung as well, as a part of the handling/restarting.

  Johnny

--
Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email: b...@softjar.se             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol

Reply via email to