FirmwarePublished 7 min read

How Do You Perform Firmware Bring Up on a New Custom PCB?

You bring up firmware on a new custom printed circuit board (PCB) in verified stages: inspect and power the board with a current limit, confirm rails, reset and clocks, connect the debugger and run minimal code, then enable the console, clock tree, memory and each peripheral one at a time while logging results and board errata.

How Do You Perform Firmware Bring Up on a New Custom PCB?

You perform firmware bring up on a new custom PCB (printed circuit board) in stages, verifying each before starting the next: inspect the board and power it from a current limited supply, confirm power rails, reset and clocks, connect a debugger over SWD (Serial Wire Debug) or JTAG (Joint Test Action Group) and run minimal code, then enable the serial console, clock tree, external memory and each peripheral one at a time. Every result is logged, and every hardware issue goes into a board errata list that feeds the next revision.

What do you need before powering the board?

Prepare these inputs before the first board arrives:

  • Schematic, layout, BOM (bill of materials) and assembly drawings for the exact revision.
  • Datasheets and errata for the MCU (microcontroller unit) or SoC (system on chip), regulators and key peripherals.
  • A bring up plan listing expected rail voltages, idle current, clock frequencies and test points.
  • A bench supply with adjustable current limit, a multimeter, an oscilloscope and a debug probe supported by the target.
  • Minimal test firmware prepared in advance, ideally first proven on the vendor evaluation board.
  • A known good reference, such as the evaluation board, to separate design issues from firmware issues.

What is the step by step bring up procedure?

Follow the steps in order; skipping ahead makes faults harder to isolate.

  • Step 1: Inspect visually against the assembly drawing: polarised parts, integrated circuit (IC) orientation, solder bridges on fine pitch packages and correct part values in critical positions.
  • Step 2: Measure resistance from each rail to ground with the board unpowered and compare with expected values and with other boards; a near zero reading indicates a short.
  • Step 3: Apply power from a current limited supply set slightly above the expected idle current, raise the voltage gradually and watch current draw; check for components heating up.
  • Step 4: Measure each rail voltage and ripple, and verify power good, sequencing and reset release timing against the datasheets.
  • Step 5: Verify the oscillator starts and the reset line is released; on many MCUs a clock output pin can later confirm frequency.
  • Step 6: Connect the debugger and read the device ID. If it fails, check target voltage reference, reset level, boot mode pins, debug line continuity and readout protection settings.
  • Step 7: Load minimal firmware that toggles a GPIO (general purpose input output) pin and confirm the waveform on the oscilloscope.
  • Step 8: Bring up a UART (universal asynchronous receiver transmitter) console at a known baud rate; readable output also confirms the clock configuration.
  • Step 9: Switch to the final clock tree with PLL (phase locked loop) settings and verify frequencies through a clock output pin or a timer measurement.
  • Step 10: Test external memory: data and address line tests, then pattern tests over the full range for SDRAM (synchronous dynamic random access memory), DDR (double data rate) memory or QSPI (quad serial peripheral interface) flash.
  • Step 11: Enable peripherals one at a time with a known expected result: I2C (Inter Integrated Circuit) address scan, SPI (serial peripheral interface) device ID register reads, ADC (analog to digital converter) readings against reference voltages, Ethernet PHY (physical layer transceiver) register reads and link, CAN (Controller Area Network) loopback then bus traffic, USB (Universal Serial Bus) enumeration.
  • Step 12: Test power modes, wake sources, brown out reset and watchdog, measuring sleep current against the power budget.
  • Step 13: Record results, measured values and errata in the bring up log and release a board support baseline in version control.

How should bring up firmware be structured?

Write bring up firmware as a small set of independent test commands reachable from the UART console, such as reading a sensor ID, running a memory test or toggling a peripheral, rather than one large program that runs everything at boot. A command shell lets the hardware engineer repeat a single test while probing the board, and it keeps a failure in one block from hiding results from the others. Put pin assignments, clock settings and peripheral instances in one board configuration layer, because that layer becomes the starting point of the production BSP (board support package). Print the reset cause, firmware version and board revision at every boot, so each logged result can be traced to an exact hardware and software combination. Keep the test commands after bring up: they become the basis of production test firmware and of later failure analysis on returned units.

How does bring up differ for embedded Linux boards?

On application processors the order is boot mode pins, the boot ROM (read only memory), the first stage loader, DDR initialisation and training, then U Boot, the Linux kernel and the device tree. Most vendors provide a serial download mode in the boot ROM, so the first goal is a U Boot console over UART. DDR problems frequently block this stage, so run the vendor DDR calibration and stress tools before booting Linux. Once the kernel starts, enable early console output and bring up drivers by editing the device tree node by node, as described in our device tree guide.

Which faults commonly appear during bring up?

Use this table as a first triage guide when a stage fails.

Common bring up symptoms and first checks
SymptomLikely causesFirst checks
Supply hits current limit at power onShort, reversed polarised part, wrong regulatorRail resistance to ground, thermal check, isolate loads
Debugger cannot connectNo target voltage reference, reset held low, wrong boot pins, swapped debug lines, readout protectionReference voltage, reset level, continuity of debug lines
MCU runs then resets repeatedlyBrown out, watchdog enabled by option bytes, unstable clockReset cause register, rail ripple under load
UART prints unreadable charactersWrong clock source or frequency assumption, wrong baudOscillator frequency, clock output pin, baud settings
I2C device does not acknowledgeMissing pull ups, wrong address, voltage level mismatchOscilloscope on the SDA and SCL (I2C data and clock) lines, address straps
Ethernet has no linkPHY strap pins, missing reference clock, magnetics wiringPHY registers over MDIO (management data input output), reference clock frequency
Linux stops after the bootloaderDDR configuration, device tree mismatch, wrong console settingsMemory test in U Boot, early console output

Bring up exit checklist

The board is ready for application firmware and validation when:

  • All rails, sequencing and reset timing measured and within specification.
  • Debugger connection and flash programming reliable across power cycles.
  • Final clock tree verified by measurement.
  • External memory passes pattern tests over its full range.
  • Every peripheral on the schematic exercised with a recorded result.
  • Sleep and active currents measured against the power budget.
  • Board errata list reviewed with the hardware designer and rework instructions written.
  • Bring up firmware and test scripts committed to version control.

Limitations

Bring up proves that the board works on the bench. It does not replace design verification across temperature, EMC (electromagnetic compatibility) pre compliance, RF (radio frequency) tuning, production test development or firmware validation, which belong to the engineering validation test (EVT) and design validation test (DVT) stages that follow. Boards with mains voltage or high voltage battery connections need electrical safety procedures that are outside this guide.

Sources and standards

Standards and specifications referenced in this guide:

  • IEEE 1149.1 (JTAG test access port and boundary scan)
  • Arm Debug Interface Architecture Specification (ADIv5 and ADIv6, including SWD)
  • Devicetree Specification (devicetree.org)
  • IPC A 610 (acceptability of electronic assemblies)
Board Bring UpFirmwarePCBDebuggingEmbedded Hardware

EmbedCrest Engineering Team

Embedded Systems Engineers at EmbedCrest Technology

Embedded systems, IoT and Edge AI engineering, delivered from Kalyan, Maharashtra, India.

FAQ

Frequently Asked Questions

How do you perform firmware bring up on a new custom PCB?

Inspect the board, check rail resistance unpowered, and power it from a current limited supply. Verify rails, reset and clocks, connect the debugger, and run a minimal GPIO toggle. Then bring up the UART console, final clock tree, external memory and each peripheral one at a time, logging measurements and board errata.

Why can't my debugger connect to a new board?

The usual causes are a missing target voltage reference to the probe, reset held low, boot mode pins in the wrong state, swapped or broken debug lines, or readout protection. Check each with a multimeter or oscilloscope, then try connecting under reset, which many probes support for MCUs that reconfigure debug pins.

How long does board bring up take?

It depends on board complexity and how many issues the first revision has. A small MCU board with a few peripherals often comes up quickly, while an application processor with DDR, Ethernet and a display takes longer. Planning with a written bring up checklist and an evaluation board reference reduces the time spent isolating faults.

What is the difference between bring up and firmware validation?

Bring up proves that each hardware block works with minimal firmware on the bench. Validation proves that the complete product firmware meets its requirements across conditions such as temperature, power variation, communication faults and long duration operation, using defined test cases, often automated with hardware in the loop (HIL) rigs, before production release.

Ready to Build Your Embedded Solution?

From Edge AI to industrial IoT, our engineering team delivers end to end embedded systems solutions. Let us discuss your project requirements.

Discuss This With an Engineer