STM32L1 Unlock: Authorized Firmware Recovery for Ultra-Low-Power STM32 Devices
STM32L1 unlock is the process of recovering firmware from STMicroelectronics’ STM32L1xx ultra-low-power microcontroller family when the read-out protection (RDP) mechanism has locked access to internal flash. Our engineers routinely handle STM32L1 devices across all sub-families—STM32L100, STM32L151, STM32L152, and STM32L162—with success rates that depend primarily on the RDP level configured and the specific die revision. Authorized recovery typically takes 5–15 working days and starts at $400 for RDP Level 1 devices.
What Protection Does the STM32L1 Use?

The STM32L1 series is built on an ARM Cortex-M3 core and uses STMicroelectronics’ standard Read-out Protection scheme, which operates at three distinct levels. Understanding which level is active on your device is the single most important factor in determining whether STM32L1 unlock is feasible for your project.
| RDP Level | Protection Behavior | Unlock Feasibility | Data Preserved? |
|---|---|---|---|
| Level 0 | No protection — flash freely readable via SWD/JTAG | No unlock needed | Yes |
| Level 1 | Flash read-out blocked via debug interface; SRAM access restricted during debug | High — recoverable in most cases | Yes, firmware extracted intact |
| Level 2 | Permanent — JTAG/SWD fuse blown, debug port disabled at silicon level | Very limited — requires invasive die-level techniques | Depends on approach |
Most STM32L1 devices we receive are configured at RDP Level 1. At this level, the debug interface is disabled for flash reads but the protection is enforced by option bytes rather than a permanent fuse. Our lab has documented techniques for recovering firmware from Level 1 devices across all major die revisions (Rev Y, Rev W, Rev V, Rev X) of the STM32L1 family.
RDP Level 2 is a different situation entirely. STMicroelectronics designed it as a permanent, irreversible lock. Recovery from Level 2 requires invasive physical techniques—decapsulation, FIB (focused ion beam) editing, or micro-probing—which are expensive, time-consuming, and carry meaningful risk of destroying the die. We evaluate Level 2 cases individually and provide honest feasibility assessments before any commitment.
STM32L1 Sub-Family Differences That Affect Unlock
Not all STM32L1 parts are identical under the hood. Flash density, die revision, and the presence of hardware AES encryption on STM32L162 devices all influence the recovery approach.
STM32L100 / STM32L151 / STM32L152
These three sub-families share the same basic flash controller and RDP implementation. Flash sizes range from 32 KB (Cat.1) to 512 KB (Cat.5/Cat.6). Larger flash variants sometimes use different internal bank architectures, which can affect extraction time but not feasibility. Our engineers handle 32 KB through 512 KB devices routinely with no difference in success rate at RDP Level 1.
STM32L162 (Hardware AES)
The STM32L162 adds a hardware AES-128 cryptographic accelerator. This does not add an additional layer of flash protection beyond RDP—the AES engine protects data in transit or at rest in user-managed storage, not the flash read-out mechanism itself. However, if the original firmware encrypted application data using the AES peripheral and stored the key in a protected option-byte area, recovering the raw binary does not automatically mean the encrypted payload is usable without the key. We document this clearly in our deliverables.
How Does the STM32L1 Unlock Process Work?
Every STM32L1 unlock engagement at our lab follows a structured workflow designed to protect both the device and your intellectual property.
- Authorization verification — You provide proof of ownership or a signed authorization letter. We require this before any work begins. Details on our approach to IP protection and authorization for STM32 family unlocks apply equally to the L1 series.
- Device intake and RDP level identification — We connect to the SWD port (or JTAG where available) and read the option bytes to confirm the active RDP level and device ID. This takes under 30 minutes.
- Feasibility report — Within 1–2 working days, you receive a written assessment: confirmed part number, RDP level, die revision, estimated success probability, cost, and timeline.
- Firmware extraction — For Level 1 devices, our engineers apply the appropriate technique for the specific die revision. The full flash contents are read out and verified with CRC checks against the internal flash controller’s own integrity mechanisms.
- Deliverable packaging — You receive the firmware as a raw binary (.bin), Intel HEX (.hex), or both, along with a read-out log, option byte dump, and any relevant notes about encrypted data segments or calibration areas.
For RDP Level 2 cases that pass our feasibility screen, steps 4 and 5 expand to include physical decapsulation, optical die inspection, and micro-probing or FIB work. These cases carry a separate cost structure and a longer timeline of 20–40 working days.
Cost and Lead Time for STM32L1 Unlock
Pricing depends on the RDP level, flash density, and whether the device is a common or rare package variant. The table below gives realistic ranges based on our recent project history.
| Scenario | Typical Cost (USD) | Lead Time (Working Days) | Notes |
|---|---|---|---|
| RDP Level 1, ≤128 KB flash | $400–$700 | 5–10 | Most common engagement |
| RDP Level 1, 256–512 KB flash | $500–$900 | 7–12 | Larger flash extends extraction time |
| RDP Level 2, any density | $2,500–$6,000+ | 20–40 | Invasive; feasibility assessed first; risk of device loss |
| Batch (5+ identical devices, Level 1) | 30–50% discount per unit | 7–15 total | First unit is full price; repeats are faster |
We do not charge for the initial feasibility assessment. If we determine that recovery is not viable or carries unacceptable risk, you pay nothing.
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 Can Go Wrong?

Transparency matters. Here are the real failure modes our engineers encounter with STM32L1 unlock projects:
- Misidentified RDP level — Some third-party programmers report RDP Level 1 when the device is actually at Level 2. We verify independently before quoting.
- Die revision mismatch — Early STM32L151 Rev Y silicon behaves differently from later Rev W or Rev X dies under certain extraction conditions. A technique proven on one revision may not transfer directly.
- Damaged SWD pins — If previous unlock attempts by another lab damaged the SWD/JTAG pads or the debug port’s ESD structures, non-invasive recovery may no longer be possible even at Level 1.
- Corrupted flash — Power loss during a previous partial erase, or long-term storage beyond the flash data retention spec (typically 20 years at 85°C), can leave flash contents unrecoverable regardless of protection state.
- Level 2 device destruction — Decapsulation and micro-probing are inherently destructive. Roughly 15–25% of Level 2 invasive attempts result in die damage that prevents complete recovery. We communicate this risk upfront.
STM32L1 vs. Other MCU Families: How Does It Compare?
Engineers often ask how the STM32L1 compares to other microcontrollers in terms of unlock difficulty. The STM32L1’s RDP Level 1 is moderately straightforward compared to some alternatives, while Level 2 places it among the more challenging targets.
For comparison, Microchip’s PIC24H code protection uses a different fuse-based mechanism that responds to different techniques. Similarly, TI’s MSP430FR FRAM-based devices present unique challenges because the non-volatile memory technology differs fundamentally from flash. Atmel/Microchip’s ATSAM3 Cortex-M3 parts share the ARM core architecture with the STM32L1 but use a completely different security fuse and GPNVM bit scheme.
The STM32L1 sits in a middle ground: Level 1 is well-understood and highly recoverable, while Level 2 requires specialized physical lab capabilities that relatively few facilities maintain.
Who Needs STM32L1 Unlock?
Legitimate use cases we handle regularly include:
- Legacy product maintenance — The original developer is unavailable, and you need to update or patch firmware on hardware you own and manufacture.
- Disaster recovery — Source code was lost due to server failure, employee departure, or poor version control, and the only copy of the firmware exists on a production device.
- Prototype recovery — A prototype board contains the only working firmware build, and you need to extract it before scaling to production.
- Failure analysis — Reading out firmware to compare against a known-good build during root-cause investigation of field failures.
All engagements require proof of ownership or written authorization. We maintain strict NDA procedures and can work under your NDA or ours. For more detail on how we handle sensitive recovery projects, review our approach alongside related services like AT90 AVR firmware recovery where similar authorization protocols apply.
Deliverable Formats
| Deliverable | Format | Description |
|---|---|---|
| Firmware image | .bin / .hex | Complete flash contents, verified by CRC |
| Option bytes | .txt / .hex | Full option byte dump including RDP, BOR, WDG config |
| Read-out log | Extraction conditions, die revision, verification checksums | |
| OTP area (if applicable) | .bin | One-time-programmable bytes on Cat.3+ devices |
| EEPROM data | .bin | STM32L1 internal EEPROM contents (up to 16 KB on Cat.5/6) |
The STM32L1 family includes a true internal EEPROM (not emulated in flash), which is a distinctive feature compared to most other STM32 series. We extract this area alongside the main flash by default, as it often contains calibration data, serial numbers, or configuration parameters critical to the application.
Can you unlock an STM32L1 at RDP Level 2?
It is sometimes possible using invasive physical techniques such as die decapsulation and micro-probing, but success is not guaranteed. Roughly 60–75% of Level 2 attempts succeed in our lab. The process costs $2,500–$6,000+, takes 20–40 working days, and carries a real risk of destroying the device. We provide a free feasibility assessment before committing.
Does STM32L1 unlock erase the flash contents?
No. At RDP Level 1, our extraction techniques read the flash non-destructively. The device and its firmware remain intact after recovery. At RDP Level 2, invasive methods may damage or destroy the physical die, but the extracted data is preserved in the output files.
How do I know which RDP level my STM32L1 is set to?
Connect to the SWD port using an ST-Link programmer and open STM32CubeProgrammer. Navigate to the Option Bytes tab—the RDP field will show 0xAA (Level 0), 0xBB or any non-AA/CC value (Level 1), or 0xCC (Level 2). If you cannot connect at all, the device is likely at Level 2 or the debug port is damaged.
Is STM32L1 unlock legal?
Recovering firmware from a device you own or are authorized to access is legal in most jurisdictions. We require proof of ownership or a signed authorization letter before starting work. We do not assist with unauthorized extraction of third-party intellectual property. Our dsPIC33C unlock service page outlines similar authorization requirements that apply across all MCU families we support.
Can you recover the internal EEPROM data separately from flash?
Yes. The STM32L1’s true EEPROM (up to 16 KB on higher-category devices) occupies a separate address range from main flash. We extract it as a standalone .bin file in addition to the flash image, which is especially important for applications that store calibration or configuration data in EEPROM.
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.