The log of a device that locks up in the field usually stops at the last line. The processor sat in a loop, a peripheral stopped answering, or the supply dipped under a threshold for a short time. A watchdog and a brown-out reset exist to separate those two cases. Neither can be dismissed as "there is a reset somewhere".
A watchdog is a counter that resets the processor if it is not fed on time. The feed belongs where the work is shown to advance. At the end of a main-loop pass, the counter is cleared only if the work expected in that pass finished. If an interrupt feeds the counter on its own, the watchdog stays quiet while the loop is stuck. That is the usual way the protection gets switched off.
A windowed watchdog adds a step. Feeding too early is also a fault, because an interrupt may be clearing the counter more often than the design allows. The lower and upper bounds come from the measured loop time. Without those bounds, a field log that says "reset" does not say why.
A brown-out reset holds the processor when the supply falls below a threshold and starts it again when the voltage returns. The threshold has to sit above the voltage at which a flash write is corrupted. Set at the bottom of the operating range without looking, a dip during a write leaves the memory half written. The number comes from that microcontroller's data sheet. One voltage does not fit every board.
IEC 60730-1 Annex H describes periodic self-tests and a watchdog for automatic electrical controls in household appliances. Quoting the annex does not make a product compliant. Compliance is established by the class, the evidence and the tests the standard requires.
On FenergyTech firmware the place that feeds the watchdog, and the data-sheet line behind the brown-out threshold, are written next to the startup code.
If the field log says "watchdog reset", the cause is unknown until it is written where the counter was fed. If the feed is at the end of the main loop and only when that pass finished its work, a stuck sensor read overruns the time and the reset arrives. If the feed is inside a timer interrupt, the counter stays quiet while the loop is stuck. Both arrangements set the same bit. The log records where the counter was fed. The bit by itself does not say that.
The brown-out threshold goes in the same record. It sits above the voltage at which a flash write is corrupted. The number comes from the brown-out line in that microcontroller's data sheet. A threshold placed as "2.7 V fits everyone" can sit under another family's write limit. If the voltage dips during a write, the page is left half done. On startup, if the version number does not match what was expected, boot returns to the image in the old slot. Without a number, a half page runs as if it were ordinary software.
Sources: IEC 60730-1:2022, Automatic electrical controls — Part 1: General requirements, Annex H. The microcontroller data sheet, brown-out and watchdog sections.
Planning a similar project?
We can talk through how the topic in this article applies to your product.