---
title: "Case Study: Fleet Watchdog Resets Fixed in One Afternoon | uLogger"
description: "How an IoT sensor maker used uLogger to find an intermittent SPI timing race behind hundreds of daily watchdog resets, without reproducing it in the lab or pulling a single device."
url: https://ulogger.ai/case-studies/fleet-watchdog-resets.html
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://ulogger.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

Customer Success Story

# From a Fleet-Wide Watchdog Problem to a Fix in One Afternoon

How an IoT sensor maker used uLogger to find an intermittent SPI timing race on deployed sensors, without reproducing it in the lab or pulling a single device

< 1 hour to root cause, vs an estimated 4+ weeks without uLogger 

370 → 0 targeted watchdog resets per day on upgraded devices 

0 devices pulled from the field to diagnose it 

## Executive summary

An IoT sensor maker runs a fleet of more than 250,000 wireless sensors on industrial and commercial machinery. In September 2026, its fleet was logging hundreds of watchdog resets a day, and the failure could not be reproduced on the bench.

[uLogger](https://www.ulogger.ai) grouped the crashes into two decoded stack traces. It showed that 85 devices had hit the most common one in a single day, and its register snapshot showed the state of the SPI peripheral at the moment the node stalled.

From that evidence, the firmware team found the defect in the accelerometer's SPI driver: a FIFO flush that could take effect late and silently drop a byte, followed by an unbounded wait for a byte that would never arrive. A candidate fix was on a test branch 41 minutes after the crash report and running on a field gateway the same evening. The fix shipped fleet-wide in firmware v4.17.0, starting the following day, and upgraded devices have logged none of the targeted watchdog resets.

## Customer background

The company builds sensor systems that monitor equipment health in commercial and industrial facilities. Its battery-powered sensors form a wireless mesh network, with thousands of devices per installation. Each sensor contains a high-speed data acquisition system that captures and classifies issues, then sends that data over a proprietary radio link to an on-site gateway.

| Fleet size       | 250,000+ deployed sensor nodes                                  |
| ---------------- | --------------------------------------------------------------- |
| Affected product | Wireless sensor (Silicon Labs EFR32MG24, Arm Cortex-M33)        |
| Firmware         | Bare-metal on the Silicon Labs SDK; accelerometer on an SPI bus |
| Firmware team    | 7 engineers                                                     |
| Update path      | Over-the-air firmware updates over an 802.15.4 network          |

The nodes sit inside working facilities, often in hard-to-reach spots. Every reset loses a measurement, and a node that keeps resetting leaves a machine unmonitored. Sending a technician to fetch a device costs far more than the device.

## The challenge

The nodes were not crashing in the usual sense. The fault registers were all zero: no bus fault, no hard fault. The watchdog timer was resetting healthy-looking devices because something in the firmware stopped making progress.

That kind of failure leaves almost nothing behind:

- **It never reproduced on the bench.** The stall depended on the exact timing between the CPU and the SPI peripheral, a window a few clock cycles wide.
- **The failing path was rarely run.** 99.4% of calls to the stalled SPI read come from the normal sampling loop, which never failed. The stall only happened on an infrequent path, at boot and during a self-test procedure. Testing and logging on the common path would never have caught it.
- **Ordinary logs stopped too early.** The last line logged before the reset looked like any other start of an accelerometer read.
- **It was spread across the fleet.** Resets scattered across many sites look like radio noise or a bad battery unless the failures can be lined up side by side.
- **The usual next steps were expensive.** Without a captured stack, the options were a diagnostic firmware build pushed over the air, a lab rig left running for days in the hope of catching it, or retrieving devices from customer sites.

Two questions mattered: is this one bug or many, and where exactly is the code stuck?

## The solution

uLogger answered both questions from data the devices had already sent. No diagnostic build and no device retrieval was needed.

The firmware team worked through the evidence in Claude Code, Anthropic's AI coding assistant, connected to [uLogger's MCP server](../ai-skill.html). Claude Code pulled the crash signatures, decoded stacks and register snapshots straight from uLogger and checked them against the firmware source and the chip's reference manual, so the engineers spent their time judging the evidence instead of collecting it. The investigation ran in five steps.

### 1\. One signature across the fleet

uLogger's crash report grouped identical crash dumps and flagged that 85 sensor nodes had hit the same one in 24 hours. A second frequent signature ended in the same function through a different path, the self-test at boot. That pointed to one defect with two entry points, not two bugs.

### 2\. A decoded stack trace down to the line

Each dump arrived as a symbolic stack with source files and line numbers, so the team could see where the code was stuck without a debugger attached:

![uLogger fault signature for a watchdog timeout: a 16-frame decoded backtrace from EUSART_Rx() at em_eusart.c:407 down to main(), with the pc, lr, sp and xpsr registers](../images/case-study-fleet-watchdog-backtrace.png) 

The fault signature in uLogger: the full decoded backtrace and key registers for one crash group.

`em_eusart.c:407` is a loop that waits, with no time limit, for a byte to arrive in the SPI receive FIFO. Just as important, the full call tree showed which caller was stuck. The function at the top is called constantly from the sampling loop, but every stalled device had reached it through the rarely run self-test path. That narrowed the search from one of the busiest functions in the firmware to one of its least-used callers.

### 3\. Fault registers that ruled things out

`CFSR` and `HFSR` were both zero. That excluded memory corruption, stack overflow and bad pointers, and identified a watchdog reset during a stall.

### 4\. Registers that showed the peripheral's state

The captured CPU registers included the SPI peripheral's status word (`0x3063`). Decoded, it showed the transmitter finished, the transmit FIFO empty and nothing in the receive FIFO. The sensor was not slow: one byte had never been sent, so the reply the code was waiting for could never come.

### 5\. Root cause and fix

With the stall pinned to one transfer, the team checked the driver against the chip's reference manual. A transmit-FIFO flush was issued while the peripheral was disabled. On this chip the flush only takes effect once the peripheral is enabled and gives no completion signal, so it could land after the next transfer was queued and silently discard one byte.

The fix flushes only when the FIFO actually holds data and waits for the flush to finish. It also puts a time limit on every wait, so a lost byte becomes a reported error instead of a reset. The flush is skipped in the normal case, so the high-speed sampling loop runs as fast as before.

A test build was tagged 41 minutes after the crash report and deployed to a field gateway the same evening. Code review of the fix then found three related driver bugs in the company's other product lines, which were fixed before the release.

## Measurable results

Devices upgraded to the new firmware have logged none of the targeted watchdog resets.

| Metric                                         | Before uLogger evidence                              | With uLogger                                  |
| ---------------------------------------------- | ---------------------------------------------------- | --------------------------------------------- |
| Targeted stall resets (SPI read and INT1 wait) | 370 a day on the old firmware                        | 0 on upgraded devices (v4.17.0)               |
| Time from crash report to candidate fix        | Unable to reproduce in lab                           | 41 minutes                                    |
| Time from crash report to field test           | Weeks                                                | Same evening (about 1 hour)                   |
| Diagnostic firmware builds needed              | 3–4                                                  | 0                                             |
| Devices retrieved from customer sites          | 20–40                                                | 0                                             |
| Time to root cause                             | 4+ weeks (estimated; it never reproduced in the lab) | Under an hour (41 minutes to a candidate fix) |
| Related defects found and fixed                | n/a                                                  | 3 more driver bugs in other product lines     |

### Before and after the upgrade

The fix targeted two stalls: the SPI read stall and the INT1 wait stall. On the old firmware they caused about 370 watchdog resets a day. On devices upgraded to the new firmware, they dropped to zero:

| Targeted watchdog reset | Old firmware, v4.16.5 (per day) | Upgraded devices, v4.17.0 (per day) |
| ----------------------- | ------------------------------- | ----------------------------------- |
| SPI read stall          | 152                             | 0                                   |
| INT1 wait stall         | 218                             | 0                                   |
| Total                   | 370                             | 0                                   |

**The version comparison in uLogger.** uLogger ranks every fault signature on v4.16.5 against v4.17.0\. Every variant of the two targeted stalls dropped to zero, whether the device reached it at boot (`main()`) or through the self-test (`self_test_get_status()`).

![uLogger Top Faults comparing firmware 4.17.0 with 4.16.5: eight watchdog fault signatures in EUSART_Rx, enablePrsSampling, GPIO_PinInGet and BUS_RegBitRead fall from between 222 and 653 occurrences to 0, each down 100%](../images/case-study-fleet-watchdog-top-faults.png) 

Top Faults in uLogger, v4.17.0 against v4.16.5: every variant of the targeted stalls is down 100%.

### Timeline

| When                    | Milestone                                                                                                       |
| ----------------------- | --------------------------------------------------------------------------------------------------------------- |
| Day 1                   | uLogger reports 85 sensor nodes with the same crash                                                             |
| Day 1, 41 minutes later | Candidate fix tagged on a test branch                                                                           |
| Day 1, that evening     | Test build deployed to a field gateway                                                                          |
| Day 2                   | Pull request opened, reviewed and merged; review also turns up three related driver bugs in other product lines |
| Day 2                   | Firmware v4.17.0 with the fix begins rolling out to the fleet                                                   |

The timeline counts working days only. Days the change spent waiting in the review queue and for the release schedule are left out.

Without uLogger, the team estimates the search would have taken four weeks or more. The fault never reproduced in the lab, so engineers would have been searching blind. With uLogger, they had the root cause in under an hour: a candidate fix was tagged 41 minutes after the crash report and was running on a field gateway the same evening.

> “uLogger has changed how we develop and deploy firmware. Now we can move with speed and confidence.”
> 
> — CTO, IoT sensor maker

## Conclusion

A watchdog reset with clean fault registers is one of the hardest failures in embedded systems: nothing crashed, nothing reproduces, and the logs stop just before the interesting part. uLogger turned scattered resets on a fleet of 250,000+ nodes into one decoded stack trace and one peripheral register. That was enough to find a defect a few clock cycles wide and ship the fix fleet-wide.

Already using Claude Code? [Connect it to the uLogger MCP server](../ai-skill.html) and ask it about your fleet's crashes directly.

## Stop guessing at field failures. See what really happened.

Have field failures your team can't reproduce? Schedule a demo: we'll walk you through a real crash dump like the one in this story, then show what it takes to add the uLogger library to your firmware so the next unexplained reset arrives with its stack trace and registers.

[Schedule a Demo](../book-demo.html) [Start Free Trial](https://holodeck.ulogger.ai?action=create-account)
