TECHNOLOGY

Windowed watchdogs: feeding earlier can violate the hardware contract

In this article
THE QUICK TAKE

For a supported windowed watchdog, feed within the accepted window rather than as often as possible; verify the driver contract and preserve setup and feed errors.

A faster loop is not always a safer heartbeat

An embedded inference application adds watchdog feeding to a frequently running loop, assuming shorter intervals always improve safety. The selected watchdog is windowed: feeding before its lower bound can violate the contract just as missing its upper bound can. Diagnose the actual watchdog mode before copying a service-heartbeat pattern. The model’s execution time is only one influence on the feeding schedule; scheduler behavior, startup, sleep and diagnostic paths can change the interval independently of useful inference progress.

The window has a lower and upper bound

The watchdog window reference defines minimum and maximum feed times in milliseconds. For an instance without window support, the minimum must be 0. It also documents rounding when requested values cannot be set precisely. Preserve supported configuration and the relevant driver’s timing representation rather than treating arbitrary requested bounds as exactly realized hardware limits. A nonzero minimum is a meaningful requirement, not an optional dashboard label or a field that every watchdog necessarily supports.

Installation and setup are separate stages

The Zephyr watchdog API installs timeout configuration before setup, returning a channel identity on success. Setup activates the installed timeouts under supported options. Check each result and retain the device/channel relationship used by feed calls. A successful installation is not evidence that setup succeeded, and an ignored failure cannot be repaired by repeatedly feeding an invalid channel. Keep hardware capabilities and requested flags visible so an unsupported pause or window configuration does not silently become another operating mode.

Feed results and power states remain observable

The API reports feed failures, including cases where completing the operation would stall the caller. Preserve such outcomes instead of logging only the function invocation as a successful hardware refresh. Review whether configured sleep or debugger-pause options are supported and enabled. A debugger-stopped demonstration can therefore have different watchdog behavior from unattended operation. These conditions affect timing legality; they do not establish that a classification is correct or that a timer thread represents progress in the application’s critical inference path.

Propose a driver-qualified timing fixture

First validate requested bounds and setup outcomes in a controlled driver fixture. Use the target’s supported disposable test procedure to distinguish early, in-window and late feeding without production work, retaining actual timing and reset-cause evidence where available. Compare sleep and debugger conditions explicitly. Acceptance is the documented watchdog behavior for that configuration and clear failure reporting. No watchdog was armed, device reset or firmware modified here; this is a proposed hardware-qualified check, not a claim that a universal feed interval is safe.

Keep hardware timing and useful progress distinct

Service watchdog progress addresses whether a heartbeat reflects useful application behavior. Embedded pipeline boundaries explain why inference is more than one arithmetic phase. A windowed hardware watchdog adds a separate earliest/latest feeding contract. Report both policies without merging them: correct feed timing can coexist with a logically stuck application, while useful work can still be reset by an invalid hardware window. Neither observation substitutes for the other.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles