Extracting MCU embedded firmware means recovering the compiled program and its data arrays from a microcontroller that has been locked against readout, and returning them as a file a programmer can load. The phrase is often used loosely, so it helps to be precise: this is not decompiling, and it does not produce source code. What comes back is the machine image that was burned into the part, together with the calibration data the program expects to find beside it.
Firmware Lives In More Than One Place
A microcontroller is not a single memory. The program typically occupies a flash or EPROM array, while a second, smaller EEPROM array holds values that differ from unit to unit: oscillator trim, sensor offsets, serial numbers, run-hour counters, and in some designs the keys used to decrypt the rest of the image. A third region holds option or configuration bytes that set brown-out thresholds, watchdog behaviour, clock source and the protection state itself.
Extraction that retrieves only the code array produces a file which boots and then faults, because the values it expects at fixed addresses are missing. Any complete job therefore has to account for all three regions and report honestly on the ones that cannot be reached.
Why The Chip Refuses A Normal Read
The protection mechanisms differ by vendor but share a purpose. AVR parts use lock bits that disable both the debug interface and program verification. NXP LPC parts use Code Read Protection levels that close the debug port and restrict ISP access. STM32 parts use readout protection, with the higher level closing the debug interface permanently. Older 8051 and PIC families place a security fuse between the programmer and the array.
Set correctly, these mechanisms answer every read request with a uniform pattern rather than the real contents. The part is not damaged and the code is still there; it has simply been told not to say.
Reading Past A Security Fuse
EPROM-based parts from the 8051 era illustrate how physical readout works in principle. When the security fuse of a device such as the AT89C52 is exposed to ultraviolet light for longer than about seven minutes, the fuse can be erased while the code array survives. With the supply held below roughly 2.2 V the array can then be read intact; at 4.8 V and above the fuse remains effective and the read is refused.
A second technique depends on timing rather than voltage alone. If the moment at which the part latches data from the array can be captured, the supply can be dropped to around 2 V to hold the array in a readable state and then raised to 5 V to clock the contents out, stepping past the fuse check rather than erasing it.
A third approach works on the floating gate itself. Careful control of programming time allows a small, measured charge to be injected into the gate, shifting its threshold. With the threshold moved, the array can be read even while the security fuse remains active and intact.

The Four Routes Used Today
Modern parts have closed most of the easy paths, and a job is normally decided after the device has been inspected. The routes fall into four groups:
- Debug or bootloader entry — where protection is partial or a documented backdoor sequence exists, the array can be read through the intended interface without opening the package.
- Decapsulation and direct readout — the package is opened to expose the die, and the array is read optically or with a microprobe. This is the most invasive and the most expensive route.
- Fault injection — a timed voltage or clock glitch pushes the core past its protection check during boot, after which a normal read succeeds.
- Side-channel analysis — power consumption or electromagnetic emission is recorded while the part runs and correlated against known operations to recover internal state.
What Makes A Job Difficult
Difficulty is rarely a function of part number alone. The same device can be straightforward in one package and painful in another. Four factors dominate: the package (a QFP is far easier to open than a BGA or a chip-on-board assembly), the protection level (an active shield and a level-2 lock can add weeks), the condition of the die (a part already attacked or over-etched is harder to recover), and whether the design uses an external secure element that holds part of the key.
Where a part carries a cryptographic accelerator and the firmware image is stored encrypted, extraction also requires the key. That key may sit in a protected region, in an external companion chip, or be derived at boot, and each case changes the work entirely.
What You Receive
Delivery is an Intel HEX image with original addresses preserved, a raw binary for tools that require one, a checksum for each, and a memory map showing which regions were read and which were unreachable. A short note records the protection state found on arrival and the route used, which matters if the same part type is submitted again later.
Frequently Asked Questions
Is extraction the same as decapsulation? No. Decapsulation is one physical route used when software routes are closed. Many jobs finish without opening the package at all.
Does the part still work afterwards? Non-invasive routes leave it functional. Once the package is opened the die is generally not reusable, although the extracted data is unaffected.
Can encrypted firmware be recovered? Only if the key can also be recovered or derived. An encrypted image without its key is not usable, and this is assessed before the job is quoted.
Why does the price vary so much between similar parts? Because cost is driven by package, protection level and die condition rather than by part number. Two parts with identical markings can differ by an order of magnitude in effort.
Related Reading
The practical, part-level view of the same work is set out under copying a microcontroller program. The physical security side — data remanence, low-temperature attack and anti-tamper sensors — is covered under MCU extraction. For Microchip 32-bit devices the PIC32MX extraction index lists each part with its flash geometry. To request a quote, use the contact form.
Service scope and next steps
Read-protected microcontroller firmware is routine work for our lab. Send the part number and we will confirm the device revision, the protection configuration and the method before we quote. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.
Need this protected part read?
Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.
Request a quotation





Leave a Reply