Unlocking a secured MCU GD32F101C8T6 embedded firmware

Unlocking secured GD32F101C8T6 embedded firmware differs from the same job on its smaller siblings mostly in what is at stake: this is the 64 KB member of the 48-pin GD32F101 line, with 10 KB of SRAM, three USARTs, two SPIs, two I2Cs, three 16-bit timers and a 12-bit ADC, and firmware of that footprint is rarely a toy. On parts this size we routinely see protocol stacks, update logic and licence checks, all of which change both the difficulty and the value of the work. The protection mechanism itself is the family-standard one, so the starting point is the same; what differs is how much useful behaviour a device with a real bootloader exposes before anything invasive is considered.

Three dice in one microscope field; package analysis often starts with counting what is actually bonded.
Three dice in one microscope field; package analysis often starts with counting what is actually bonded.

The boot configuration is the first thing to interrogate

GD32F10x parts select their boot source with BOOT0 and BOOT1: main flash at 0x08000000, system memory at 0x1FFFF000, or SRAM. Under protection, the first two behave as documented — the system bootloader, which speaks its update protocol over USART0, is forbidden from touching the main flash, and any read it attempts returns a bus error. The third is the interesting one, because a device booted from SRAM runs nothing at all, and the firmware state on the array is then entirely inert. Mapping which of the three states a given board can reach, and what the resident bootloader on the flash actually does during its own update routine, is the first half of every program-memory dump we perform on the bigger RC member of this same family, and it is the same half here.

Debug access is governed in parallel. The Cortex-M3 SWJ-DP connects fine at any protection level, but with the SPC pair away from 0x5AA5 every read of the main array faults; the debugger sees a live core and a blank memory at once. That combination is diagnostic in itself: a device that connects and then refuses reads is protected at the controller level, not bricked, and the option bytes at 0x1FFFF800 will say so plainly since they stay readable in every mode.

An SO-8 body torn open during teardown practice; the same preparation techniques apply to LQFP parts.
An SO-8 body torn open during teardown practice; the same preparation techniques apply to LQFP parts.

Choosing between the non-destructive and destructive routes

With the state mapped, the honest branching is short. If any copy of the firmware survives elsewhere — an unprotected sibling, a field-update image, a programmer’s log — the project is a comparison dump and the locked sample is never touched. If not, the only controller-level route rewrites the SPC pair to 0x5AA5, and the controller answers with a mass erase of all 64 KB. We say that plainly to customers, because the flash-lock breaking notes written for the RK variant make the same point and it bears repeating: unlock and preserve are mutually exclusive on this family unless another copy exists first. The break-level service overview sets out how we stage the two cases differently.

A die resting on the assembly substrate after the moulding compound has been dissolved away.
A die resting on the assembly substrate after the moulding compound has been dissolved away.

After the image: rebuild, clone, verify

A recovered 64 KB image arrives with its option byte state recorded separately, and that record decides what a clone can safely inherit. Reprogramming the original lock configuration onto a blank part reproduces the original protection, which is right for archive copies and wrong for service fleets; relaxing it trades tamper-resistance for maintainability. We verify every clone on hardware — the 10 KB SRAM and the third USART get exercised hard by real firmware, and a subtly wrong image shows up there first. Where the recovered sample itself is marginal or damaged, the IC recovery workflow covers the handling; where the device sits on a smart-card style substrate with no conventional connector, the smart-card crack procedure describes the fixture work involved.

Fine-tip tweezers and a small package: most of this work happens at millimetre scale.
Fine-tip tweezers and a small package: most of this work happens at millimetre scale.

Send the part marking, a photograph of the board’s programming connector if it has one, and whatever you know about the original lock settings. Those three items usually settle the route before the sample is shipped.