Bao'An Shenzhen China

Chip Code Extraction | Delivered as .hex or .bin

Sep 8, 2026  /  PCB COPY

Micro-probing a decapsulated MCU die during chip code extraction

What Is Chip Code Extraction?

Chip code extraction is the process of reading embedded firmware or configuration data from an integrated circuit—typically a microcontroller, FPGA, CPLD, or serial memory—and delivering it as a usable binary file (.hex, .bin, or .s19). The procedure is performed when the original source code or programming files have been lost, when legacy hardware must be replicated for maintenance, or when an authorized owner needs to verify what is actually running on production silicon. Our engineers handle code-protected, fuse-locked, and read-disabled devices daily, using a combination of non-invasive, semi-invasive, and invasive techniques selected per chip family and protection level.

Why Engineers Need Chip Code Extraction

Micro-probing a decapsulated MCU die during chip code extraction

Hardware teams encounter extraction needs in several recurring scenarios:

  • Legacy equipment repair. The original firmware developer is unavailable, the company that wrote the code no longer exists, or the source repository was lost. The only surviving copy of the program lives inside the chip on the board.
  • Production continuity. An MCU goes end-of-life and you need the binary to port it to a pin-compatible replacement. Without the extracted code, you cannot migrate.
  • Quality audit. You need to confirm that a contract manufacturer programmed the correct firmware revision. A post-extraction firmware verification compares the readout against your golden binary.
  • IP recovery. You own the design but the programmer file was never archived. Extraction is the fastest path back to a deployable binary.

Authorization and proof of ownership are required before we begin any chip code extraction engagement. We operate under NDA, and every project file is purged from our systems after delivery.

Supported Chip Families and Protection Levels

Not every device can be read, and success depends on the specific protection scheme the silicon vendor implemented. The table below summarizes common families, their typical protection mechanisms, and realistic extraction feasibility.

Chip Family / Vendor Common Protection Typical Extraction Method Feasibility
PIC (Microchip) — PIC16F, PIC18F, dsPIC Code-protect fuse (CP bit) Non-invasive / semi-invasive High for most older families
STM32 (ST Microelectronics) RDP Level 1 / Level 2 Glitch attack (L1); invasive (L2) L1 high; L2 case-by-case
ATmega / ATtiny (Microchip-Atmel) Lock bits Non-invasive / voltage glitch High
NXP LPC / Kinetis CRP1–CRP3, JTAG disable Glitch / semi-invasive CRP1–CRP2 high; CRP3 limited
Renesas (NEC legacy) RL78, RX Security ID, OCD lock Protocol-level / semi-invasive Moderate to high
TI MSP430 JTAG fuse blow BSL exploit / semi-invasive High for most revisions
Altera / Lattice FPGA / CPLD Bitstream encryption, security bit Varies by device generation Unencrypted high; AES-encrypted limited
Serial Flash (Winbond, SST, Macronix) Write-protect, OTP bits Direct SPI/I²C readout Very high

For vendor-specific details, see our dedicated pages covering NEC IC unlock families, Altera FPGA and CPLD recovery, and dsPIC code-protection bypass.

How Chip Code Extraction Works: Step by Step

1. Feasibility Assessment

You send us the chip part number (full marking, including revision letter and date code) plus a description of the protection state if known. Our lab cross-references the device against our internal database of over 30,000 tested part numbers and returns a feasibility verdict—usually within one business day. There is no charge for this step.

2. Device Preparation

Depending on the method, we may work with the chip still soldered to the board (in-circuit) or desoldered. For BGA and QFN packages, we use hot-air rework stations with thermal profiling to avoid die damage. Serial memories (SOP-8, TSSOP-8) are typically read in-circuit via clip probes.

3. Protection Defeat

This is the core of chip code extraction. The technique chosen depends on the protection tier:

  • Non-invasive: Voltage glitching, clock glitching, or protocol-level exploits that bypass read-protect without altering the die. Turnaround: 1–5 working days.
  • Semi-invasive: UV exposure, focused-ion-beam (FIB) probing of bond pads, or laser fault injection. Requires decapsulation but does not destroy the die. Turnaround: 5–15 working days.
  • Invasive: Full die decapsulation, delayering, and micro-probing of internal bus lines. Reserved for high-security parts where no other path exists. Turnaround: 15–30 working days. Success is not guaranteed—we quote a confidence percentage upfront.

4. Readout and Verification

The raw data is read multiple times (minimum three passes) and compared bit-for-bit. If even a single byte differs between passes, we investigate before delivering. The verified binary is packaged as an Intel HEX (.hex), raw binary (.bin), or Motorola S-record (.s19) per your preference. We also supply a SHA-256 checksum for integrity tracking.

5. Delivery

Files are transferred via encrypted link. On request, we can also program the extracted code onto blank replacement chips—useful when you need a drop-in spare immediately.

Deliverable Formats Explained

Format Extension Typical Use Address Info Included?
Intel HEX .hex MCU programming tools (MPLAB, Keil, IAR) Yes — start address per record
Raw Binary .bin Flash programmers, direct memory images No — offset assumed from 0x00
Motorola S-Record .s19 / .srec Freescale/NXP legacy toolchains Yes
JEDEC / SVF / JED .jed / .svf CPLD/FPGA configuration Fuse-map format

If you need the extracted data in a different container—ELF with debug sections stripped, or a particular programmer’s proprietary format—let us know at quote time.

What Can Go Wrong — Realistic Constraints

IC programmer reading firmware from a microcontroller into a hex file

Honest engineering means telling you where the limits are:

  • Destructive protection. Some newer MCUs (e.g., STM32 RDP Level 2, certain Infineon Aurix parts) trigger a mass-erase if a readout attempt is detected. Chip code extraction on these devices requires careful pre-analysis; we will not attempt a brute approach that risks erasing the only copy of your firmware.
  • Encrypted bitstreams. AES-256-encrypted FPGA bitstreams (Xilinx UltraScale+, Intel Stratix 10) cannot be decrypted without the key. We can read the encrypted blob, but it is unusable without the original key file. Our FPGA bitstream extraction guide covers which families are recoverable.
  • Die damage. Chips that have been through severe over-voltage, moisture ingress, or physical trauma may have corrupted flash cells. We can often recover partial images and flag bad sectors.
  • Anti-tamper packaging. A small number of security-focused ICs (smart-card controllers, HSMs) use active mesh layers that destroy the die on decapsulation. These are generally not candidates for extraction.

Chip Code Extraction vs. Related Services

The terminology overlaps, so here is how our service categories map:

  • Chip code extraction — the umbrella term for any firmware or data readout from a protected IC.
  • MCU firmware extraction — extraction specifically targeting microcontroller flash/EEPROM.
  • External memory readout — reading SPI/I²C/parallel flash and EEPROM ICs that sit outside the MCU.
  • Chip-level reverse engineering — a broader effort that may include extraction plus disassembly, annotation, and functional analysis of the recovered binary.

Turnaround and Pricing Signals

Turnaround ranges from 1 working day for a straightforward serial-flash read to 30 working days for an invasive extraction on a high-security MCU. Most projects (PIC, AVR, STM32 RDP-L1, standard serial flash) complete within 3–7 working days.

Pricing depends on the protection level and technique required. Non-invasive reads on common parts start from approximately USD 200–500. Semi-invasive and invasive work on advanced parts ranges from USD 1,500 to USD 8,000+, quoted after feasibility assessment. We never charge if extraction fails.

Frequently Asked Questions

Is chip code extraction legal?

Yes, when performed on devices you own or are authorized to service. Common lawful scenarios include recovering your own lost firmware, maintaining legacy equipment you operate, and auditing contract-manufactured boards. We require proof of ownership or written authorization before starting any project, and all work is conducted under NDA.

Do I need to desolder the chip from the board?

Not always. Many serial memories and some MCUs can be read in-circuit using clip probes or JTAG/SWD headers. For parts that require desoldering—especially BGA packages—our rework station handles removal and re-balling. Ship us the entire board and we will determine the best approach.

What if the extraction only recovers a partial image?

We flag every address range that could not be verified across multiple read passes. A partial image may still be useful for porting to a new MCU or for identifying specific routines. We provide a detailed extraction report alongside the binary so you know exactly what was recovered and what was not.

Can you reprogram the extracted code onto a new chip?

Yes. We stock blank devices for many common MCU families and can deliver programmed replacement chips alongside the binary file. Specify the target part number when you request a quote.

How do I verify the extracted file is correct?

We perform multi-pass readout with bit-level comparison and supply a SHA-256 checksum. For functional verification, the extracted binary can be loaded onto a test board and run against known inputs. Our firmware verification service provides a structured comparison if you have a reference binary to check against.

Check feasibility for your project

Send the chip marking or board details and tell us what you need to recover. Add clear photos if available.

Request a feasibility review

Related Services

Working on a board like this?

Send the chip marking or two photos. You get feasibility, lead time and price within 24 hours, and the check costs nothing.

Get a free quote

Related reading

WhatsApp Send board details