Task watchdog
A software layer that feeds the real watchdog only once every supervised task has checked in.
A hardware watchdog knows that someone kicked it, not who. In a system with ten RTOS tasks, one survivor is enough to keep it happy, and the classic blunder — kicking from a timer interrupt — carries on flawlessly while the rest of the firmware sits in a deadlock. The fix is to make each task check in, typically by setting a bit in a shared flag word, and have a supervisor kick the dog only when every bit has been set within the period. Then the flags are cleared and the count starts over.
Espressif's ESP-IDF ships a ready-made version called the TWDT, which among other things watches the idle task to catch whoever never yields the CPU. The hard part is the timeouts: a task legitimately waiting five seconds for the network mustn't look like a hang.