Bao'An Shenzhen China

AVR IC Unlock | Which Families We Can Read

Oct 7, 2026  /  PCB COPY

avr ic unlock: Decapsulated AVR microcontroller die under microscope showing flash memory array

AVR IC Unlock — Authorized Firmware Recovery for Atmel AVR Microcontrollers

AVR IC unlock is the process of reading protected flash and EEPROM contents from Atmel (now Microchip) AVR microcontrollers whose lock bits have been programmed. Our engineers recover firmware from ATtiny, ATmega, ATxmega, and legacy AT90 devices for clients who own the original design, need to maintain legacy hardware, or have lost source code to a departed contractor. Recovery is performed under NDA with proof of ownership required before any work begins.

How AVR Lock-Bit Protection Actually Works

avr ic unlock: Decapsulated AVR microcontroller die under microscope showing flash memory array

Every AVR microcontroller ships with a set of lock bits — typically two bits (LB1 and LB2) — that control external read/write access to flash and EEPROM through ISP, JTAG, or debugWIRE interfaces. When both lock bits are programmed (Mode 3), the chip blocks all external verification and programming of the flash and EEPROM memory spaces. Some newer families add a third “Boot Lock” layer that independently protects the bootloader section from the application section.

The critical detail most datasheets omit: lock bits only disable the standard interface paths. They do not encrypt the stored data. The firmware still sits in plain NOR flash cells on the die. This architectural choice is what makes physical-layer AVR IC unlock feasible — and why Microchip explicitly warns designers that lock bits are “not an absolute security feature.”

Lock-Bit Modes at a Glance

Mode LB2 LB1 Protection Level Unlock Feasibility
1 (default) 1 1 No lock — free read/write N/A — already readable
2 1 0 Further programming disabled High — trivial bypass
3 0 0 Read + write disabled externally High to moderate — die-level techniques required

Boot Lock Bits (BLB01/BLB02 and BLB11/BLB12) add inter-section protection on devices with separate boot and application regions. These complicate the recovery slightly but do not change the underlying flash-cell accessibility at the physical layer.

Which AVR Families Can We Unlock?

Our lab maintains tooling and process recipes for the full spectrum of 8-bit AVR devices and the 8/16-bit ATxmega line. Below is a family-by-family breakdown with realistic success notes.

Family Example Parts Flash Size Range Typical Turnaround Success Rate (est.)
ATtiny (classic) ATtiny13A, ATtiny25/45/85, ATtiny2313 1–8 KB 5–8 working days ≥ 95 %
ATtiny (0/1/2-series) ATtiny202, ATtiny402, ATtiny3217 2–32 KB 7–12 working days 85–92 %
ATmega (classic) ATmega8, ATmega16, ATmega32, ATmega128 8–128 KB 5–10 working days ≥ 95 %
ATmega (48/88/168/328 series) ATmega328P (Arduino Uno core) 4–32 KB 5–8 working days ≥ 95 %
ATmega (USB-capable) ATmega16U2, ATmega32U4 16–32 KB 7–10 working days 90–95 %
AT90USB AT90USB646, AT90USB1287 64–128 KB 8–12 working days 88–93 %
AT90CAN AT90CAN32, AT90CAN128 32–128 KB 8–12 working days 88–93 %
ATxmega ATxmega128A1, ATxmega256A3B 16–384 KB 10–15 working days 80–90 %
AT90S (legacy) AT90S2313, AT90S8515 2–8 KB 5–7 working days ≥ 95 %

Why ATxmega is harder: Atmel added an AES-based boot-section encryption option on some ATxmega parts (XMEGA custom bootloader encryption). When this feature is actively used, firmware is encrypted in flash and a die-level read returns ciphertext. We can still extract the raw data, but decryption requires the key — which the client must supply or we must recover through additional analysis. This adds 5–10 working days and lowers the guaranteed success window.

What Techniques Do We Use for AVR IC Unlock?

We do not rely on a single method. The approach depends on the specific die revision, package, and protection configuration.

  • Microprobing: After chemical or laser decapsulation, we access the internal bus lines on the die surface. Classic ATmega and ATtiny devices (90 nm and above process nodes) have bus widths and metal layers that are accessible with standard tungsten probe tips. This is our primary method for Mode 3 locked parts.
  • Glitch attacks (voltage/clock): Precisely timed power or clock glitches during the lock-bit verification routine can cause the security check to fail, opening a read window. Effective on many classic ATmega parts — especially older die revisions of ATmega8, ATmega16, and ATmega128.
  • UV fault injection: Targeted UV exposure on specific die areas can reset individual fuse cells without a full chip erase. This technique works on older AT90S and some early ATtiny devices with single-poly flash cells.
  • Debug-interface exploitation: On parts with debugWIRE or JTAG, certain silicon revisions have known errata that allow partial memory reads even with lock bits set. We maintain a database of confirmed-vulnerable die revisions.

Every extracted binary undergoes a verification pass: we compare checksum patterns, interrupt vector tables, and known peripheral initialization sequences against the target device datasheet to confirm data integrity before delivery.

What You Receive After AVR Firmware Recovery

  • Raw binary (.bin) and Intel HEX (.hex) files of the flash contents
  • Separate EEPROM dump (.eep) if EEPROM contains data
  • Fuse byte and lock-bit configuration report (lfuse, hfuse, efuse, lock)
  • Optional: disassembly listing (.asm) with symbol annotations for the target AVR core
  • Verification report documenting extraction method, integrity checks, and any anomalies

Deliverables arrive as a password-protected archive. All source samples are returned or securely destroyed per our NDA terms.

When AVR IC Unlock May Not Succeed

ATmega328P chip held on an ESD-safe workbench before firmware recovery

Transparency matters more than a sales pitch. Here are the realistic constraints:

  • Physically damaged die: If the flash array has been damaged by ESD, latch-up, or prior decapsulation attempts by another lab, cell contents may be partially corrupted. We can often recover 90%+ but cannot guarantee a bit-perfect image.
  • ATxmega with active AES encryption and unknown key: The raw flash read will succeed, but the data is ciphertext. Without the encryption key or a viable side-channel path, the plaintext firmware cannot be recovered.
  • Newer AVR-DA/DB/DD series: Microchip’s latest tinyAVR and AVR Dx parts use an updated UPDI-based security architecture with a 128-bit user key. These are significantly harder to bypass; feasibility is assessed case-by-case.
  • Counterfeit or remarked parts: We occasionally encounter parts labeled as genuine Atmel AVR that contain a completely different die. If the silicon doesn’t match the expected AVR architecture, standard recipes don’t apply.

AVR IC Unlock vs. Other MCU Families

Engineers often ask how AVR compares in difficulty to other popular microcontroller families. The short answer: classic 8-bit AVR parts are among the more straightforward targets due to their mature process node and well-documented lock-bit architecture.

For comparison, MSP430 firmware extraction involves different JTAG fuse mechanisms, while Cypress PSoC unlock requires navigating proprietary flash-protection schemes that vary significantly between PSoC 4 and PSoC 6. If your product uses multiple MCU vendors, we handle cross-family projects regularly — see our coverage for Holtek MCU recovery and GigaDevice flash readout as well.

Authorization and Legal Requirements

AVR IC unlock is performed exclusively for authorized purposes: recovering your own firmware from a product you designed, maintaining legacy equipment you own, or supporting a contract manufacturer who holds documented rights. We require one of the following before starting work:

  • Proof of original design ownership (schematics, purchase orders, development history)
  • Written authorization from the IP holder
  • End-of-life maintenance documentation for legacy systems

We sign a mutual NDA on every project. Extracted firmware is never shared, resold, or retained beyond the project scope. For a deeper look at how we handle IP protection and client confidentiality, Freescale/NXP MCU unlock authorization details follow the same framework we apply to all families.

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

Frequently Asked Questions About AVR IC Unlock

Can you read an ATmega328P with lock bits set to Mode 3?

Yes. The ATmega328P is one of our most commonly requested AVR targets. Mode 3 lock bits disable ISP and JTAG read access, but die-level microprobing or glitch-based techniques bypass this protection reliably. Typical turnaround is 5–8 working days, and our success rate on this specific part exceeds 95 % across hundreds of completed jobs.

Will the chip be destroyed during AVR IC unlock?

It depends on the method. Microprobing requires decapsulation, which exposes the die and renders the original package non-functional for normal PCB mounting. However, the silicon itself remains intact, and the extracted firmware can be programmed into a fresh, identical AVR device. Glitch-based methods are non-destructive — the original chip survives and can be re-used.

How much does AVR firmware recovery cost?

Pricing varies by family and protection level. Classic ATtiny and ATmega parts with standard lock bits typically start around $300–$600 USD. ATxmega devices or parts requiring extended analysis (AES encryption, newer security architectures) range from $800–$2,000+. We provide a firm quote after a free feasibility assessment — submit your part number and we’ll respond within one business day.

Can you recover EEPROM data along with flash?

Yes. On most AVR devices, EEPROM occupies a separate memory space that is also protected by the same lock bits. Our extraction process captures both flash and EEPROM contents. The EEPROM dump is delivered as a separate .eep file alongside the flash .hex and .bin files.

Do you support the newer AVR-DA and AVR-DD series?

Feasibility is assessed on a case-by-case basis. These parts use Microchip’s UPDI-based security with a 128-bit user-row key, which is a significant step up from classic lock bits. We have successfully recovered firmware from some early AVR-DA revisions, but we cannot guarantee results across all silicon revisions. Submit a feasibility inquiry with your exact part number and revision for an honest assessment.

Related IC Unlock Services

Beyond AVR, our lab supports firmware recovery across dozens of MCU and FPGA families. If your design includes companion ICs alongside the AVR, we likely cover them too:

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

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