Duplicate Locked GD32F303VET6 Program: 512 KB Copy
When the goal is not analysis but a second working unit, extraction is only the first half. The GD32F303VET6 holds 512 KB of flash in an LQFP100 body, and to duplicate the locked GD32F303VET6 program you read that image past the lock, then produce a copy a fresh part will run. The VET6 is a frequent target because its half-megabyte holds a complete, shippable product rather than a fragment. — with the protection left off so the duplicate behaves like an open device rather than re-locking itself on first boot.
Reading before copying
The level-1 SPC lock blocks the debug port and the bootloader read, so the image is pulled by the same early-boot fault injection used across the line, verified sector by sector, and stored before anything is changed. At 512 KB the capture is substantial, and because the duplicate has to be bit-faithful the read is checked twice: once against the option-byte block, once against a second pass. A restored flash starts from exactly this verified image, and a clone is only as good as the read it came from.
Making the copy bootable
A raw dump is not a duplicate until a blank VET6 will run it. That means writing the application array, carrying over the configuration and information blocks the part needs at reset, and setting the new part’s option bytes to level 0 so it is open. Any anti-tamper routine that referenced the original lock is neutralised in the copy, because the point of duplicating is a part that works, not one that re-locks on power-up. Our flash-protection notes explain why leaving the copy open is the only sane ending, and why a clone that re-arms the lock is a failure.
Why a 512 KB part duplicates cleanly
More flash means more to copy but also more redundancy to verify against, so a bad sector is obvious rather than silent. The LQFP100 fixture holds the part firmly through the longer write, and the verification pass confirms the blank part boots before it leaves. The table maps the steps to the lock state, which is what decides whether the read is electrical or physical.
| SPC level | Read for copy | Blank copy boots |
|---|---|---|
| 0 – open | direct | yes |
| 1 – read lock | glitch | yes, lock cleared |
| 2 – chip lock | decap | yes, lock cleared |
What the duplicate is checked against
Beyond the bitwise compare, the clone is boot-tested on a spare VET6 so a neutralised check that still trips is caught on the bench, not in the field. The attack that opened the part and the duplication are kept as separate stages so a problem in one is not confused with the other, and the verified image is what feeds both.
When duplication is the wrong answer
Duplication assumes the goal is a second working unit, and that is not always what the owner actually needs. If the aim is to understand how the device works, a disassembly beats a clone, because a clone runs but does not explain. If the aim is to keep an obsolete product alive, a single verified image may be enough and a roomful of clones is waste. And if the original is level 2 and must be decapsulated, the duplicate is the only way forward but the opened original is lost as a sealed part, which some owners regret. We raise these before programming a spare, not after. The full software retrieval that produces the image and the duplication that copies it are different services, and picking the right one is part of the job rather than an upsell. The VET6 is a common target for exactly this decision, since its 512 KB holds a complete product and the owner is rarely sure whether they want it explained or just copied. A duplicate is the answer when a running part is the deliverable; otherwise the image alone is usually the smarter buy.
Delivering the duplicate
The finished duplicate is returned alongside the original image so you keep both, and if you need many units the same verified image feeds a small production run. This is how we duplicate locked GD32F303VET6 program without the mass erase that would have destroyed the only copy, and it pairs with the full software retrieval used when the aim is the image itself rather than a working clone.