Bao'An Shenzhen China

STM32F1 Unlock | Feasibility, Cost & Lead Time

Published · About 7 min read · PCB-Copy

On this page
  1. What Does STM32F1 Unlock Actually Involve?
  2. STM32F1 Protection Levels Explained
  3. Which STM32F1 Parts Can Be Unlocked?
  4. Cost and Lead Time for STM32F1 Unlock
  5. Authorization and Legal Requirements
  6. How the STM32F1 Unlock Process Works
  7. Common Failure Modes and Honest Limitations
  8. STM32F1 vs. Other STM32 Families
  9. Deliverables You Receive
  10. Related IC Unlock Services

What Does STM32F1 Unlock Actually Involve?

STM32F1 unlock is the process of reading protected firmware from STMicroelectronics’ STM32F1 series microcontrollers — the Cortex-M3-based family that includes popular parts like the STM32F103C8T6, STM32F105, and STM32F107. When Read-Out Protection (RDP) is enabled, the on-chip flash cannot be accessed through standard JTAG/SWD debug interfaces. Authorized recovery uses hardware-level techniques to extract the firmware binary for legitimate purposes such as legacy maintenance, prototype recovery, or replacing an obsolete design source.

Our engineers work with STM32F1 devices daily. The F1 family has been in production since 2007, making it one of the most widely deployed ARM Cortex-M3 MCUs worldwide — and one of the most common targets for authorized firmware recovery when original source code has been lost.

STM32F1 Protection Levels Explained

stm32f1 unlock: STM32F103 chip on PCB with SWD probe needles during firmware extraction

STMicroelectronics implements a tiered Read-Out Protection scheme across the STM32F1 lineup. Understanding which level is set on your device is the single most important factor in determining whether an STM32F1 unlock is feasible.

Protection Level Debug Access Flash Read Unlock Feasibility Typical Method
RDP Level 0 (no protection) Full Full No unlock needed — direct readout Standard SWD/JTAG
RDP Level 1 Blocked Blocked externally High — recoverable in most cases Hardware fault injection / glitching
RDP Level 2 (irreversible) Permanently disabled Permanently blocked Very limited — requires invasive die-level work FIB / microprobing (case-by-case)

Most STM32F1 devices in the field are set to RDP Level 1. Level 2 fuses the JTAG port permanently and is far less common because it also prevents field updates. If your chip is at Level 2, we conduct a free feasibility assessment before quoting — success depends on the specific die revision and package.

How RDP Level 1 Recovery Works

At RDP Level 1, the STM32F1’s flash memory controller blocks external read commands but the data remains intact on-die. Our approach uses precisely timed voltage glitching on the power rail during the boot sequence to bypass the protection check. The technique requires:

  • Sub-nanosecond timing accuracy on the glitch pulse
  • Custom probe fixtures matched to the specific package (LQFP-48, LQFP-64, LQFP-100, BGA variants)
  • Multiple extraction passes with CRC verification to ensure a bit-perfect binary

This is non-destructive to the device. The chip is returned functional and unchanged after readout.

Which STM32F1 Parts Can Be Unlocked?

The STM32F1 family spans several sub-lines. Recovery feasibility varies slightly across them due to different die revisions and flash controller implementations.

Sub-Family Core Flash Range RDP L1 Recovery Notes
STM32F100 (Value line) Cortex-M3 @ 24 MHz 16–512 KB Supported Older die revisions — well characterized
STM32F101 (Access line) Cortex-M3 @ 36 MHz 16–1024 KB Supported High-density variants may need longer extraction
STM32F102 (USB Access) Cortex-M3 @ 48 MHz 64–128 KB Supported USB bootloader ROM may interfere — handled
STM32F103 (Performance) Cortex-M3 @ 72 MHz 16–1024 KB Supported — most common request C8T6 “Blue Pill” variant extremely well known
STM32F105/107 (Connectivity) Cortex-M3 @ 72 MHz 64–256 KB Supported Dual-bank flash on some parts

For high-density parts (512 KB–1 MB flash), extraction takes longer per pass because the full memory space must be read and verified. This adds roughly 1–2 days to turnaround but does not affect the success rate for RDP Level 1 devices.

Cost and Lead Time for STM32F1 Unlock

Pricing depends on the protection level, flash size, and package type. Here are realistic ranges based on our recent project history:

Scenario Typical Cost (USD) Turnaround (working days)
RDP Level 1, ≤128 KB flash, LQFP package $500 – $800 3 – 5
RDP Level 1, 256–512 KB flash $700 – $1,200 5 – 7
RDP Level 1, 1 MB flash (high-density) $1,000 – $1,500 5 – 8
RDP Level 2, invasive (if feasible) $3,000 – $6,000+ 10 – 20

We do not charge for unsuccessful attempts. If our feasibility check determines the device cannot be recovered, you pay nothing beyond return shipping.

What Affects the Price?

  • Package type: BGA packages require desoldering and reballing, adding fixture cost. LQFP and TSSOP are straightforward.
  • Flash size: Larger flash means more extraction passes and longer verification.
  • Batch quantity: Multiple identical devices (same firmware, same part number) receive a per-unit discount after the first successful extraction — typically 30–50% off per additional unit.
  • Rush service: 48-hour expedited turnaround is available for RDP Level 1 at a 40% surcharge.

Authorization and Legal Requirements

We perform STM32F1 unlock only for authorized parties. Before starting any work, we require proof of ownership or written authorization from the IP holder. Typical documentation includes:

  • Purchase records or invoicing for the original hardware
  • A signed declaration of ownership and intended use
  • NDA execution (mutual NDA provided at no charge)

This protects both parties and ensures compliance with IP law across jurisdictions. For details on our verification process and data-handling policies, see our trust and authorization framework.

How the STM32F1 Unlock Process Works

Lab workstation with voltage glitch fixture and oscilloscope for MCU unlock
  1. Submit your request: Send us the exact part number (e.g., STM32F103RBT6), quantity, and a brief description of why you need the firmware recovered.
  2. Feasibility assessment (free): We confirm the protection level and quote a fixed price. For RDP Level 2, this may require receiving the physical device first.
  3. Ship the device: Send the chip (loose or soldered on a board). We handle desoldering if needed.
  4. Extraction and verification: Firmware is read, CRC-checked across multiple passes, and delivered as a .bin or .hex file.
  5. Delivery and return: You receive the firmware file via encrypted transfer and the original device is returned intact.

Throughout the process, all data stays on air-gapped workstations. Files are purged from our systems 30 days after delivery unless you request earlier deletion.

Common Failure Modes and Honest Limitations

No recovery service is 100% guaranteed. Here is what can go wrong and how we handle it:

  • Damaged flash cells: If the device has been exposed to overvoltage, ESD, or excessive heat, some flash sectors may return corrupted data. We flag affected addresses in the delivery report.
  • Remarked or counterfeit parts: We occasionally receive chips marked as STM32F103 that are actually relabeled clones (GD32, CKS32, etc.). These have different die structures and may require a separate approach. We identify the real silicon before attempting extraction.
  • RDP Level 2 with newer die revisions: STMicroelectronics has hardened Level 2 protections over successive mask revisions. Some post-2018 die revisions of high-density F1 parts resist known invasive techniques. We disclose this upfront.

STM32F1 vs. Other STM32 Families

If you are working across multiple STM32 product lines, protection mechanisms differ significantly between families. The F1’s Cortex-M3 core and older flash controller make it generally more accessible than newer families.

Deliverables You Receive

Deliverable Format Details
Firmware binary .bin and .hex Full flash contents, byte-verified
Extraction report PDF Part number, protection level found, CRC checksums, any flagged sectors
Option byte dump .bin Complete option byte configuration (WRP, RDP, BOR settings)
Original device Physical return Chip or board returned in original condition

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 STM32F1 firmware be recovered if the chip is soldered to a board?

Yes. We can perform the extraction with the chip still mounted on the PCB, provided we have probe access to the power, ground, and SWD/JTAG pins. For BGA packages or densely routed boards, we may desolder the chip using controlled hot-air rework and resolder it after extraction. Board-level work adds roughly $50–$100 to the quote.

Is STM32F1 unlock the same as removing the RDP and erasing flash?

No. A standard RDP-to-Level-0 transition via the ST bootloader triggers a mass erase — all flash data is destroyed. Our STM32F1 unlock service reads the firmware while protection is still active, preserving the data. The chip’s protection state is not changed during the process.

How do I know if my STM32F1 is at RDP Level 1 or Level 2?

Connect the chip via SWD using an ST-Link and attempt to read with STM32CubeProgrammer. If you get a “readout protection active” error but can still connect, it is Level 1. If the debugger cannot detect the chip at all (no IDCODE response), it is likely Level 2. We can confirm the exact level during our free feasibility check.

Do you also recover EEPROM or external flash data from STM32F1 boards?

The STM32F1 does not have true on-chip EEPROM (some variants emulate it in flash). We extract the full internal flash contents, which includes any emulated EEPROM sectors. If your board has external SPI or I²C flash/EEPROM, we can read those separately — mention it when you submit your request.

What if my chip turns out to be a GD32 clone marked as STM32F1?

We identify the actual silicon using die-level inspection before extraction. GigaDevice GD32F103 and other pin-compatible clones have different flash architectures. We handle these too, but the quote may change. You will be notified before any work begins if we detect a remarked part.

Related IC Unlock Services

TURN THE GUIDE INTO A PROJECT QUESTION

What 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.

WhatsApp Send board details