Atmel IC Unlock: Recovering Firmware From Locked Atmel Microcontrollers
Atmel IC unlock is the process of reading protected firmware from Atmel (now Microchip-branded) microcontrollers whose lock bits, security fuses, or code-protection registers have been set. Our engineers recover code from ATtiny, ATmega, AT89, AT90, and select SAM-series devices for authorized owners who need to restore lost source, maintain legacy hardware, or migrate to a current-production part. Success depends on the specific fuse configuration, silicon revision, and die-level protection—not every device is recoverable, and we always run a no-cost feasibility assessment before committing.
Why Atmel Chips Need Unlocking

Atmel’s product line spans three decades. Many designs shipped with lock bits set during production programming, and the original source code, hex file, or project workspace has since been lost. Common scenarios we handle:
- Legacy industrial controllers running ATmega128 or ATmega2560 where the OEM is defunct and no firmware archive exists.
- Automotive aftermarket modules built around AT90CAN128 that need a configuration change but the programmer locked the device.
- 8051-core products using AT89C51, AT89S52, or AT89C2051 with external EPROM windows or fully-bonded plastic packages.
- IoT prototypes on SAM D21 or SAM E70 where a contractor delivered only a locked binary and the engagement ended.
In every case, we require proof of ownership or written authorization before beginning work. This protects your IP and ours. Read more on our NXP IC firmware recovery page for a parallel example of how we verify authorization across vendor families.
Which Atmel Families Can We Read?
The table below summarizes our current Atmel IC unlock capability by family, protection type, and realistic success expectation. Silicon revisions matter—an ATmega328P from 2009 may respond differently than one fabbed in 2019.
| Family | Common Parts | Protection Type | Typical Success | Turnaround |
|---|---|---|---|---|
| ATtiny (tinyAVR) | ATtiny13A, ATtiny85, ATtiny2313 | Lock bits (LB1/LB2) | High for older revisions | 3–5 working days |
| ATmega (megaAVR) | ATmega8, ATmega128, ATmega328P, ATmega2560 | Lock bits + boot-lock bits (BLB) | High for LB mode 3; moderate for BLB01/BLB12 combos | 5–8 working days |
| AT90 (CAN/USB/PWM) | AT90CAN128, AT90USB1287 | Lock bits, same AVR scheme | High | 5–8 working days |
| AT89 (8051-core) | AT89C51, AT89S52, AT89C2051, AT89C55 | Lock bit 1/2/3 (LB1–LB3) | High for LB1/LB2; LB3 requires die-level work | 5–10 working days |
| SAM D (Cortex-M0+) | ATSAMD21G18, ATSAMD10 | NVM SECURITY bit + boot protection | Case-by-case; newer revisions harder | 8–15 working days |
| SAM E / SAM S / SAM V (Cortex-M4/M7) | ATSAME70, ATSAMS70 | GPNVM security bit + flash regions | Limited; depends on TrustZone-like config | Feasibility required |
| AVR XMEGA | ATxmega128A1, ATxmega256A3 | Lock bits + NVM controller | Moderate | 7–12 working days |
“High” means we recover readable firmware in over 85 % of submitted samples within that family. “Moderate” and “case-by-case” mean we need to evaluate the specific part and revision first. We never guarantee 100 % success—any provider who does is overpromising.
How Atmel Lock Bits and Security Fuses Work
Understanding the protection helps you evaluate feasibility before you ship a chip.
Classic AVR Lock Bits (ATtiny / ATmega / AT90)
AVR devices use two lock-bit pairs stored in a dedicated fuse byte. Mode 1 (LB unprogrammed) leaves the device fully readable via ISP or JTAG. Mode 2 disables further programming of flash and EEPROM. Mode 3 additionally blocks read-back through any external interface. Our techniques address Mode 3 through controlled voltage and timing manipulation on the programming interface—this is non-invasive on most pre-2016 silicon revisions and semi-invasive (die exposure with targeted UV or microprobing) on newer ones.
AT89 (8051) Lock Bits
The AT89C/S series uses three escalating lock levels. LB1 prevents MOVC instructions from fetching external code. LB2 blocks all external access. LB3 additionally prevents chip-erase verification tricks. For LB3-protected AT89C51 or AT89S52 parts, we use die-level optical inspection combined with micro-probing—this adds cost and time but remains viable on the 0.5 µm and 0.35 µm process nodes Atmel used for these 8051 cores.
SAM-Series Security Bit (ARM Cortex)
SAM D/E/S/V devices set a one-time SECURITY or GPNVM bit that locks SWD/JTAG debug access and blocks flash readout. Chip erase clears the bit but also wipes the flash. Recovering firmware without triggering erase requires fault-injection or decapping approaches that depend heavily on the specific die revision. We evaluate each SAM device individually—success rates are lower than classic AVR, and turnaround runs 8–15+ working days. If your target is a SAM E70 or SAM S70 with TrustZone-like partitioning, contact us for a free feasibility review before shipping.
Our Atmel IC Unlock Process
- Intake & authorization check. You provide the part number, package type (DIP, TQFP, QFN, BGA), quantity, and proof of ownership. We sign an NDA if requested.
- Feasibility assessment (free). Our lab identifies the silicon revision, reads accessible fuse states, and determines the lock level. We report expected success probability and cost before proceeding.
- Firmware extraction. Depending on the family and protection level, we use non-invasive ISP/JTAG-based techniques, semi-invasive UV exposure, or full die-level micro-probing.
- Verification. Extracted hex/bin is loaded onto a blank device of the same part number and functionally tested where possible. We compare CRC values and memory maps.
- Delivery. You receive the firmware as an Intel HEX or raw BIN file, plus fuse-byte settings so you can reproduce the exact programmed state on new parts.
Turnaround for standard ATtiny and ATmega parts is 3–8 working days from receipt of the chip. AT89 LB3 and SAM-series jobs take longer due to die-level work. Rush service (48-hour) is available for ATtiny/ATmega at an additional fee.
What Can Go Wrong — Realistic Constraints

Transparency matters more than a sales pitch. Here are the failure modes we see:
- Die damage during decapping. Acid exposure or laser decap can destroy bond wires on QFN packages with exposed die pads. We mitigate this with mechanical decap where geometry allows, but small-die ATtiny parts (SOT-23-6) carry higher risk.
- Newer silicon revisions with patched glitch vectors. Microchip (post-acquisition) has hardened some ATmega and SAM devices against voltage-glitch attacks. A 2022-fab ATmega328PB may resist techniques that work on a 2014-fab ATmega328P.
- Encrypted bootloaders on SAM devices. If a SAM E70 uses Secure Boot with AES-encrypted firmware, reading raw flash yields ciphertext. We can extract the data but cannot decrypt it without the key—this is a hard cryptographic limit, not a tooling gap.
- Partial reads. Occasionally we recover 95 %+ of the flash but lose a page boundary. We report this clearly and deliver what we have, with a map of unreadable regions.
Atmel vs. Other Vendor Families
If your board uses multiple MCU brands, we handle them under a single project. Atmel’s classic AVR lock-bit scheme is among the most well-understood in the industry, making ATtiny and ATmega parts some of the highest-success-rate chips we process. Compare this with Freescale/NXP Kinetis and ColdFire families, which use more aggressive flash-security mechanisms, or Infineon TriCore and XMC devices where hardware security modules add another layer.
For legacy 8051-architecture parts beyond the AT89 family, we also cover SST flash-based microcontrollers and Fujitsu MB series MCUs that share similar protection philosophies.
Pricing Signals
We do not publish fixed prices because cost depends on lock level, package, and die revision. Rough guidance:
- ATtiny / ATmega (lock-bit mode 3, non-invasive): starting from $150–$350 per device.
- AT89 LB1/LB2: starting from $200–$400.
- AT89 LB3 (die-level): starting from $500–$900.
- SAM D-series (security bit): starting from $400–$800, feasibility-dependent.
- SAM E/S/V (GPNVM + advanced protection): quoted after feasibility assessment.
Volume discounts apply for batches of 5+ identical parts. The free feasibility check locks in a firm quote before you commit.
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 reviewFrequently Asked Questions
Can you recover firmware from an ATmega328P with both lock bits set?
Yes, in most cases. The ATmega328P with LB mode 3 (both lock bits programmed) is one of our highest-success parts. Older silicon revisions (date codes before 2018) respond well to non-invasive techniques. Newer revisions may require semi-invasive methods, adding 2–3 days to turnaround. We confirm viability during the free feasibility check.
Is Atmel IC unlock legal?
Firmware recovery is legal when performed on devices you own or are authorized to access—for example, restoring your own production firmware, maintaining legacy equipment, or migrating designs you hold IP rights to. We require proof of ownership or a signed authorization letter before starting any job. We never assist with extracting third-party proprietary code without documented consent.
Do you need the chip removed from the PCB?
For ATtiny and ATmega in DIP or TQFP packages, we prefer desoldered chips for cleanest results. For BGA or QFN SAM-series parts, we can sometimes work with the chip on-board if ISP/SWD headers are accessible. Tell us your package type during intake and we will advise.
What file format will I receive?
Standard delivery is an Intel HEX file plus a fuse-byte report (low fuse, high fuse, extended fuse, lock bits). We can also supply raw BIN or Motorola S-Record on request. EEPROM contents are delivered as a separate file if present.
What if the chip is physically damaged?
Minor package damage (cracked plastic, bent pins) usually does not affect the die. If the die itself is cracked or corroded, recovery probability drops significantly. Ship the device to us and we will assess under microscope at no charge. We have recovered partial firmware from chips with visible die scratches when the flash array was intact.
Related IC Unlock Services
Working with a multi-vendor BOM? Explore our readout capabilities for Renesas RX and RL78 microcontrollers and Nuvoton M0/M4 series firmware extraction. Each family page details the specific protection mechanisms and expected success rates so you can plan your recovery project across every chip on the board.
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 reviewWorking 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