PostHeaderIcon Decapsulate Protected GD32F303RET6 MCU: When Software Fails

Most GD32F303 recoveries are electrical. The GD32F303RET6 in an LQFP64 body with 512 KB of flash is no exception — until the part is set to SPC level 2. At that point the debug port, the bootloader and the fault-injection windows are all gone, and the only route left is to decapsulate the protected GD32F303RET6 MCU and reach the silicon itself, reading the array without ever asking the core for permission.

Level 2 is a different problem

Level 1 refuses reads but leaves the part electrically alive and attackable. Level 2 seals it: the chip will not enter debug, will not answer the bootloader, and cannot be returned to level 0 even by a mass erase. There is no bus-level trick that opens it, because the protection is latched in a way the part enforces for its whole life. This is the line where software recovery ends and physical recovery begins, and it is why we keep a decapsulation capability on the bench rather than only electrical rigs.

What decapsulation actually does

The LQFP64 is opened by removing the mould compound over the die, usually by a controlled chemical etch that stops at the passivation layer. The bond wires and leads stay intact, so the part remains functional on the fixture even with the lid off. With the surface exposed we can probe the flash directly, read it through the test structures, or prepare the die for laser or FIB work that would be impossible through the package. Decapsulating a protected GD32F303RET6 MCU is the prerequisite, not the read itself, and it is done with the part powered and responding so we know the die is alive before we commit to the read.

Reading the die after the lid is off

Once open, the 512 KB array can be reached by methods that do not invoke the lock at all. Dual-probe and flying-probe techniques, described in our probe test notes, contact the relevant buses and recover the contents directly off the silicon. The larger flash is an advantage here: more redundancy and clearer structures make the die-level read more reliable than on a tiny part, and the LQFP64 bond layout is well understood, so fixture risk stays low.

When decap is the only honest option

Level 2 is not common, but it is final, so it must be identified before any electrical attempt that could stress the part. The table shows how the decision splits on this 512 KB device, and why a wrong guess wastes a unit.

SPC level Electrical read Die-level read
0 – open yes yes
1 – read lock glitch yes
2 – chip lock no yes, after decap

What we do with the opened part afterwards

Decapsulation is not destruction, but it is not reversible either. The RET6 leaves the bench with its lid off and its bond wires intact, fully functional but no longer sealed against the environment, so it is returned as-is only when the customer wants the die, and otherwise the recovered image is what travels and the opened part stays with us. This is different from every electrical recovery, where the unit goes back exactly as it arrived. Before the etch we photograph the package and after we photograph the die, so the customer has a record of exactly what was done. The trade is worth stating plainly: a level-2 lock forces a physical read, and a physical read ends the part’s sealed life even when the firmware is perfectly recovered. For most owners the image is the prize and the opened die is a fair price; for a few who need the original hardware running, a decrypted clone on a fresh part is the better path, and we say so before we etch anything.

Returning the result

After the array is read at the die the image is reconstructed, verified, and delivered with a note on the level-2 state we found. If a running clone is needed the recovered image is written to a blank decrypted part with the lock set to level 0. This is the fallback that makes even a sealed GD32F303RET6 recoverable: when software fails, decapsulating the protected MCU is what still gets the firmware out, and the data decode that may follow treats the recovered array like any other image.

Comments are closed.