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

Summary

Chip programming and IC burning — a practical guide to flashing firmware onto microcontrollers, EEPROMs, and flash memory devices.

Chip programming — also called IC burning or device programming — is the manufacturing step that writes a verified firmware image into non-volatile memory so a board actually does something when power is applied. It sounds trivial until you have to repeat it ten thousand times on a production line, across microcontrollers, serial flash, EEPROMs, and programmable logic, with per-unit serial numbers, calibration data, and security keys injected into every device plus a yield report at the end. This guide covers the real targets, the programmers, the file formats, and the difference between bench flashing and a controlled production programming process.

What Gets Programmed, and How

Memory type, and where it sits on the board, dictates the programming method.

TargetTypical interfaceKey programming detail
Internal MCU flashSWD, JTAG, or ISP (UART/SPI/USB)A flash-loader algorithm runs on the core; option bytes/fuses set separately
SPI NOR flashSPI (programmer or clip)Page program (0x02, 256-byte pages) after write-enable (0x06); sector erase (0x20/0xD8)
I2C / SPI EEPROMI2C (24xx) or SPI (25xx)Page write with acknowledge polling; small page sizes (8–256 bytes)
UV EPROMParallel, in a programmerNeeds a high programming voltage (VPP) and is erased by ultraviolet light
CPLD / FPGAJTAGProgrammed from a JEDEC fuse file (.jed) or a JTAG vector file (SVF/STAPL)

For an external SPI NOR device, the programmer issues write-enable (0x06), erases the relevant sectors, then programs 256-byte pages with the page-program command (0x02), polling the status register (0x05) for the write-in-progress bit between pages. An I2C EEPROM in the 24xx family is addressed at 0xA0 and written in pages, with the programmer polling for the acknowledge that signals the internal write has finished. Internal MCU flash works differently: the probe uploads a small flash algorithm into the target’s RAM, runs it, and streams the data over the debug port. Every target also has a configuration region — STM32 option bytes, AVR fuses and lock bits, PIC configuration words — that must be programmed correctly, or the device won’t boot, will run at the wrong clock, or will leave its debug port open by mistake.

The Programmers

Programming hardware falls into three tiers, chosen by volume and target mix:

  • Bench / universal device programmers. Single-socket or small multi-socket units that support thousands of parts through interchangeable adapters — the TL866/Minipro family for low cost, and professional systems from Elnec, Dediprog, Data I/O, and BPM for wider voltage and algorithm coverage.
  • In-circuit probes that also program. A Segger Production Flasher, an ST-Link, or a J-Link programs internal MCU flash over SWD/JTAG directly on the assembled board, with no socket required.
  • Software-driven tools. The open-source flashrom drives SPI and I2C memories through a clip or bus adapter, while OpenOCD and the vendor suites (STM32CubeProgrammer, Microchip MPLAB IPE, Renesas Flash Programmer) handle their respective MCUs.

File Formats

The image has to reach the programmer in a format it understands:

  • Intel HEX (.hex) — ASCII with embedded addresses and per-line checksums; the most portable self-describing format.
  • S-record (.s19/.srec) — Motorola’s ASCII equivalent, common in automotive and NXP toolchains.
  • Raw binary (.bin) — a byte image that must be paired with an explicit base address.
  • JEDEC / SVF / STAPL — fuse and JTAG-vector formats for CPLDs and FPGAs.

The Programming Sequence

A correct programming operation is a fixed sequence, not a single write:

  1. Blank check — confirm the device is empty, catching parts that were pre-programmed or partially written.
  2. Erase — chip or sector erase to a known all-ones state.
  3. Program — write the image, page by page, with the appropriate algorithm and voltage.
  4. Verify — read the memory back and compare against the source image; a mismatch fails the unit.
  5. Secure — set read-out protection or lock bits so the firmware can’t be read back in the field.
  6. Checksum — record a CRC over the programmed image for traceability.

The verify step deserves emphasis, because programming is an analog process disguised as a digital one. Writing a flash cell means moving enough charge onto a floating gate to shift its threshold voltage past a target window. A cell that lands just inside the window reads correctly today, but temperature cycling or months of charge leakage can drift it back out, and it becomes a field failure. A naive write-and-readback at room temperature lets such a marginal cell pass. That’s why serious production programming applies margin checks — reading at stressed supply voltages or after a brief thermal soak — and why programming algorithms specify exact pulse widths and verify levels for each silicon family. Catching a weak cell at the programming station, where the unit can simply be rejected, is orders of magnitude cheaper than discovering it inside a deployed product. It’s also why the programming recipe (algorithm, voltage, timing) has to match the exact part and revision rather than a generic profile.

In-System vs Pre-Programming vs Gang Programming

For volume production there are three logistics models, each with trade-offs:

ModelWhen programming happensAdvantageConstraint
Pre-programming (offline)Before SMT placement, in a gang programmerNo board access needed; can program then secure parts; high parallel throughputFirmware is fixed before assembly; late changes need re-work
In-system (ISP/ICP)After assembly, via test pointsAlways programs the latest firmware; supports field updatesNeeds accessible pads and a fixture; protection must be managed
Gang / automatedOffline, many sockets or a handlerMultiplies throughput; integrates tape-and-reel/tray handlingHigher capital cost; adapter-per-part engineering

Serialization, Provisioning, and Secure Programming

Production programming is rarely just “write the same image to every chip.” Each unit usually needs unique data injected at programming time: a serial number, a MAC address, calibration constants measured on the test fixture, and increasingly a device-unique key or certificate for secure boot. That’s provisioning, and it turns the programmer into part of the test system. The programming station logs which image version and which per-unit data went into which serial number, producing the traceability record that automotive, medical, and aerospace customers demand. Secure programming stations go further: the firmware image reaches the programmer encrypted, keys go in through a tamper-resistant path, and certificates are provisioned so each device can authenticate on a secure boot chain without the secret ever touching the factory network.

Beyond the device itself, the programming station produces an audit trail that quality systems lean on. Every cycle is logged — image version and checksum, the per-unit serial and calibration data written, the pass or fail result, the operator, the fixture ID, and a timestamp. In a mature line those records feed the manufacturing execution system (MES), so any field unit can be traced back to exactly what was programmed into it and when. That traceability is what makes a targeted recall possible: if a firmware revision turns out to be defective, the build records identify precisely which serial numbers received it, instead of recalling the whole population. Programming yield (the fraction of units that pass first time) is a process-health signal too; a falling yield points at a marginal component batch, a worn socket, or a drifting fixture long before those problems reach customers.

The Line That Stopped Because of One Weak Cell

A customer’s production line was running a motor controller with an STM32 and an external SPI flash. Programming happened in-system after assembly, with a simple write-and-readback verify. Everything passed — until units started failing in the field three months later. The failure was always the same: the device wouldn’t boot, and re-reading the flash showed a handful of bits flipped in one sector.

The root cause was a marginal flash cell that passed the room-temperature verify but drifted out of spec after thermal cycling in the field. The programming algorithm’s pulse width ran slightly short for that particular flash batch, leaving some cells with too little charge margin. We re-qualified the recipe with margin checks — reading at minimum and maximum supply voltage — and the failure rate dropped to zero. The lesson: verify isn’t just “did the bytes match once,” it’s “will they still match after the field gets to them.”

Programming is not finished when the bytes are written. It is finished when the image is verified, locked in the right order, and tied to a serial number you can trace later.

Frequently Asked Questions

What’s the difference between chip programming and flashing?

They describe the same act — writing firmware into non-volatile memory. “Programming” or “burning” usually implies a programmer and a socket or production fixture, while “flashing” often means an in-circuit update over a debug or bootloader interface. The underlying operation is identical.

Can I program a chip after it’s soldered onto the board?

Yes, if the board exposes the programming interface (SWD/JTAG pads, a serial bootloader, or a clip-able SPI flash). This is in-system programming. Otherwise the chip must be programmed in a socket before assembly.

Why verify after programming?

A write can appear to succeed but leave a weak or marginal cell that later fails. Reading the memory back and comparing it byte-for-byte against the source image — plus recording a CRC — catches these defects at the programming station instead of in the field.

Should I enable read protection after programming?

For any product whose firmware is valuable intellectual property, yes. Setting read-out protection or lock bits at the end of the programming sequence prevents the image from being read back and cloned. The trade-off is that future legitimate recovery becomes harder, so the protection level should be a deliberate design decision.

Programming as a Controlled Process

Flashing one board on a bench is a long way from programming ten thousand units with per-device keys and full traceability, and that gap is exactly where PCBDesign Lab adds value: we design the programming fixture, the image-provisioning data flow, and the verification and logging that turn programming from a manual step into a repeatable, auditable production operation. If you need production programming, secure provisioning, or a programming fixture for your board, see our embedded firmware development service or contact us to scope the line.

References

  1. Intel HEX reference: https://en.wikipedia.org/wiki/Intel_HEX
  2. S-record reference: https://en.wikipedia.org/wiki/SREC_(file_format)
  3. In-system programming reference: https://en.wikipedia.org/wiki/In-system_programming
  4. Device programmer reference: https://en.wikipedia.org/wiki/Device_programmer
  5. EPROM reference: https://en.wikipedia.org/wiki/EPROM
  6. EEPROM reference: https://en.wikipedia.org/wiki/EEPROM
  7. flashrom — open-source flash programmer: https://www.flashrom.org/
  8. SEGGER Production Flasher: https://www.segger.com/products/production/flasher/

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