ATxmega Unlock — Authorized Firmware Recovery for the XMEGA Family
ATxmega unlock is the process of reading protected flash and EEPROM contents from Atmel (now Microchip) XMEGA-series microcontrollers whose security fuses have been set. Our engineers recover firmware from ATxmega devices for clients who own the IP but have lost source code, need to support legacy production, or must restore end-of-life equipment. Authorization and proof of ownership are required before any work begins — see our trust and legal compliance policy for details.
What Protection Does the ATxmega Use?

The XMEGA family implements a multi-level lock-bit scheme that is more granular than older AVR parts like the ATmega or ATtiny lines. Understanding these levels is critical because they directly determine unlock feasibility and method.
XMEGA Lock-Bit Architecture
Each XMEGA device has independent lock bits for the Boot Loader Section (BLS) and the Application Section (APP), plus a separate set for the Application Table Section. The lock bits support four modes:
| Lock Mode | Bit Pattern (LB[1:0]) | Effect |
|---|---|---|
| Mode 1 (No lock) | 11 | No memory lock; read/write via external programmer allowed |
| Mode 2 | 10 | Programming of Flash and EEPROM disabled from external |
| Mode 3 | 00 | Programming and verification (readback) disabled |
| Mode 4 | 01 | Reserved — behaves as Mode 3 on most silicon revisions |
Most locked ATxmega parts in the field are set to Mode 3, which blocks both PDI-based readout and ISP verification. Additionally, some newer XMEGA-E and XMEGA-C revisions add a JTAG-disable fuse that must be addressed separately.
How XMEGA Protection Differs from Classic AVR
Classic AVR (ATmega, ATtiny) uses a simpler two-bit lock scheme with less section granularity. The XMEGA PDI debug interface replaces the older debugWIRE/JTAG approach, which changes the attack surface. The XMEGA also stores calibration and production signature data in a separate NVM area that remains readable even when application flash is locked — useful for device identification but not for firmware extraction by itself.
Which ATxmega Parts Can Be Unlocked?
Feasibility varies by sub-family, silicon revision, and flash size. Below is a practical summary based on our lab experience. We update this as new silicon revisions ship.
| Sub-Family | Example Parts | Flash Range | Unlock Feasibility | Typical Lead Time |
|---|---|---|---|---|
| XMEGA-A1 / A1U | ATxmega128A1, ATxmega128A1U | 64 KB – 128 KB | High (most revisions) | 5–10 working days |
| XMEGA-A3 / A3U | ATxmega256A3, ATxmega256A3BU | 16 KB – 256 KB | High | 5–10 working days |
| XMEGA-A4 / A4U | ATxmega32A4U, ATxmega16A4U | 16 KB – 128 KB | High | 5–8 working days |
| XMEGA-B1 / B3 | ATxmega128B1, ATxmega64B3 | 64 KB – 128 KB | Moderate–High | 7–12 working days |
| XMEGA-C3 / C4 | ATxmega384C3, ATxmega32C4 | 32 KB – 384 KB | Moderate | 8–15 working days |
| XMEGA-D3 / D4 | ATxmega192D3, ATxmega32D4 | 16 KB – 384 KB | High | 5–10 working days |
| XMEGA-E5 | ATxmega32E5, ATxmega8E5 | 8 KB – 32 KB | Moderate (newer die) | 10–15 working days |
“High” feasibility means our lab has successfully recovered firmware from multiple samples with a consistent method. “Moderate” means the approach works on most but not all silicon revisions — a sample evaluation (1–3 days, no charge) confirms before commitment.
How Does the ATxmega Unlock Process Work?
Our workflow follows a structured path designed to protect both the device and the client’s data integrity.
- Authorization check — Client provides proof of IP ownership or a signed NDA/letter of authorization. No work proceeds without this.
- Device intake and identification — We read the production signature (device ID, lot number, wafer coordinates) via PDI to confirm the exact die revision.
- Feasibility evaluation — Based on the revision, we determine the applicable technique. If the part falls in the “Moderate” category, we may run a non-destructive probe test on one sample first.
- Firmware extraction — Flash, EEPROM, and fuse/lock-bit configuration are read. For parts ≤128 KB this typically completes in a single session; 256 KB+ parts may require extended processing.
- Verification and delivery — The extracted binary is verified against a CRC or checksum (when available from the client). Deliverables include a .hex or .bin file, a fuse-byte dump, and an extraction report.
What Can Go Wrong
Not every ATxmega unlock succeeds. Common failure modes include:
- Die revision mismatch — Microchip occasionally updates the XMEGA die without changing the marketing part number. A revision with additional metal shielding or modified NVM controller may resist the standard approach.
- Physical damage — Devices that have been exposed to moisture, ESD, or desoldering heat stress may have corrupted flash sectors. We can often recover partial firmware but cannot guarantee 100 % integrity.
- Counterfeit parts — Remarked devices with non-genuine XMEGA die will fail identification. We flag these during intake at no cost.
If a particular ATxmega part proves unrecoverable, you are not charged for the extraction attempt — only the evaluation fee applies.
ATxmega Unlock Cost and Pricing Factors
Pricing depends on sub-family, flash size, and required turnaround. The table below gives representative starting points:
| Factor | Standard | Expedited (rush) |
|---|---|---|
| XMEGA-A / D series, ≤128 KB | $400 – $700 | $600 – $1,000 |
| XMEGA-A / D series, 256–384 KB | $600 – $1,000 | $900 – $1,400 |
| XMEGA-B / C / E series | $500 – $900 | $750 – $1,300 |
| Sample evaluation (non-destructive) | Free (1–3 days) | — |
Volume discounts apply when recovering firmware from 5+ identical parts (e.g., production-line recovery). Final pricing is quoted after the free feasibility check.
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 reviewATxmega vs. Other Microcontroller Families — Unlock Comparison

Engineers sometimes ask how XMEGA protection compares to other families we work with. Here is a brief cross-reference:
- ATxmega vs. AT91SAM (ARM-based) — AT91SAM parts use SAM-BA boot ROM and GPNVM bits; the protection model is fundamentally different. See our AT91SAM unlock feasibility page for details.
- ATxmega vs. MSP430 — TI’s MSP430 uses a JTAG fuse (eFuse blow) that is a one-time-programmable protection. XMEGA lock bits are flash-based and behave differently during erase cycles. Compare with our MSP430 firmware recovery guide.
- ATxmega vs. 8051-architecture parts — Legacy 8051 devices typically have weaker protection but slower flash interfaces. Our 8051 unlock service covers STC, Atmel AT89, and similar derivatives.
- ATxmega vs. Silicon Labs EFM8 — EFM8 parts use a read-lock byte similar in concept but implemented on a different NVM controller. Details on the EFM8 unlock page.
Common Use Cases for ATxmega Firmware Recovery
Legacy Equipment Maintenance
Many industrial controllers, building-automation nodes, and scientific instruments shipped between 2010 and 2018 used XMEGA parts for their combination of low power, high peripheral count, and DMA-driven event system. When the original firmware developer is no longer available and the source code was never escrowed, ATxmega unlock is often the only path to continued production or field repair.
Product Redesign and Migration
Microchip has signaled long-term support for XMEGA but many engineers are migrating to SAMD/SAME (ARM Cortex-M) or AVR-Dx replacements. Recovering the original XMEGA binary allows disassembly and analysis to accelerate porting, rather than reverse-engineering behavior from scratch.
Quality and Failure Analysis
When a field-returned board exhibits firmware-related faults, reading the flash contents of the suspect ATxmega can confirm whether corruption occurred, whether a bootloader overwrote application code, or whether the correct firmware version was programmed at the factory.
Deliverables and File Formats
| Deliverable | Format | Notes |
|---|---|---|
| Application flash dump | .hex (Intel HEX) or .bin | Full address range including unused 0xFF regions |
| EEPROM contents | .eep or .bin | Separate file; size matches device datasheet |
| Fuse and lock-bit dump | .txt or structured report | Includes FUSE0–FUSE5, LOCKBITS register values |
| Extraction report | Device ID, method summary, CRC comparison (if reference provided) |
All files are delivered via encrypted channel. We retain no copies after 30 days unless the client requests archival.
Frequently Asked Questions
Is ATxmega unlock destructive to the chip?
In most cases, no. Our primary methods for the XMEGA-A and XMEGA-D families are non-destructive — the device remains functional afterward and can be re-programmed. Some XMEGA-C and XMEGA-E revisions may require a technique that erases the lock bits during extraction; the flash contents are captured before any erase occurs, so the firmware is preserved even if the chip’s lock state changes.
How many sample chips should I send?
We recommend sending at least two identical programmed ATxmega devices. One serves as the primary extraction target; the second allows cross-verification and acts as a backup if the first has physical damage. For the free feasibility evaluation, a single unit is sufficient.
Can you unlock an ATxmega that is still soldered to a PCB?
Yes, provided the PDI pins (PDI_DATA and PDI_CLK) are accessible and not blocked by surrounding components. We can work with the chip on-board or desolder it — desoldering is included in the service fee. If the board is sensitive, let us know and we will use low-stress hot-air profiling to avoid thermal damage to adjacent parts.
Do you also recover the bootloader section?
Yes. The XMEGA’s Boot Loader Section (BLS) is extracted alongside the Application Section. Both are delivered as separate address ranges within the .hex file, clearly labeled so you can reprogram them independently if needed.
What proof of ownership do you require?
Acceptable documentation includes a purchase order for the original product, a design-rights assignment, a company letterhead statement of ownership, or an NDA covering the recovery scope. We review each case individually — our authorization policy explains the process in full.
Related IC Unlock Services
If your project involves multiple microcontroller families, we support a wide range beyond the XMEGA line:
- EFM32 (ARM Cortex-M) firmware recovery — Silicon Labs’ 32-bit line with AES-encrypted flash on some variants.
- AT91SAM unlock for Atmel ARM9/ARM7 parts — Covers SAM7, SAM9, and SAMA5 sub-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 reviewWhat do you need to recover?
Send the full marking or board photos, sample condition and required outcome. Ask for an NDA before sharing confidential files. Scope and sample handling are confirmed individually.
The article title is carried into the contact form. Add your own details and review the enquiry before sending.