🛡️ Secure your IP with 100% Air-Gapped Labs & Signed NDAs
WhatsApp: +86 18928482768 | sales@pcbdesignlab.com

Summary

In-system programming PCB work loads firmware through a header after assembly and proves the device runs. See the setup, the sequence, and where they fall.

In-system programming loads firmware into a device through a header on the assembled board, then the board gets run to prove it boots and does its job. This is the step that turns an assembled board into a working product.

Why does it matter? A board that passes every electrical test still isn’t a product until its code is loaded and the device is seen running. The same goes for a rebuilt board, where a substituted part may arrive blank and the firmware has to be found and loaded again.

A programming header connected to an assembled board

This step sits between the assembly checks and the functional test. A device with no code can’t be judged functionally, and a device with the wrong code fails for a reason that belongs to the file, not the board.

What In-System Programming Does

In-system programming writes firmware into a device while it sits on the board, using a port the device already provides instead of pulling the part out and reinserting it. That avoids the handling damage a socket introduces. The part is programmed right where it will run.

There’s a flexibility bonus: the same board can carry different firmware versions. Code is written after assembly, so you can vary it by product or region without changing the bill of materials. Real flexibility, but it also brings a risk of loading the wrong file.

It also sets device-specific data — a serial number or a calibration value — that has to differ from board to board. IEEE literature describes how a device is brought up after programming, and that data is written along with the code. Together they make the board unique.

Where the design allows it, the same method updates boards in the field, extending that port well beyond the production line.

The Header and the Interface

Headers bring the programming signals to the board’s edge. Its pinout and physical form are chosen by the design so a standard tool can connect. Go non-standard and you’ve forced a custom cable; the standard choice saves a fixture at every station.

Interfaces also have to protect the device from the tool. Apply a signal while the board is powered and you can damage a pin if the design hasn’t isolated it. That protection is part of the interface itself, not an add-on.

Position matters too. A header in the middle of a dense board is hard to reach in production; one at the edge is easy. The position is chosen for the line, and IPC design-for-test guidance describes the access a programming step assumes.

If a header isn’t acceptable on the finished product, programming pads are used instead and covered after the step. You trade the header’s convenience for a cleaner product.

Loading Firmware in Sequence

Loading happens in a sequence. A device that must be released from reset before it accepts a command won’t respond if the order is wrong, and a board with several devices has to come up in the order the design intends. The sequence is part of the program, and a wrong order just looks like a dead board.

Power is applied and checked before any code goes down. Program a device at a low rail and it can receive corrupted data, then verify as a failure that really belongs to the supply. The rail check comes first, and the power rail testing route is what confirms it.

Verify the write by reading the memory back and comparing. A write that fails partway can leave a device that looks programmed yet behaves unpredictably. Verification is part of the step, and a write without a verify isn’t a completed step.

If the device is protected against reading, verification relies on a checksum the device returns rather than a full read-back.

Proving the Device Runs

Green motherboard with electronic components

Proving the device runs means watching for behaviour that shows the code is executing — a heartbeat on a pin, a start-up message on a port, a measured output the code should produce. That behaviour is the evidence, and a board that stays silent hasn’t been proven.

It also confirms the device’s own configuration was written. A device that runs but isn’t configured may work right up to the first fault, since the configuration is part of the bring-up. JEDEC standards describe the device states a programmer has to reach.

When a board stays silent, check the obvious causes in order: the reset line, the clock, the rail. Those three stop a device from starting no matter what the code is. The order is the same as any bring-up, and these checks are shared with the functional test that follows.

Boards that run but behave wrongly get treated as a firmware or configuration question first, until the hardware is cleared.

Programming a Rebuilt Board

Rebuilt boards get programmed with the firmware its design requires. If the original was never saved, the code has to be captured along with the circuit. The recovery includes it, because a circuit without its code is an incomplete recovery.

Rebuilds lean on advanced PCB reverse engineering techniques that cover the memory device that holds the code. The image is read out and kept with the design so a rebuilt board can be programmed to match. That image is the deliverable that makes the copy work; without it the board is just hardware waiting for software.

Headers have to survive the rebuild too, since it’s how the code gets in. Damage it or leave it off and the board becomes unprogrammable without a socket. The header is preserved for the same reason the test points are.

Once a rebuilt board is programmed and running, that’s the moment the copy becomes a product instead of just a board. That’s why programming is the last of the hardware work.

Failure Modes After Programming

Failures after programming come from a small set of causes. The table below lists the ones a line meets most often.

Failure Usual Cause
Device not detected A rail, a reset, or a clock that is not present
Verify fails A write at a low rail or a memory that is bad
Device runs but does nothing The wrong file or a wrong configuration
Device locks A protection setting written by mistake

Locking is the costliest failure of all. A protection bit written by mistake can leave the part unreadable and unusable, and it may have to be replaced. Confirm the setting before the write — the confirmation is cheap, and the alternative is a scrapped board.

One board failing verify while the next writes clean points at the board. Across a whole batch, verify failure points at the file, the tool, or the rail. The pattern decides the response.

If a failure only appears after the board has run for a while, it points at a configuration the code needs rather than the writing itself. The bring-up record is what shows it.

Programming Records

Green PCB with surface-mount components

Records name the file and its version for each board. When a fault appears later, it’s far easier to judge if you know which code the board carries. The version is as much a part of the board’s identity as its serial, and the record makes that identity available.

It also carries any device-specific data that was written — a serial, a calibration value — so the board can be matched to its test results. That data ties the board to its history, and a board without it can’t be traced.

Keep the record with the assembly and test records, not in a separate system. A board’s history is only useful when it’s read together. The file travels with the board, and the depot repair programme depends on it when a board comes back.

If the programming record is missing, the board is re-read where the device allows it, since the code on the device is itself a record of what was written.

Before committing, compare the scope of a PCB reverse engineering service against the firmware the product needs. That way the rebuilt board arrives programmed to run instead of waiting for code.

Bring the Board Up With the Code It Needs

Send us photographs of the board. We recover the firmware and program the rebuilt board, on the 7-business-day standard for common boards.

Get a Free Quote →

ISO-Certified Lab · 7-Business-Day Standard on Common Boards · NDA Protected

Frequently Asked Questions

What does in-system programming do?

It writes the firmware into a chip while it already sits on the assembled board, using a small connector called a header that the design provides. The chip is programmed right where it will run, which avoids pulling it out and putting it back in — a handling step that can damage the pins. The board is then run to prove the code loaded and the device actually works.

Why run the device afterwards?

Because loading the code is not the same as proving it works. Running the device shows the firmware actually booted and does its job — a heartbeat on a pin, a start-up message, or the correct output. A board that stays silent has not been proven, and if it runs but behaves wrongly the question becomes whether the file or the configuration is at fault rather than the board itself.

What does the design have to provide?

The design has to provide a header — or programming pads — that brings the programming signals to the edge of the board, plus a defined interface the tool can talk through. The interface must also protect the chip, so a signal applied while the board is powered cannot damage a pin. Choosing a standard header means a standard cable works, which saves a custom fixture at every station on the line.

Is a rebuilt board programmed?

Yes — a rebuilt board is programmed with the firmware its design requires, and the header has to survive the rebuild so the code can get in. If the original’s code was never saved, it gets captured along with the circuit during recovery, because a board without its code is just hardware waiting for software. Once the rebuilt board is programmed and running, that is the moment the copy becomes a working product.

References

  1. IEEE — Institute of Electrical and Electronics Engineers, device programming literature. https://www.ieee.org/
  2. IPC — Association Connecting Electronics Industries, design-for-test guidance. https://www.ipc.org/
  3. JEDEC — Standards for device states and memory interfaces. https://www.jedec.org/
  4. ISO — International Organization for Standardization, quality frameworks. https://www.iso.org/
  5. NIST — National Institute of Standards and Technology, references for measurement practice. https://www.nist.gov/
  6. IEC — International Electrotechnical Commission, safety and test standards. https://www.iec.ch/

Conclusion

In-system programming loads firmware through a header on an assembled board, then runs the device to prove it boots — the step that turns a board into a product. The design chooses the header and its interface, the write happens in sequence with the rail checked first, and the code is verified by read-back or checksum. Common failures are a device that isn’t detected, a verify that fails, a wrong file, and a protection bit written by mistake. On a rebuilt board the firmware image is captured with the circuit, since a recovery that leaves the code behind produces hardware that can’t run.

  • Check the rail before writing any code.
  • Verify the write, then prove the device runs.
  • Confirm protection settings before programming.
  • Keep the image and the version with the board.

Need a board rebuilt or its firmware recovered? Send photographs to the engineering team for a free assessment, and you’ll get a quote covering the recovery and the programming before you commit to anything.

Get Your Free PCB Assembly Quote →

Get Weekly PCB Engineering Insights!

Practical insights on PCB design, PCB reverse engineering, IC unlocking and hardware development from PCBDesign Lab.

One email each week. Unsubscribe anytime. Read our privacy policy for more info.

Get Started

PCBDesign Lab Has Helped 100+ Customers Build Their Products

Free Consulting