Duplicate Locked STM32G474QET6 Heximal: LQFP128 512 KB Copy
On the STM32G474QET6 the G4 family reaches its top LQFP128 density with 512 KB of dual-bank flash and the HRTIM high-resolution timer, all in the same 14×14 mm body used by the smaller members of the line. When the original build archive is gone the only faithful copy is the one pulled from the silicon, and to duplicate locked STM32G474QET6 heximal means taking the raw hex dump and turning it into a build that actually reconstructs on a blank part. The size of the image makes verification matter more, not less.
The part and its footprint
The STM32G474QET6 keeps the Flexible Static Memory Controller and Quad-SPI of the 128-lead package, so the 512 KB it advertises is the floor rather than the ceiling of what a full duplicate captures. The Cortex-M4 with FPU runs at 170 MHz with the ART accelerator feeding the pipe, and the digital-power peripherals sit alongside CORDIC and FMAC accelerators that most firmware drives through tight loops. A heximal that skips the peripheral setup tables is a heximal that will not initialise the HRTIM correctly.
From hex dump to validated build
A heximal is only the starting point. The HRTIM on the STM32G474QET6 is the reason timing tables dominate the upper half of the image. Its twelve channels and 184 ps edge resolution store compare and dead-time values as packed words that a naive hex editor misreads as code, so the validated build tags those regions before reconstruction. The five ADCs, seven comparators and six op-amps add their own trim blocks, and the CORDIC and FMAC accelerators expect coefficient tables at fixed offsets. A duplicate that flattens all of this into one blob may assemble but will not regulate, which is why the heximal is structured by region before it is ever written to a blank part. The 512 KB array is read out, then matched against a second pass so any block that dropped during capture is pulled again before it is trusted. The validated build is not just the main flash: the 1 KB OTP area and the option bytes belong to the duplicate set, because the OTP often holds unique calibration constants and the option bytes record the write-protection and PCROP configuration. Our program restoration steps explain why those two elements are captured before anything is written to a replacement.
Where the lock stands
The readout protection on the STM32G474QET6 is enforced by the flash controller from the option bytes at reset. Level 0 is open, level 1 denies SWD and bootloader reads of main flash, and level 2 is permanent. The system bootloader honours the same decision, so the ROM route is no side entrance. Regressing level 1 to 0 erases the array, which defeats the duplicate entirely, and the point is reinforced in our flash protection methods reference.
Routes that actually open the array
When the software doors are closed, the LQFP128 can be opened chemically while the die stays live, then read through optical fault injection at the security check or through microprobing of the bus. Power and clock glitching are referenced where natural, though on a part this size the package route is the steadier one. The sibling STM32G474RCT6 data recovery uses the same decap discipline, as does the STM32G474VET6 binary clone in this batch.
| Element | Captured in heximal | Needed for build | Notes |
|---|---|---|---|
| Main flash 512 KB | yes | yes | dual-bank, ECC |
| Option bytes | yes | yes | lock state |
| OTP 1 KB | yes | yes | calibration |
| PCROP regions | mapped | yes | third-party |
Confirming the duplicate
The validated build is written to a blank STM32G474QET6 and checked for a clean boot, then compared against the original capture block by block. The HRTIM timing tables and the analog front-end setup are exercised so the duplicate behaves like the source rather than merely resembling it. Where the aim is analysis rather than a second device, the same verified heximal feeds a firmware clone project built around the STM32G473QET6 work already in our catalogue.
What comes back to the client
The client receives the complete 512 KB heximal of the STM32G474QET6, the option bytes and OTP dump, a disassembly-based source reconstruction where useful, and a verification report that confirms the duplicate builds and boots. The decapped part is returned in a sealed carrier with the die protected in transit.