EE Primers · Hardware development

Lab measurement and debug: getting a true reading, then finding the cause

A measurement is a circuit: the probe, its ground lead, the instrument's bandwidth and input impedance all become part of the thing being measured. Most bench mistakes are artefacts mistaken for signals, or real signals hidden by the setup. This page covers the instruments a hardware engineer uses daily, how each one lies, and a systematic method for debugging a board from first power-up to an intermittent field failure.

01 · Oscilloscope

Bandwidth, sampling and what the screen really shows

  • Bandwidth and rise time. A scope with a Gaussian-like response has rise time ≈ 0.35/BW (flatter "brick-wall" responses are closer to 0.4–0.45/BW). The displayed rise time is roughly the root-sum-square of the signal's, the scope's and the probe's: \(t_{\text{meas}}\approx \sqrt{t_{\text{sig}}^{2}+t_{\text{scope}}^{2}+t_{\text{probe}}^{2}}\). For about 3 % error, the system must be 3–5 times faster than the edge.
  • Sample rate at least 2.5–5× the bandwidth for real-time capture with sin(x)/x interpolation; check the rate actually used at the chosen memory depth and time base, which may be far below the headline number.
  • Memory depth sets how long you can capture at full sample rate. Capturing a boot sequence of 2 s at 1 GS/s needs 2 G points, or segmented memory.
  • Vertical resolution: 8-bit scopes have about 256 levels over the screen; use the full screen height, or a 10–12-bit scope or the high-resolution mode for small signals like ripple.
  • Triggers are the most powerful debug feature: runt, glitch (pulse width), setup/hold violation, serial-protocol triggers, and zone triggers catch the one-in-a-million event.
02 · Probes

Probing: where most measurements go wrong

ProbeLoadingBandwidthUse it forWatch out for
Passive 10×10 MΩ ∥ ≈ 10 pFUp to ~500 MHz with a short groundGeneral purpose, logic levels, slow signalsCapacitive loading on fast or high-impedance nodes; compensation adjustment; ground lead inductance
Passive 1× / coax1 MΩ ∥ 50–100 pF, or 50 ΩLow (1 MΩ) / high (50 Ω)Small signals, ripple (1×), 50 Ω sourcesHeavy loading in 1× mode
Active single-ended≈ 1 MΩ ∥ < 1 pF1–4 GHz+Fast edges, clocks, high-impedance nodesLimited input range, fragile
DifferentialBalanced, high impedanceUp to many GHzDifferential pairs, switch nodes, floating measurementsCMRR falls with frequency; input range
Power rail probe50 kΩ DC, 50 Ω AC~2–4 GHzRipple and noise on rails with built-in offsetNeeds a good connection at the load
Current probeClamp, almost noneDC to 50–100 MHz (Hall + transformer)Inductor and load currents, inrushDegauss and zero before use; sensitivity limits at low currents

The ground lead

The standard 15 cm ground clip has about 150 nH of inductance. With the probe tip capacitance it forms a series LC resonating near 100–150 MHz, so every fast edge shows ringing that does not exist on the board, and the loop picks up magnetic fields from nearby switching currents. Use a ground spring of a few millimetres, or solder a short coax pigtail or a probe-tip adapter at the measurement point.

Measuring ripple properly

  • Probe at the load's decoupling capacitor, not at the regulator, with a tip-and-barrel or spring ground directly on the capacitor pads.
  • Use the bandwidth stated in the specification (20 MHz is common for ripple; noise specs may need more), and say which bandwidth you used.
  • A 1× or 50 Ω path with a DC block, or a rail probe, for millivolt-level noise; 10× probes add their own noise and lose resolution.
  • Short the probe tip to its own ground at the same spot to see the setup's noise floor and pickup.
03 · The rest of the bench

Other instruments and their pitfalls

04 · First power-up

Board bring-up sequence

  1. Visual and assembly check: orientation of polarised parts, missing parts, bridges, correct revision of board and firmware.
  2. Unpowered impedance: resistance from each rail to ground. A near-short (a few ohms) is found now, not by smoke. Compare with a known-good board if available.
  3. Current-limited power-up: supply set to low current limit, ramp slowly, watch current. Unexpected current means a short or a part back-powered.
  4. Rails: each rail's voltage, then sequencing and ramp timing on a multi-channel scope against the SoC's requirements.
  5. Clocks and resets: crystal running at the right frequency and amplitude, reset released after rails are stable, power-good signals.
  6. Debug access: JTAG/SWD connects; debug UART prints boot messages; boot straps read as intended.
  7. Memory and boot: memory tests, then boot to a test image.
  8. Peripherals one by one: each bus and device, then radios, audio, sensors, charging. Record measurements as the baseline for every later build.
05 · Method

A systematic debug method

1 · Define and reproduce

State the symptom precisely: what fails, how often, under what conditions, on which units and builds, since when. Find a reliable reproduction; an intermittent with a 1 in 100 rate needs a setup that runs hundreds of trials unattended.

2 · Characterise

Change one variable at a time: voltage, temperature, firmware version, unit, load, timing. Failures that track a variable point to the mechanism (a failure that worsens at cold suggests timing or a crystal, at hot suggests leakage or thermal margin).

3 · Hypothesise and test

List candidate causes and the observation that would rule each in or out. Prefer the test that splits the hypothesis space in half: hardware or firmware, this board or every board, this rail or that one.

4 · Isolate

Swap parts between good and bad units (A-B-A: move the part back to confirm the symptom follows it), bypass subsystems, inject known signals, compare against a known-good unit.

5 · Fix and verify

Confirm the fix removes the symptom on the failing unit and does not appear on units that were never failing for another reason. Check for side effects with the relevant regression tests.

6 · Close the loop

Root cause written down, with evidence. Update the schematic or layout checklist, the test plan or limits, and the FMEA so the same issue cannot recur unnoticed.

Common symptoms and first suspects

SymptomFirst suspectsFirst measurement
Supply hits current limit at power-upShort, reversed part, back-powering, inrush into large capacitanceRail-to-ground resistance; thermal camera at low current
No bootRail sequencing, reset timing, clock not running, boot straps, memory interfaceMulti-channel capture of rails, reset and clock at power-up; debug UART
Resets under load (radio burst, audio)Brownout from rail droop, battery or cable impedance, insufficient decouplingRail at the load with trigger on reset; current probe
Bus errors at one temperatureTiming margin, clock drift, signal integrity, pull-up rise timeScope at the receiver pins across temperature; vary drive strength
Intermittent only after drop or flexCracked joint, connector, flex damageX-ray, flex while monitoring, freeze spray
Higher sleep current than budgetFloating inputs, back-powering, a peripheral left on, leakageSMU on the rail while removing loads one by one; compare boards
Audio hum or buzzGround loops through charging, PFM ripple, radio TDMA bursts (217 Hz-type buzz)FFT of the audio path; correlate with converter mode and radio activity
Reduced radio rangeDesense, antenna detuning, matching, TX powerConducted vs radiated comparison, noise floor at antenna port
06 · Check yourself

Questions worth being able to answer

Your scope shows 400 mV of ringing at 120 MHz on a 1.8 V clock. Is it real?

Possibly not. 120 MHz is exactly where a standard ground lead (≈ 150 nH) resonates with a passive probe's ≈ 10 pF. Re-measure with a ground spring or a solder-in active probe at the receiver pin. If the ringing disappears, it was the probe. If it stays (often at a different frequency), it is a real transmission-line or termination problem.

What bandwidth scope do you need to measure a 500 ps rise time to within about 5 %?

For 5 % error, the instrument's rise time should be about one third of the signal's: ≤ 167 ps for scope and probe combined, which is ≈ \(0.35/0.167\ \text{ns}\approx 2.1\ \text{GHz}\). A 2.5 GHz scope with a probe of similar or better bandwidth is the practical choice.

How do you measure a device's sleep current of 5 µA when it wakes to 50 mA bursts?

A single shunt cannot cover 80 dB of dynamic range with good resolution and low burden. Use a power analyser with seamless range switching, or an SMU in a range that holds during sleep while a parallel path (diode or switched shunt) carries bursts, or measure sleep and active states separately and combine by duty cycle. Make sure the meter's burden does not cause a brownout during bursts.

A board works on the bench but fails in the enclosure. How do you approach it?

List what the enclosure changes: temperature (less airflow), mechanical stress (flex, pressure on parts, connector seating), grounding and shielding (metal parts, shield cans, cables now routed differently), antenna environment (desense, detuning), and ESD paths. Reproduce with the board partly enclosed, add elements one at a time, monitor temperatures and the failing signal, and look for clearance or pressure on parts in the 3D model.

Why might two engineers measure the same rail and report 10 mV and 40 mV of ripple?

Different probes, ground-lead lengths, bandwidth limits, measurement points (regulator output versus load), coupling (AC 10× vs 1× vs 50 Ω), and peak-to-peak versus RMS. Ripple numbers are meaningless without the setup; specify bandwidth, probe type, location and statistic.

07 · Further reading

References

  1. Tektronix, ABCs of Probes, primer.
  2. Keysight, Evaluating Oscilloscope Bandwidths for Your Application, application note.
  3. Keysight, Spectrum Analysis Basics, application note 150.
  4. P. Horowitz and W. Hill, The Art of Electronics, 3rd ed., Cambridge University Press, 2015, chapter on measurement and noise.
  5. E. Bogatin, Signal and Power Integrity — Simplified, 3rd ed., Prentice Hall, 2018, chapters on measurement.