Bao'An Shenzhen China

ATSAMD51 Unlock | Feasibility, Cost & Lead Time

Oct 8, 2026  /  PCB COPY

atsamd51 unlock: Microchip ATSAMD51 microcontroller on a PCB with SWD debug header

ATSAMD51 Unlock: What You Need to Know

The ATSAMD51 can be unlocked in most configurations when the security fuse (BOOTPROT + chip-erase lock) has not been combined with a full secure-boot chain. Microchip’s SAM D51 series uses a single-level NVM security bit that disables external debug access via SWD, but the underlying flash protection relies on the NVMCTRL peripheral rather than hardware-encrypted storage. Our engineers have successfully recovered firmware from ATSAMD51J19, ATSAMD51J20, ATSAMD51G19, and ATSAMD51P20 variants, with typical turnaround of 5–12 working days and costs starting at approximately $400 depending on package and protection configuration.

How Does the ATSAMD51 Protect Its Firmware?

atsamd51 unlock: Microchip ATSAMD51 microcontroller on a PCB with SWD debug header

Microchip’s ATSAMD51 is a 120 MHz Cortex-M4F microcontroller with up to 1 MB of flash and 256 KB of SRAM. It sits in the SAM D5x/E5x family and is widely used in industrial controllers, IoT gateways, motor drives, and maker-grade hardware (Adafruit Metro M4, SparkFun Thing Plus). Understanding its protection model is the first step in any legitimate firmware recovery effort.

Security Bit (SECBIT)

When set via the NVM User Row, the security bit disables the SWD/JTAG debug port. Any external read of flash, SRAM, or peripheral registers through the DAP is blocked. The bit survives power cycles and can only be cleared by issuing a full chip erase — which also wipes the flash contents. This is the most common protection our lab encounters on ATSAMD51 boards.

BOOTPROT Region

The BOOTPROT fuse defines a write-protected boot region at the start of flash (configurable from 0 KB up to 496 KB in 8 KB increments on 1 MB parts). Code running inside BOOTPROT can read the entire flash, but external tools and application code outside the region cannot modify or erase the protected area. When BOOTPROT is used alongside the security bit, a chip-erase command will still clear application flash but preserve the bootloader region — an important nuance for recovery.

TrustZone (SAML11/SAMD51 Differences)

Unlike the SAML11 family, the ATSAMD51 does not implement ARM TrustZone-M. This is a significant technical distinction: there is no hardware-isolated secure world, no Secure Attribution Unit (SAU), and no independent secure boot ROM. The absence of TrustZone makes the ATSAMD51 materially more accessible to non-invasive and semi-invasive recovery techniques compared to newer Microchip parts.

Protection Feature ATSAMD51 SAML11 (comparison)
Debug Lock (SECBIT) Yes — NVM User Row Yes — UROW
BOOTPROT Region Up to 496 KB Up to 24 KB
TrustZone-M No Yes
Secure Boot ROM No Yes
Chip Erase Lock Optional (CE fuse) Optional
Flash Size 512 KB – 1 MB 64 KB
Typical Recovery Difficulty Moderate High

Is ATSAMD51 Unlock Feasible for Your Part?

Feasibility depends on three factors: which specific ATSAMD51 variant you have, which protection fuses are set, and whether the chip-erase lock (CE) fuse has been blown. Here is how we assess each scenario in our lab.

Scenario 1: SECBIT Set, CE Not Locked

This is the most common configuration. The debug port is locked, but a chip erase is still possible. Recovery relies on exploiting the interaction between the DAP, the NVMCTRL, and the boot sequence before the erase completes. Success rate in our experience is high — roughly 85–90% for ATSAMD51J19/J20 parts in TQFP-64 and TQFP-128 packages.

Scenario 2: SECBIT + CE Lock Both Set

When the chip-erase disable fuse is also blown, the standard non-invasive path is blocked. Recovery requires semi-invasive techniques: decapsulation, micro-probing, or fault injection via voltage glitching on the VDDCORE rail. This raises both cost and turnaround. Success is part-revision dependent — early silicon revisions (die revision A and B) respond better to glitch attacks than revision D parts.

Scenario 3: BOOTPROT + SECBIT, Application Flash Only Needed

If you only need the application firmware (not the bootloader), and BOOTPROT is configured, the recovery path can sometimes leverage the bootloader’s own communication interface (UART/USB DFU) if it was designed to allow readback. We analyze the bootloader protocol first; if it includes a read command (even an undocumented one), extraction is straightforward and non-destructive.

We always run a free feasibility assessment before quoting. Send us the exact part number (e.g., ATSAMD51J20A-AU), the board or product context, and any known protection details.

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

ATSAMD51 Unlock Process: Step by Step

  1. Intake & Authorization: You provide proof of ownership or a signed authorization letter. We verify legitimacy and execute an NDA. This step is mandatory — similar to our nRF53 unlock workflow, we do not proceed without documented authorization.
  2. Initial Assessment: We read the Device Service Unit (DSU) Device ID register over SWD to confirm the exact variant, die revision, and fuse state without triggering any erase. This takes 1–2 working days.
  3. Technique Selection: Based on fuse configuration, we select non-invasive (debug protocol exploitation), semi-invasive (voltage glitching at 1.62 V–3.63 V VDDCORE range), or invasive (decap + micro-probing) methods.
  4. Extraction: Flash contents are read out sector-by-sector (512-byte pages on ATSAMD51). We verify integrity with a CRC-32 check against the NVM controller’s own checksum registers.
  5. Delivery: You receive a binary image (.bin or Intel HEX), plus a fuse configuration dump (NVM User Row, calibration data, serial number). Optional disassembly report available.

Cost and Lead Time

Decapsulated MCU under probe station microscope during firmware recovery

Pricing depends on the protection level and package type. Below are typical ranges based on recent projects — actual quotes may vary after feasibility assessment.

Configuration Package Estimated Cost (USD) Lead Time (Working Days)
SECBIT only TQFP-64 / TQFP-128 $400 – $700 5 – 8
SECBIT only BGA (WLCSP/TFBGA) $500 – $900 6 – 10
SECBIT + CE lock Any $800 – $1,500 8 – 15
SECBIT + BOOTPROT (app flash only) Any $350 – $600 4 – 7
Full invasive (decap) Any $1,200 – $2,500+ 12 – 20

We charge nothing if recovery fails. A second sample chip may be required for semi-invasive or invasive methods — we will specify this in the quote.

What Can Go Wrong

Transparency matters. Here are the real failure modes our engineers encounter:

  • Die revision mismatch: Microchip has shipped at least four die revisions of the ATSAMD51. Glitch parameters that work on revision B may not transfer to revision D. We calibrate per-sample, but newer revisions have tighter glitch windows.
  • Damaged SWD pads: If previous unlock attempts have overheated or lifted the SWDCLK/SWDIO pads, we may need to micro-solder directly to the die — adding cost and risk.
  • Encrypted application layer: The ATSAMD51 hardware does not encrypt flash, but some developers implement AES-128 or AES-256 firmware encryption in their bootloader. In this case, we can extract the raw binary, but the application payload will be encrypted. We can assist with key recovery if the key is stored on-chip.
  • Bonding wire damage during decap: For BGA packages requiring invasive access, chemical decapsulation carries a small risk (roughly 3–5%) of bond wire corrosion, especially on WLCSP parts.

Legitimate Use Cases for ATSAMD51 Firmware Recovery

We perform ATSAMD51 unlock exclusively for authorized purposes:

  • Legacy product maintenance: Original developer unavailable; you own the product and need to patch or port firmware to a new PCB revision.
  • Prototype recovery: Source code lost due to repository failure, developer departure, or storage corruption — you hold IP rights.
  • Failure analysis: Extracting firmware to compare against known-good images for root-cause investigation.
  • Supply chain verification: Confirming that contract-manufactured boards contain the correct firmware version.

Authorization documentation is required before work begins. For details on our compliance framework, review our trust and legal policies.

ATSAMD51 vs. Other ARM Cortex-M Unlocks

If your project involves a different microcontroller family, the protection architecture — and therefore the recovery approach — can differ substantially. For example, GD32F4 series chips use a read-out protection (RDP) model similar to STM32, while TI TM4C parts implement JTAG lock with a 128-bit password. The ATSAMD51’s single-bit security model is simpler than most, which generally works in the customer’s favor for cost and turnaround.

For projects involving TI’s ultra-low-power FRAM controllers, our MSP430FR unlock service covers the unique challenges of ferroelectric memory readout. And if you are working with WCH’s RISC-V ecosystem, see our CH32F unlock page for comparable feasibility details.

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
Can the ATSAMD51 be unlocked without erasing the flash?

In most cases, yes. When only the SECBIT is set (without the chip-erase lock), our non-invasive techniques extract flash contents without triggering an erase. If the CE fuse is also set, semi-invasive methods like voltage glitching can still achieve non-destructive readout, though success depends on the die revision. We always attempt non-destructive extraction first.

Do I need to desolder the ATSAMD51 from the PCB?

Not for non-invasive recovery. We access the chip through the SWD header or test points on your board. For semi-invasive or invasive techniques (glitching, decap), we typically need the chip removed — or a spare sample. We can handle desoldering TQFP and BGA packages in-house if needed.

Is ATSAMD51 firmware recovery legal?

Firmware recovery is legal when performed on chips you own or are authorized to access. Common legal bases include IP ownership, maintenance rights, and failure analysis under contract. We require proof of authorization and work under NDA. We do not assist with extracting third-party proprietary firmware for cloning or piracy purposes.

What file formats will I receive after the ATSAMD51 unlock?

Standard deliverables include a raw binary (.bin) and Intel HEX (.hex) file of the full flash contents, plus a separate dump of the NVM User Row (fuse configuration, calibration values, and unique serial number). Optional: annotated disassembly report (.asm/.txt) and a re-flash script for Atmel-ICE or J-Link programmers.

How does ATSAMD51 protection compare to STM32 RDP Level 2?

STM32 RDP Level 2 is a permanent, irreversible lock — far harder to defeat than the ATSAMD51 security bit. The ATSAMD51’s SECBIT is clearable (via chip erase), and the chip lacks TrustZone or a secure boot ROM. This makes ATSAMD51 recovery significantly more feasible and less costly than STM32 RDP-2 recovery, which often requires full invasive decapsulation.

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