Decapsulate Locked STM32G473CCT6 Firmware: LQFP48 256 KB Recovery
The STM32G473CCT6 packs 256 KB of flash into a 7×7 mm LQFP48 body, so the silicon sits in the middle of a small package with a dense, regular pin ring around it. That geometry is the reason it appears so often on control boards with no second storage device fitted: the design fits around the MCU and the firmware stays resident. When that image is the only surviving copy and the readout port is closed, the productive answer is to decapsulate locked STM32G473CCT6 firmware and read the array off the exposed die.
Why the 48-lead body suits decap work
An LQFP48 package is large relative to the die it carries. The mould compound comes off a body roughly seven millimetres across, with the die a small fraction of that footprint, so the work is controlled removal of a large volume with a small target at the centre. On the STM32G473CCT6 the flash is a single die rather than a stack, so one careful etch exposes the whole array. The pin ring stays intact and the chip remains testable while the package is opened. This is the same principle behind our decapsulation service, applied where the goal is the flash contents rather than the algorithm.
What protection is actually in place
Protection on this part is layered, and knowing the layers tells you what a read attempt will produce. The table below lists the main gates a field unit may present.
| Gate | Effect on a read attempt | Recoverable without mass erase |
|---|---|---|
| RDP level 0 | Debug port and bootloader read freely | not applicable |
| RDP level 1 | Both SWD and system bootloader refuse the main array | yes |
| PCROP block | A code region is invisible to ordinary reads | yes |
| Write protection | Programming is blocked, reading is not | yes |
| RDP level 2 | Debug is permanently disabled | yes, by physical route |
None of these gates removes the data. They hide it from a software path, and every one is a decision made by hardware during boot that a physical attack can outrun. Regressing level 1 to level 0 would mass erase the array, which is why the image is taken out of the running part instead. A flash protection primer sets out why that trade is never worth making.
Reaching a live die under the check
Decapsulation on the STM32G473CCT6 is done while the board keeps running, which is what makes the later fault step possible. Chemical attack on the mould compound opens a window over the die, the package is still soldered, and the part still executes its boot sequence. The security decision happens early in that sequence, in the window between reset and the first call into user code. An optical fault injected into that window, precisely timed against a reference clock, can make the verification return a result the logic did not intend, and the debug window opens for the instants needed. Power and clock glitching attack the same decision from the supply side, and our notes on power glitches and clock glitch attacks describe both approaches.
Streaming the array out
Once the port answers, the 256 KB image of the STM32G473CCT6 reads out in one pass, and the option bytes come with it so the original lock state is documented rather than guessed. On the G4 the flash carries ECC, so a marginal cell is corrected during the read instead of copied with a silent error. The capture is taken twice and the passes compared; a read that closed halfway is caught and repeated rather than handed over as a short file. Because the G473 offers dual-bank flash with read-while-write, the tool records which bank was active at capture, which matters when the image later seeds a replacement part.
Verifying what came out
A recovered image is only useful if it is provably the firmware that ran. Vector table sanity, the reset vector address, the peripheral entries expected on this family, and the consistency of the option bytes against the observed lock behaviour all form the check. Where a bank swap was involved, the banks are reconciled so the delivered file matches the state the board actually ran. Our flash recovery workflow covers the same verification discipline, and the restore steps outline how a confirmed image is put back into working order.
What you receive
You receive the complete 256 KB flash binary image of the STM32G473CCT6, the option bytes recording the original protection state, and a verification report describing the route used and the checks applied. Where the goal is a spare part, the same confirmed image feeds a firmware clone for the STM32G473RCT6 data read and the STM32G473RET6 program recovery.