Stalled projects rarely have a single cause. A marginal power rail, an undocumented workaround, a requirement that changed quietly and a build that only works on one laptop add up. The way out is to replace opinion with evidence, in a fixed order.
This note describes a method and problems common across embedded development. It is not a report on a named client.
Recognizing a stall
| Signal | What it often means |
|---|---|
| "90% done" for several months | Remaining work was never broken down or measured |
| Each fix creates a new fault | Hidden coupling, no regression tests, or an unstable hardware base |
| Failures nobody can reproduce | Timing, power or environmental causes without logging to expose them |
| Only one person can build or flash it | The process lives in a head, not in the repository |
| Prototypes behave differently from each other | Uncontrolled rework, component substitutions or assembly variation |
Step zero: secure what you own
Before any debugging, gather the assets. Access is easiest to obtain while relationships are still cordial.
- Source: firmware, bootloader, app and cloud repositories with full history, submodules and third-party library versions.
- Hardware: native schematic and layout files, bill of materials with manufacturer part numbers, fabrication and assembly outputs, mechanical CAD.
- Build and release: toolchain versions, licenses, scripts, signing keys and the exact images on existing units.
- Accounts: cloud, app store, domain, certificate and vendor portal ownership.
- Records: test reports, errata, rework notes, certification correspondence and open issues.
Preserve device state too. Read-out protection, fused keys and secure boot can make a careless erase irreversible, so label one unit as a reference and do not reflash it.
The audit
| Area | Questions | Evidence |
|---|---|---|
| Requirements | What must it do, and who agreed? | A one-page testable list with open disputes marked |
| Power and clocks | Are rails, sequencing, inrush and clocks within datasheet limits? | Oscilloscope captures at load and across supply range |
| Schematic and layout | Are pin functions, errata, RF, return paths and protection right? | Review findings ranked by risk |
| Supply | Are parts available and in production? | Lifecycle and lead-time status per critical part |
| Firmware | Does it build cleanly from a fresh machine? How does it fail? | Reproducible build, static analysis, fault and reset logs |
| System | Do device, app and cloud agree on protocols and recovery? | End-to-end traces including failure cases |
| Compliance | Which markets and standards apply, and what has been tested? | Gap list against the intended certifications |
A first firmware check is simple and revealing:
# Can the tagged release be rebuilt from nothing?
git clone --recurse-submodules <repo> fresh && cd fresh
git log --oneline -5
# build in a clean container with pinned tool versions, then compare
sha256sum build/firmware.bin released/firmware.bin
Hashes may differ because of embedded timestamps or paths. What matters is that you can explain every difference.
Make failures observable
- Record reset cause, firmware version and a fault record (program counter, link register, fault status) that survives reboot.
- Add watchdogs that report why they fired, not just restart.
- Correlate logs with logic analyzer, oscilloscope and current traces.
- Run several units for long periods and count failures, so "fixed" can be demonstrated.
Triage: fix, refactor, rewrite or respin
| Option | Choose it when | Risk |
|---|---|---|
| Fix in place | Faults are local and the structure is sound | Patches accumulate |
| Refactor behind tests | Behavior is mostly right but hard to change | Needs tests written first |
| Rewrite a module | One part causes most defects and has a clear interface | Undocumented behavior is lost |
| Board rework | A modification proves the hypothesis on a few units | Not a production solution |
| Board respin | Faults are in power, RF, pinout, layout or part availability | Fabrication time and retest |
Rank each issue by severity, likelihood, cost of delay and confidence in the root cause. Do not order a respin until each change traces to a reproduced fault or a stated requirement.
Replan so the dates mean something
- Replace percent-complete with exit criteria that are demonstrably true or false.
- Retire the largest technical risks first.
- Give ranges with stated assumptions; see hardware timeline estimation.
- Put hardware files, firmware and release artifacts under version control.
- Add firmware unit tests and a hardware-in-the-loop smoke test around what was just fixed.
What you should have after the assessment
- An asset inventory with gaps.
- A ranked risk register with evidence for each finding.
- A keep, repair or replace recommendation per subsystem.
- A staged recovery plan with decision points, including the option to stop.
AI tooling helps us read unfamiliar code, summarize logs and draft tests; engineers verify findings and own the decisions, as described in The AI/Human Split.
