Recovering Microcomputer GD32F101D6T6 embedded firmware

Recovering locked GD32F101D6T6 embedded firmware is, in practice, the art of reconstructing a 32 KB program from whatever evidence the installation still offers before any destructive step is contemplated. As delivered the part is a 64-pin Cortex-M3 microcomputer — the catalogue’s 64-pin 32 KB member carries the R6T6 order code, 6 KB of SRAM, up to 51 I/O lines, a 16-channel ADC and the usual two-SPI, one-I2C, two-USART peripheral set — and its flash holds one continuous code area of thirty-two 1 KB pages with no separate data EEPROM. Parameters that would live in EEPROM elsewhere are simply parked in reserved pages here, which is why a recovery that stops at the application binary is only ever half a recovery.

Recovered dice and fragments beside a coin for scale; the dies inside these 64-pin bodies are little larger.
Recovered dice and fragments beside a coin for scale; the dies inside these 64-pin bodies are little larger.

Inventory before intervention

The first session is documentary, not electrical. Which boards in the field were programmed with protection enabled, whether an update was ever pushed over the wire, whether the programming house kept its logs: each answer either shrinks or enlarges the problem. The controller-level state is read directly from the option byte area at 0x1FFFF800, which remains accessible in every protection mode, and the SPC byte with its complement tells us immediately whether the pair 0x5AA5 — the family’s open state — is present. A live, unprotected sibling turns the whole project into a comparison dump through the program-data recovery route we use on the RI member of the same family; nothing touches the locked unit.

An opened package with the die centred on its pad, ready for microprobing.
An opened package with the die centred on its pad, ready for microprobing.

The destructive asymmetry, stated plainly

Every GD32F10x recovery plan has to budget for one hard fact: from a protected state, reprogramming the SPC pair to 0x5AA5 makes the controller mass-erase the main array. The unlock mechanism and the preservation goal are mutually exclusive. What remains non-destructive is readout of everything the lock does not hide — the electronic signature, the option bytes, the behaviour of the system bootloader over USART0 — and those reads are exactly what a sound plan is built from. The firmware restoration notes for the 256 KB VE part walk through the same decision tree at a different capacity, and the decode workflow we apply across families turns the observed behaviour into a written state map before any sample is altered.

Only when the inventory finds no surviving copy does the invasive half begin, and by then the customer knows precisely what will be lost and what will be reconstructed. We prefer the board-level route wherever the customer’s harness cooperates, and we say so plainly rather than quoting the more dramatic option by default.

A close-up of a die after decapsulation, its metal layers visible under the objective.
A close-up of a die after decapsulation, its metal layers visible under the objective.

What a finished recovery hands over

The deliverable set mirrors the memory map. The application pages, the reserved parameter pages and the option byte configuration as found, each labelled separately; the density and identity words from the signature area at 0x1FFFF7E0 and 0x1FFFF7E8, so the recovered image can be tied to the exact die it came from; and, where the firmware implements its own record encryption, the disassembly work that unwraps it. Clones programmed from the recovered set are verified on hardware before shipping — the 16-channel ADC in particular gets exercised hard by real sensor firmware, and a subtly wrong parameter page shows up there first. Every clone is programmed through the same controller handshake as the original, so a clone that verifies electrically but fails on the bench points back to a missing page rather than a tooling fault, and that distinction saves days. The recovery service pages describe how damaged or marginal samples are handled, and the service overview for controller families puts this line of work in its wider context.

Bond wires and pads under the microscope; the peripheral cells sit at the die edge.
Bond wires and pads under the microscope; the peripheral cells sit at the die edge.

Start the enquiry with the installation history rather than the part number: what was programmed, by whom, and when. Recovery projects are won or lost on that inventory, and the part itself will still be there when it is finished.