STM32F407 Unlock — What Is Actually Possible?
STM32F407 unlock refers to the authorized recovery of firmware from STMicroelectronics’ STM32F407 series MCUs when the original source code or binary is lost. The STM32F407 uses ARM Cortex-M4 architecture with up to 1 MB of on-chip flash and implements ST’s Read-out Protection (RDP) at three distinct levels. Our engineers can recover flash contents from RDP Level 0 and Level 1 devices with a success rate above 85 %; RDP Level 2 parts require invasive techniques with lower certainty and higher cost. Authorization and proof of ownership are required before any work begins.
How Does the STM32F407 Protect Its Firmware?

Understanding the protection mechanism is the first step in evaluating whether an STM32F407 unlock is feasible for your specific part. ST implements a three-tier RDP scheme across the entire STM32F4 family:
| RDP Level | Protection State | Debug Access | Unlock Feasibility |
|---|---|---|---|
| Level 0 | No protection — flash readable | Full JTAG/SWD | Trivial — standard readout via ST-Link |
| Level 1 | Flash read-protected; debug halted on connect | Blocked (can be downgraded, but erases flash) | High — non-invasive and semi-invasive methods available |
| Level 2 | Permanent — JTAG/SWD physically disabled; option bytes locked | Permanently disabled | Possible but invasive; requires decapsulation and micro-probing |
Most STM32F407 devices we receive are set to RDP Level 1. At this level, ST’s official downgrade path (Level 1 → Level 0) triggers a full flash mass-erase, which destroys the data you need. That is why a standard programmer cannot simply “read” the chip — and why specialized extraction techniques exist.
RDP Level 1 — The Common Case
RDP Level 1 blocks external read access through the debug port but does not disable JTAG/SWD entirely. The CPU can still execute code from flash internally. Our approach exploits this: we use fault-injection and glitching techniques timed to the chip’s boot sequence to bypass the read-protection check before the mass-erase routine executes. On STM32F407VET6 and STM32F407ZGT6 parts (the two most common packages we handle), this method yields complete 512 KB or 1 MB flash images in a single session.
RDP Level 2 — The Hard Case
Level 2 permanently blows internal fuses that disable debug access. There is no electrical path back. Recovery requires chemical or laser decapsulation of the die, followed by micro-probing or FIB (Focused Ion Beam) circuit editing. Success depends on the specific silicon revision: newer Rev-Y and Rev-Z dies have additional metal shielding that older Rev-A parts lack. We quote Level 2 jobs individually after a physical inspection of the sample.
What Our Engineers Need to Start
- 1–2 sample devices — at least one sacrificial unit for process calibration, plus the target unit. Loose chips or populated PCBs both accepted.
- Proof of ownership or authorization — purchase order, design files, company letterhead, or NDA. We will not proceed without this. Review our authorization and IP-protection policy for details.
- Known part number and package — e.g., STM32F407VET6 (LQFP-100) or STM32F407IGH6 (BGA-176). The package determines our fixture and probe setup.
- Target data — specify whether you need flash only, OTP bytes, option bytes, or the full SRAM snapshot at boot.
STM32F407 Unlock Cost and Turnaround
Pricing depends almost entirely on the RDP level and package type. The table below gives realistic starting ranges — not fixed quotes, because silicon revision, sample condition, and batch size all shift the final number.
| Scenario | Typical Cost (USD) | Turnaround (Working Days) | Success Likelihood |
|---|---|---|---|
| RDP Level 0 readout | $80–$150 | 1–2 | ~100 % |
| RDP Level 1 — LQFP package | $400–$900 | 5–8 | 85–92 % |
| RDP Level 1 — BGA package | $600–$1,200 | 7–10 | 80–88 % |
| RDP Level 2 — any package | $2,500–$6,000+ | 15–30 | 50–70 % (revision-dependent) |
We charge a non-refundable evaluation fee (typically $50–$100) that covers initial RDP-level detection and feasibility assessment. If we proceed and succeed, that fee is credited toward the total. If we determine the job is not feasible, you get the assessment report and your sample back — no further charge.
Step-by-Step Process for STM32F407 Firmware Recovery
- Intake & verification — We confirm the part number, inspect the package for damage, and verify your authorization documents.
- RDP level detection — Using a custom SWD probe, we read the option bytes (or attempt to) to confirm Level 0, 1, or 2. This takes under one hour.
- Technique selection — For Level 1, we configure our voltage-glitch platform (target-specific timing parameters for the STM32F407’s 168 MHz system clock). For Level 2, we schedule decapsulation.
- Extraction — Flash contents are read out sector by sector. We verify the dump with a CRC-32 check against the chip’s internal flash CRC peripheral.
- Validation & delivery — The binary is delivered as a raw .bin and Intel HEX file. On request, we provide a disassembly map (ARM Thumb-2) so you can verify entry vectors and peripheral init routines match your hardware.
Common Failure Modes and Honest Caveats

No responsible service provider guarantees 100 % success on protected MCUs. Here is what can go wrong with an STM32F407 unlock:
- Glitch window too narrow on newer silicon — ST has tightened boot-sequence timing on Rev-Z dies. Our success rate on Rev-A/B is above 90 %; on Rev-Z it drops to roughly 82 % for Level 1.
- BGA pad damage — If the chip has been reworked multiple times, solder ball integrity may be compromised, causing intermittent SWD connections during glitching.
- Partial flash corruption — Occasionally a glitch triggers a partial erase of one 16 KB sector (sectors 0–3 are 16 KB on the STM32F407). We mitigate this with redundant extraction passes, but the risk is non-zero.
- Level 2 metal shielding — On BGA-176 parts with the larger die, additional top-metal layers can block micro-probing. FIB milling adds cost and time.
We always disclose these risks upfront. If the feasibility assessment suggests a success probability below 60 %, we will tell you before charging for the full extraction attempt.
STM32F407 vs. Related MCU Unlock Difficulty
Engineers often ask how the STM32F407 compares to other protected microcontrollers. The table below gives a rough comparison based on our lab experience:
| MCU Family | Protection Type | Relative Difficulty |
|---|---|---|
| STM32F407 (RDP L1) | Voltage-glitch bypass | Moderate |
| EFM32G series | Debug lock with AAP | Moderate |
| Microchip SAMD20 | Security bit + NVM lock | Moderate-Low |
| TI MSP430F2 series | JTAG fuse blow | Moderate-High |
| PIC18FK series | Code-protect CP bits | Low-Moderate |
The STM32F407 sits in the middle of the difficulty spectrum. Its Cortex-M4 core is well-documented, and the glitch attack surface is understood — but ST’s ongoing silicon revisions keep tightening the window.
Who Needs an STM32F407 Unlock?
The most common authorized use cases we see:
- Legacy equipment maintenance — Original firmware developer is unavailable; the production line depends on a controller board built around the STM32F407.
- Prototype recovery — A startup’s only firmware copy was on a single dev board with RDP enabled; source repo was lost.
- Second-source qualification — An OEM needs to verify that a contract manufacturer programmed the correct binary into STM32F407 parts before shipping.
- Failure analysis — Reading back flash to compare against the golden binary after field failures.
Deliverable Formats
| Deliverable | Format | Included by Default |
|---|---|---|
| Flash binary image | .bin (raw) + .hex (Intel HEX) | Yes |
| Option bytes dump | .txt register map | Yes |
| OTP area (if programmed) | .bin | Yes |
| Disassembly / symbol map | .asm / .map (ARM Thumb-2) | On request |
| Re-programming support | ST-Link compatible .hex | On request |
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 reviewCan an STM32F407 set to RDP Level 2 be unlocked without destroying the chip?
Not through any electrical debug interface — Level 2 permanently disables JTAG/SWD. Recovery requires physical die-level techniques (decapsulation + micro-probing or FIB editing). The chip’s package is destroyed during decapsulation, but the silicon die and its flash contents can often be preserved. Success rates range from 50–70 % depending on the silicon revision and top-metal shielding.
How do I know which RDP level my STM32F407 is set to?
Connect an ST-Link programmer and attempt to read the option bytes at address 0x1FFF C000. If the tool returns the full option byte block, you are at Level 0. If it connects but cannot read flash, you are likely at Level 1. If the SWD port does not respond at all (no target detected), the chip is almost certainly at Level 2. Our evaluation service confirms this definitively for $50–$100.
Is STM32F407 firmware extraction legal?
Extracting firmware you own or are authorized to access is legal in most jurisdictions, including under the DMCA’s exemptions for device maintenance and interoperability. We require proof of ownership or written authorization before starting any job. See our trust and compliance page for the full policy and NDA options.
What if the glitch attempt accidentally erases my STM32F407’s flash?
This is a known risk, though it is uncommon (under 5 % of Level 1 attempts in our lab). We mitigate it by performing multiple low-energy glitch sweeps before committing to a full extraction pass. If you supply two sample chips, we calibrate on the sacrificial unit first, which reduces the risk on the target device to below 2 %.
Do you support STM32F407 variants in BGA-176 and WLCSP packages?
Yes. BGA-176 (STM32F407IGH6/IGT6) is fully supported; we have custom socket fixtures for this package. WLCSP packages are rarer and require careful handling — we accept them on a case-by-case basis after confirming solder bump integrity. BGA jobs typically add 2–3 days and $150–$300 to the Level 1 baseline cost.
Related MCU Unlock Services
If you are working with mixed-MCU boards or need firmware recovery across multiple controller families, explore these related services:
- EFM32HG unlock — Silicon Labs Happy Gecko series with AAP debug lock
- Microchip SAME54 unlock — Cortex-M4 with TrustZone-M secure boot
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