Clone Protected STM32G473RBT6 File: LQFP64 128 KB Copy
The STM32G473RBT6 is the most widely used package in the G473 line: a 10×10 mm LQFP64 body with 128 KB of flash and the full Cortex-M4 with FPU at 170 MHz. It is the part that turns up in industrial controllers, motor drives and instrument clusters, and because it is so common, a request to clone protected STM32G473RBT6 file contents usually has a practical motive behind it: an end-of-life board that has to keep running, or a single surviving sample that has to become a spare. The word file is the important part of the request, because what a working replacement needs is not one image but a bundle, and the bundle has to be delivered as a set for the copy to behave like the original.
The 64-lead workhorse
At 128 KB the STM32G473RBT6 holds a real product image without being the largest part in the family. The 10×10 mm LQFP64 body has enough clearance around the die for controlled decap work while staying soldered to the board, which matters when both software doors are closed. The flash here is the ECC-protected dual-bank type with read-while-write, so a recovery has to record which bank was active. The peripheral mix on this part is what real firmware uses: three FDCAN channels, four SPI, five serial lines, USB, and the CORDIC and FMAC accelerators that make motor-control loops cheap.
What the file actually contains
A clone is defined by the set of artifacts that travel together. The table below lists the elements of a complete STM32G473RBT6 file set.
| Element | Size | Purpose |
|---|---|---|
| Main flash image | 128 KB | Application and bootloader code |
| Option bytes | 16 bytes | Lock state, boot config, write protection |
| Calibration data | varies | ADC, comparator and sensor offsets |
| OTP area | 1 KB | Serial numbers, licence keys |
| Verify report | 1 page | Checksums, read route, part identification |
Anything omitted from the set becomes a surprise later. A copy without the option bytes boots with a different protection and write configuration than the board it replaces. A copy without the calibration data passes a power-on test and drifts out of tolerance in service.
Getting past the protection
At readout protection level 1 the debug port and the ROM system bootloader both refuse the main array, and the system bootloader honours the same lock, so there is no software shortcut. The practical routes are physical: a fault injected during boot to slip past the security check, or decap that exposes the die so the flash is addressed directly. The power glitch and clock glitch methods both target the same boot-time decision, and where the check resists them the package is opened chemically.
A 10×10 mm LQFP64 leaves the die centred with clearance on every side, so the compound can be taken back to the silicon without cutting between fine-pitch leads. The part is kept soldered and powered through the work, and that condition is what makes the timing attack possible at all: the check that gates the array is evaluated in the first instants after reset, and on a 170 MHz part that window lasts only microseconds.
Where a sample refuses the optical route, the bus is probed directly instead, which is slower but independent of the protection level. Perturbing the supply or the clock widens the same comparison window without opening anything, and because a failed attempt leaves the part locked rather than harming the image, those are tried first while the leads are still accessible.
Writing and confirming the copy
The captured set is written to a fresh STM32G473RBT6 and the option bytes are programmed to match, so the replacement behaves identically at power-on. Verification is not a single comparison: the flash is checksummed against the source, the option bytes are read back, and the boot behaviour is checked to confirm the same code path runs. The flash recovery workflow describes the read side of this, and our firmware cloning notes cover the write side. Where the image must be rebuilt into readable code, the program restoration route applies.
The order of operations is deliberate. The option bytes go onto the replacement first, because they carry the boot configuration and the protection state that the part has to start with. The 128 KB follows, then the calibration blocks are written back to the exact addresses they were read from, which is what makes the copy behave rather than merely boot.
What you receive
You receive the complete file set for the STM32G473RBT6: the 128 KB flash binary image, the option bytes, the calibration and OTP contents that were readable, and a validation report with checksums for every artifact. Where a second source is needed, the same bench handles the STM32G473VBT6 source rebuild and the STM32G474RBT6 file retrieval.