Engineering Process

Rescuing a Stalled Hardware or Firmware Project

The prototype almost works, the date has moved twice, and the people who built it may be gone. This note sets out how to take control of a stalled embedded project: what to secure, what to audit, how to decide what to keep and how to get back to a believable plan.

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

SignalWhat it often means
"90% done" for several monthsRemaining work was never broken down or measured
Each fix creates a new faultHidden coupling, no regression tests, or an unstable hardware base
Failures nobody can reproduceTiming, power or environmental causes without logging to expose them
Only one person can build or flash itThe process lives in a head, not in the repository
Prototypes behave differently from each otherUncontrolled 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

AreaQuestionsEvidence
RequirementsWhat must it do, and who agreed?A one-page testable list with open disputes marked
Power and clocksAre rails, sequencing, inrush and clocks within datasheet limits?Oscilloscope captures at load and across supply range
Schematic and layoutAre pin functions, errata, RF, return paths and protection right?Review findings ranked by risk
SupplyAre parts available and in production?Lifecycle and lead-time status per critical part
FirmwareDoes it build cleanly from a fresh machine? How does it fail?Reproducible build, static analysis, fault and reset logs
SystemDo device, app and cloud agree on protocols and recovery?End-to-end traces including failure cases
ComplianceWhich 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

OptionChoose it whenRisk
Fix in placeFaults are local and the structure is soundPatches accumulate
Refactor behind testsBehavior is mostly right but hard to changeNeeds tests written first
Rewrite a moduleOne part causes most defects and has a clear interfaceUndocumented behavior is lost
Board reworkA modification proves the hypothesis on a few unitsNot a production solution
Board respinFaults are in power, RF, pinout, layout or part availabilityFabrication 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.

Common questions

Can you take over work started by another team?

Yes, that is the situation this method is for. The first step is confirming what you own and what we can rebuild from it.

Do we need to start again from scratch?

Usually that should not be the first assumption. An audit shows which parts are sound, which need repair and which cost more to keep than to replace.

What if the source code or design files are incomplete?

We list what is missing, ask the previous supplier for it and, where it cannot be obtained, estimate the cost of recreating it. Legal ownership questions belong with your lawyer.

How long does an assessment take?

It depends on the size of the system and the state of the files. We agree the scope and a time box before starting.

Let's build

Stuck on a build? Tell us where it stopped.