Hardware + firmware debugging

Embedded Hardware Rescue

When a board, firmware interface, or system is stuck, we work across the hardware and firmware boundary to reproduce the symptom, isolate what the evidence actually supports, and define the next engineering step.

Tell us what is failing and what you have already tried. Do not send confidential design files through the public form.

When the product is stuck between hardware and firmware

This service is for teams whose product is already failing, unstable, or blocked — not for a readiness review before the next manufacturing spend.

  • The product does not boot, or boots only intermittently.
  • Different boards or units behave differently with the same firmware build.
  • Hardware and firmware teams cannot isolate the cause from existing logs alone.
  • The issue appears only under certain power, temperature, or load conditions.
  • Bench behavior differs from enclosure, fixture, or production-test behavior.
  • Development firmware works, but production programming, identity, or test context does not.

Hardware and firmware fail as a system. Isolate them as one.

Symptoms this service can investigate

Examples of symptom classes that may require cross-layer investigation. This is not a claim that every project has every failure mode.

Symptom

What may need observation

Possible evidence

No boot / incomplete boot

Power sequencing, reset, clocks, boot mode, first firmware image

Rail levels, reset cause, debug access, boot logs

MCU resets

Brownout, watchdog, stack, load transients, EMI

Reset-cause registers, rail traces, firmware state

Power instability

PDN, sleep/wake, inrush, battery/load profile

Current draw, sequencing timing, firmware power states

Peripheral / bus failure

Pinmux, levels, timing, driver state, assembly

Bus signals, register vs pin behavior, protocol logs

SWD / JTAG / programming access

Debug connector, NRST, boot config, pin reuse in firmware

Connect-under-reset behavior, option bytes, schematic vs layout

Different behavior across units

Assembly, programming image, BOM revision, calibration

Unit identity, firmware hash, hardware revision compare

Development works / production fails

Production image, fixture, programming flow, test criteria

Bench vs line logs, programming records, PASS/FAIL definition

Enclosure / environment behavior

Thermal, grounding, antenna, harness, mechanical stress

Assembled-state reproduction, environmental conditions

HW / FW interface disagreement

Shared assumptions on pins, timing, boot, and peripheral state

One evidence trail across both layers

RF / GNSS coexistence

Radio scheduling, power, layout, and firmware interaction when wireless subsystems are active

Reproduction with radios on/off; system-level observation only where relevant

Board bring-up is one important problem class within Rescue — first power-on, debug access, and peripheral validation — not the whole offer. Rescue also covers systems that once worked and now fail in production or in the field.

How we isolate the failure

A typical working method follows: Problem → Reproduce → Isolate → Evidence → Best-Supported Cause → Fix Plan → Revalidate. Not every project follows the same laboratory sequence, but the evidence discipline stays the same.

01

Understand the current build, firmware state, and the engineering decision you need.

02

Reproduce the symptom — or document clearly that it cannot yet be reproduced.

03

Bound the failure domain: which units, builds, environments, and conditions are involved.

04

Separate variables across hardware, firmware, power, interfaces, and test context.

05

Gather evidence against the leading hypotheses. A suspected cause is not a proven cause.

06

Test the leading hypothesis in small, checkable steps.

07

Define the fix path and the next engineering gate — including when the honest answer is “not yet proven.”

08

Revalidate where scope permits — without promising that every intermittent issue can be closed in one pass.

Factory-independent engineering: we represent the product’s technical interest when evidence is missing or disputed. This is not certification, not an accredited failure-analysis lab, and not a guarantee of completeness.

Hardware and firmware are not separate blame buckets

Many embedded failures sit across the boundary. A rail sag can look like a firmware bug. A pinmux error can look like a dead peripheral. A production image can look like a hardware yield problem. The system has to be observed as one integrated product.

Rescue is cross-layer engineering — not hardware-only debug, not firmware-only outsourcing, and not a generic “full-stack IoT development” pitch.

Evidence may include

  • Power rails, sequencing, and reset cause
  • Boot state and firmware build identity
  • Digital and analog interfaces, timing, and GPIO/register behavior
  • Signals on the relevant nets when observation is in scope
  • Unit-to-unit variation, programming records, and assembly differences
  • Environmental, enclosure, fixture, and production-test context

When layout-sensitive issues are suspected — for example power droop near a switcher or reset behavior tied to supply noise — the investigation still stays inside agreed scope. We do not publish lab equipment inventories or performance claims without evidence.

What you receive

Typical outputs depend on scope and materials available. Where relevant, findings may be structured in Build Evidence Pack style — not a fixed universal report template.

01

Symptom and reproduction summary

02

Evidence reviewed or collected — and evidence still missing

03

Root-cause matrix: supported cause vs open hypotheses

04

Recommended hardware and firmware actions

05

Revalidation plan and next engineering gate

PASS / PEND / FAIL — against named criteria

Findings may be reported against explicit checks — for example SWD access under reset or reproduction of a named failure mode. These labels describe evidence status, not success rates.

PASS

Evidence supports the stated criterion.

PEND

Not yet sufficiently proven; evidence incomplete.

FAIL

Evidence shows the criterion is not met.

INDEPENDENT PUBLIC-ISSUE INVESTIGATION

When a flash erase changes the hardware

Independent technical analysis of a public engineering issue — not a completed BuildInShenzhen client project. The source project is Adafruit CircuitPython. The board and silicon are Nordic Semiconductor PCA10059 / nRF52840. Build In Shenzhen is not affiliated with or endorsed by either organization. We did not power, erase, program, probe or repair this board.

Concept illustration of an investigation path, not a photograph of the PCA10059.
Concept illustration — not a photograph of the PCA10059.

Observed failure

CircuitPython issue #1174 records what happened on a PCA10059 after a whole-chip erase and bootloader load: the red LED was very dim, the RGB LED stayed on red, and a GPIO-level check was consistent with 1.8 V rather than the intended 3.3 V selection. The useful clue was the erase, not an isolated LED.

01 — Bound the event

The failure follows a full erase or recovery, not a random LED fault.

02 — Measure the rail

Check VDD OUT and the GPIO reference before reworking parts.

03 — Read retained state

Inspect UICR.REGOUT0 at 0x10001304.

04 — Cross-check the vendor definition

An erased word FFFFFFFF maps to the field default.

05 — Apply the documented state

The public path writes VOUT = 5, then hard-resets.

06 — Verify behavior

Rail, LEDs, GPIO, USB and reboot checks remain to be run on the hardware in hand.

Investigation path from the erase event to the retained register, the vendor definition, and behavior checks that were not run here.

Full-size diagram

Original diagram at its authored 1600 by 900 size. Scroll inside this dialog if the viewport is narrower.

From the public symptom to a check that could disprove it. Physical execution of this flow was not performed for this page.

Hardware and firmware boundary

On this high-voltage topology, USB power enters VDDH and REG0 supplies VDD / GPIO. Nordic defines REGOUT0 at UICR offset 0x304. Encoding 0 is 1.8 V. Encoding 5 is 3.3 V. The erased word is 0xFFFFFFFF, and the field default is 1.8 V. Firmware startup owns recovery from that state. A different supply topology is a different case.

USB input

VBUS / 5 V is the board supply.

High-voltage entry

VDDH, with REG0 active.

Configuration

UICR.REGOUT0. Reset word FFFFFFFF. Field default 1.8 V.

Internal rail

VDD at 1.8 V or 3.3 V.

Loads

GPIO and LEDs use that logic level.

Simplified power path from USB VBUS through VDDH and REG0 to VDD and the GPIO loads, with UICR.REGOUT0 selecting 1.8 V or 3.3 V.

Full-size diagram

Original diagram at its authored 1600 by 900 size. Scroll inside this dialog if the viewport is narrower.

Simplified from the PCA10059 v1.0.0 schematic and the nRF52840 product specification. Not a CAD export or a measurement.

01 — Full chip erase

The UICR word returns to FFFFFFFF.

02 — Decode at reset

The VOUT field defaults to 1.8 V.

03 — Board topology

USB feeds VDDH. REG0 supplies VDD.

04 — Visible symptom

Dim red LED. Other RGB channels fail.

05 — Firmware boundary

Boot must program VOUT and then reset.

Five-stage mechanism from a full-chip erase to an erased REGOUT0 word, a 1.8 V default, a lower GPIO rail, and firmware that must program VOUT and reset.

Full-size diagram

Original diagram at its authored 1600 by 900 size. Scroll inside this dialog if the viewport is narrower.

The erased REGOUT0 state is the most-supported common cause in the public record. Physical damage remains a separate branch.

Documented public fix

Merged pull request #1177 added a startup guard in the public project: if REGOUT0 reads as erased, firmware writes the 3.3 V selection and resets, because the new setting takes effect only after reset. That is the project’s own code change. It is not a Build In Shenzhen repair of a Nordic or Adafruit board.

Before initialization

REGOUT0 = FFFFFFFF. VOUT field defaults to 1.8 V. A public comment reported 1.78 V.

After the documented path

Write VOUT = 5, the 3.3 V selection, then reset. A public comment reported 3.29 V.

Before initialization, REGOUT0 is FFFFFFFF and the reporter cited 1.78 V. After the documented write of VOUT 5 and a reset, the reporter cited 3.29 V.

Full-size diagram

Original diagram at its authored 1600 by 900 size. Scroll inside this dialog if the viewport is narrower.

Numbers are observations reported in CircuitPython issue #1174, not measurements made by Build In Shenzhen.

What was not tested

Build In Shenzhen has not run these physical checks. A real rescue would still record register readback, the rail, indicator and GPIO levels, USB enumeration after reset, and repeatability after erase and recovery.

Configuration — not tested by us

REGOUT0 reads the expected encoded value, by debugger readback.

Power rail — not tested by us

VDD OUT within the board requirement, by meter and a scope during reset.

Indicators — not tested by us

All LED channels switch as commanded, with known test firmware.

Digital I/O — not tested by us

High and low thresholds and loads are valid.

USB and boot — not tested by us

The device enumerates after cold, warm and watchdog reset.

Regression — not tested by us

Erase, reflash and recovery do not regress the rail.

Verification plan for configuration, power rail, indicators, digital I/O, USB boot and regression. Each check is marked not tested by Build In Shenzhen.

Full-size diagram

Original diagram at its authored 1600 by 900 size. Scroll inside this dialog if the viewport is narrower.

These rows are the acceptance plan. None of them was executed on hardware for this page.

Investigation brief

The playback uses the reviewed English narration and captions. On-screen type is a large text card for each shot, not a reduced copy of the verification table. The original 117-second audit recording is unchanged in the evidence package.

  1. Shot 1

    Independent investigation of a public issue, not a Build In Shenzhen repair. Concept illustration — not a photograph of the PCA10059.

  2. Shot 2

    High-voltage path. Erased REGOUT0 is all ones. The VOUT field defaults to 1.8 V.

  3. Shot 3

    Dim red LED and RGB limited to red after a full erase. The investigation moves from the LED to retained configuration.

  4. Shot 4

    A public comment reported 1.78 V before and 3.29 V after the 3.3 V encoding. Those are not Build In Shenzhen measurements. Later comments record probing uncertainty.

  5. Shot 5

    Pull request 1177 writes the 3.3 V selection when the register is erased, then resets. We did not repair the physical board.

  6. Shot 6

    Register readback, rail behavior, LED and GPIO levels, USB enumeration, and erase/recovery repeatability were not run by us.

Sources

Public symptom and reported voltages
CircuitPython issue #1174
Documented startup guard
CircuitPython pull request #1177

Relevant Service CTA

If a prototype changed after an erase, a firmware update or a programming step, bring the event history and the evidence you already have.

What this service does not promise

  • A guaranteed fix or guaranteed root cause on every project
  • Guaranteed reproduction of every intermittent fault
  • Accredited failure-analysis laboratory services or formal certification
  • Default destructive component analysis unless separately scoped
  • Guaranteed supplier or factory cooperation
  • A warranty of the customer product
  • Replacement for required later physical validation or pilot builds
  • Public fixed pricing, turnaround promises, or guaranteed acceptance

If root cause is not proven, we say so. Rescue isolates evidence and defines the next gate — it does not replace honest engineering limits.

When Rescue should become Review or Pilot

Not every hardware project needs Rescue. Use the honest next gate.

Situation

Start here

Other path

Active failure; cause not isolated

Embedded Hardware Rescue

—

System stable; readiness assumptions open

No

Production Readiness Review

Evidence supports a repeatable pilot build

Next

Prototype → Pilot

If the question is whether the design is ready for the next manufacturing spend — not why a unit is failing right now — start with Production Readiness Review.

Shenzhen execution — when investigation needs local context

Some failures cannot be closed from documents alone. When reproduction needs supplier communication, PCBA observation or rework coordination, fixture or production-test watching, unit comparison, or pilot-line context, local Shenzhen engineering execution may help carry findings forward — on the customer side of manufacturing.

This page’s job remains hardware and firmware debugging for a stuck system. It is not a sourcing service, factory network pitch, or low-cost manufacturing brochure.

Rescue My Project

Tell us what is failing, what you have already tried, and what decision you need next. This is a qualification request — not guaranteed acceptance and not a published rescue package.

Prefer the general project form? Start a Project.