Bao'An Shenzhen China

AT91SAM Unlock | Feasibility, Cost & Lead Time

Oct 19, 2026  /  PCB COPY

at91sam unlock: AT91SAM7S256 microcontroller on a PCB with JTAG header for firmware access

AT91SAM Unlock: Authorized Firmware Recovery for Atmel ARM MCUs

AT91SAM unlock is the process of reading protected flash memory from Microchip (formerly Atmel) AT91SAM-series ARM7TDMI and ARM9-based microcontrollers. These MCUs are widely deployed in industrial controllers, medical instruments, telecom equipment, and legacy embedded systems where the original source code or development environment has been lost. Our engineers recover firmware from locked AT91SAM devices under NDA for clients who own the IP or need to maintain hardware they designed — with success rates that vary significantly by sub-series and silicon revision.

What Protection Does the AT91SAM Family Use?

at91sam unlock: AT91SAM7S256 microcontroller on a PCB with JTAG header for firmware access

The AT91SAM family spans several architectures and protection schemes. Understanding the specific mechanism on your part number is the first step in any AT91SAM unlock assessment.

Security Bit (GP NVM Bit)

Most AT91SAM7 and AT91SAM3 devices use a single “Security Bit” stored in a General Purpose NVM register. When set, this bit disables external access to internal flash through JTAG and SAM-BA (the built-in serial boot loader). The bit can only be cleared by a full chip erase, which also destroys the flash contents — that is the intended protection model.

Flash GPNVM Lock Regions

In addition to the global security bit, AT91SAM parts divide flash into lock regions (typically 16–32 regions depending on total flash size). Each region has an independent lock bit. These lock bits prevent accidental write/erase but do not block read access when the security bit is unset. They are a secondary concern during unlock.

SAM-BA Boot Mode Restrictions

Some AT91SAM9 parts with external SDRAM/DDR interfaces boot from NAND, DataFlash, or SD card rather than internal flash. On these devices, the “unlock” challenge shifts from defeating on-chip protection to correctly dumping external NOR/NAND flash or eMMC through JTAG boundary scan or direct chip-off reading.

Sub-Family Core Primary Protection Typical Flash Unlock Feasibility
AT91SAM7S / 7X / 7SE ARM7TDMI Security Bit (GPNVM #0) 32–512 KB internal High — well-documented attack vectors
AT91SAM7L ARM7TDMI Security Bit + low-power flash 64–256 KB Moderate — additional analog challenges
AT91SAM3S / 3N / 3U / 3A Cortex-M3 / M4 Security Bit (GPNVM #0) 64–512 KB Moderate to High
AT91SAM4S / 4E / 4N / 4C Cortex-M4 Enhanced Security Bit 128 KB–2 MB Moderate — newer revisions harder
AT91SAM9 (9260, 9G, 9X, 9N, 9RL) ARM926EJ-S External flash; optional secure boot External NAND/NOR High for external flash; low if secure boot fuse blown
ATSAM A5 / SAMA5D Cortex-A5 Secure boot + OTP fuses External DDR + NAND/eMMC Low — OTP-based key storage

How Does AT91SAM Unlock Work in Practice?

Our approach depends on which sub-family your device belongs to. The general workflow follows these stages:

  1. Device identification — We confirm the exact part number, silicon revision (mask set), and package. A SAM7S256 Rev B behaves differently from Rev D under fault injection.
  2. Protection assessment — Using JTAG/SWD probing and SAM-BA response analysis, we determine whether the security bit is set and whether the device responds to any debug commands.
  3. Attack selection — For AT91SAM7 parts, voltage glitching on VDDCORE during the flash-controller security-check window is the primary technique. For SAM3/SAM4, we may combine glitching with precise clock manipulation. For SAM9 devices with external flash, chip-off or in-circuit NAND reading is used.
  4. Firmware extraction — Flash contents are dumped as a raw binary image. We verify the dump against a second independent read to confirm data integrity (bit-for-bit match).
  5. Delivery — You receive the verified binary, a memory map, and, if requested, a disassembly listing in standard formats (Intel HEX, Motorola S-Record, or raw .bin).

Voltage Glitch Details for AT91SAM7

The AT91SAM7 security-bit check occurs during the boot sequence when the embedded flash controller (EFC) evaluates GPNVM bit 0. A precisely timed voltage dip on VDDCORE — typically 0.3–0.8 V below nominal for 5–50 ns — can cause the security-check logic to pass without clearing flash. This requires sub-nanosecond timing resolution and multiple iterations. Our setup uses FPGA-driven glitch injection with automated sweep across timing and amplitude parameters. Success on AT91SAM7S/7X parts is typically achieved within 2–8 hours of lab time.

What About Newer SAM4 and SAMA5 Parts?

AT91SAM4 devices (Cortex-M4) introduced tighter voltage monitoring and brownout detection, making simple glitching less reliable. These parts require more sophisticated electromagnetic fault injection (EMFI) or laser-based techniques, which increase cost and reduce certainty. SAMA5D parts with OTP-fused secure boot keys are generally not unlockable without decapping and invasive probing — a process we assess case by case and only undertake when the economics justify it.

Cost and Lead Time for AT91SAM Unlock

Pricing varies by sub-family, protection level, and silicon revision. The table below gives realistic ranges based on our project history.

Sub-Family Typical Cost (USD) Lead Time (Working Days) Notes
AT91SAM7S / 7X / 7SE $400 – $800 5 – 8 Most common request; high success rate
AT91SAM7L $600 – $1,000 7 – 12 Low-power flash adds complexity
AT91SAM3S / 3N / 3U $600 – $1,200 7 – 12 Revision-dependent; some need EMFI
AT91SAM4S / 4E $900 – $1,800 10 – 15 Brownout detection complicates glitching
AT91SAM9 (external flash) $300 – $600 3 – 7 Chip-off or in-circuit NAND/NOR read
SAMA5D (secure boot) $2,000 – $5,000+ 15 – 30+ Feasibility assessment required first

We charge a flat project fee — no hourly billing. If we cannot extract the firmware, you pay only a nominal assessment fee (typically $50–$100). This no-success-no-full-fee model protects your budget on uncertain parts.

Who Needs AT91SAM Unlock?

Typical clients requesting AT91SAM unlock include:

  • Original equipment manufacturers whose development contractor delivered hardware but not source code, and the contractor is no longer reachable.
  • Maintenance and repair operations supporting legacy AT91SAM7-based industrial PLCs, motor drives, or medical devices where replacement MCUs must be programmed with the original firmware.
  • Hardware engineers migrating a product from a discontinued AT91SAM part to a pin-compatible SAM3 or SAM4, needing the original binary as a reference for porting.

Authorization is required for every project. We verify ownership or a documented right to the firmware before starting work, and all projects are covered by NDA. For details on our authorization and legal framework, see our PIC18 unlock feasibility page for a comparable authorization process, or contact us directly.

AT91SAM vs. Other MCU Families: How Does It Compare?

FPGA glitch injection setup connected to an MCU evaluation board in a lab

Engineers sometimes ask how AT91SAM unlock difficulty compares to other popular microcontroller families. The short answer: AT91SAM7 parts sit in the moderate range — harder than basic 8051 devices with single-bit protection, but significantly easier than modern Cortex-M4/M7 parts with TrustZone.

If you are working with mixed-MCU boards, we handle multiple families in parallel. For Texas Instruments designs, our MSP430 unlock service and C2000 DSP unlock service follow similar assessment workflows. Silicon Labs users may find our EFM32 unlock page relevant for Cortex-M-based comparison.

What Can Go Wrong?

Transparency matters. Here are realistic failure modes and limitations our engineers encounter during AT91SAM unlock:

  • Silicon revision mismatch — Atmel shipped multiple mask revisions of popular parts (e.g., SAM7S256 has at least 4 revisions). Glitch parameters that work on Rev B may fail on Rev D. We always request 2–3 sample devices when possible.
  • Flash degradation — Parts that have been in service for 10+ years at elevated temperatures may have marginal flash cells. Even a successful unlock can yield a binary with bit errors. We mitigate this by performing multiple reads and cross-checking.
  • Decapped or remarked parts — Counterfeit or remarked AT91SAM devices occasionally surface. If the die does not match the marked part number, the unlock procedure will not work, and we report the finding.
  • Secure boot on SAM9/SAMA5 — If the OTP fuses for RSA-authenticated boot are blown, the extracted external flash image is encrypted. Without the key (which is in OTP), the binary is not directly usable. We will tell you this upfront during assessment.

Frequently Asked Questions About AT91SAM Unlock

Is AT91SAM unlock destructive to the chip?

For AT91SAM7 and SAM3 parts using voltage glitch techniques, the process is non-destructive — the original device remains functional after firmware extraction. For SAMA5 parts requiring decapping, the chip is destroyed during the process. We always confirm the approach with you before proceeding.

Can you unlock an AT91SAM9G20 with encrypted NAND boot?

If the AT91SAM9G20 boots from external NAND without secure-boot fuses, yes — we read the NAND directly. If secure boot is enabled with AES encryption, the extracted NAND image will be ciphertext. We assess this during the feasibility phase and advise before any charges apply.

How many sample chips should I send?

We recommend sending 2–3 programmed devices. Glitch parameter tuning may stress a device, and having backups prevents delays. For AT91SAM9 external-flash projects, one board is usually sufficient.

Do you provide disassembly or just the raw binary?

Standard delivery is a verified raw binary (.bin) plus Intel HEX. We offer optional disassembly (ARM/Thumb instruction set) and memory-map annotation for an additional fee, typically $200–$400 depending on firmware size.

What proof of ownership do you require?

We require a signed declaration of ownership or authorization letter, plus supporting documentation such as purchase records, design files, or a business relationship that demonstrates your right to the firmware. All work is performed under mutual NDA.

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 IC Unlock Services

We support a wide range of microcontroller families beyond AT91SAM. If your project involves multiple device types, explore these related pages:

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