8-bit ST72F324K4: Why Locked Flash Is Easier Here Than on a 32-bit Part
There is a widespread assumption that older and smaller means better protected, on the theory that a device with fewer features has fewer ways in. The opposite is true, and cracking 8 bit ST72F324K4 locked MCU flash program work is generally more predictable than the equivalent job on a modern 32-bit part, for reasons that have nothing to do with the strength of the protection bit.
The protection here is a single bit. On a 32-bit part it is a multi-level scheme with several independent mechanisms. And yet the eight-bit device is easier to recover, because everything that makes a modern part difficult to observe is missing.
The comparison that surprises people
The protection on this family is one bit in a configuration byte. It is either set or clear. There is no level one, no level two, no proprietary code readout protection, no secure enclave, no debug authentication.
| property | this device | a modern 32-bit part |
|---|---|---|
| protection levels | one | several, independent |
| debug authentication | none | certificate or key based |
| code readout protection region | none | separate mechanism |
| secure boot chain | none | present |
| encrypted external memory | not applicable | common |
By every measure in that table the eight-bit part is worse protected. It still ends up easier to recover, and the reason is that protection is only one of the obstacles.
No cache, no coherency problem
A modern part reads through a cache. The value at an address depends on whether the line holding it has been written back, and a reader that bypasses the cache sees something different from the core that does not. That problem is real enough that it gets its own article on this site: STM32F746 software recovery is entirely about the fact that two reads of the same address can disagree.
This device has no cache. A read is a read of the array. There is no window in which the answer depends on the observer, no need to flush anything before capturing, and no category of result that is “correct for the question asked”. The absence removes an entire class of ambiguity.
| question | this device | cached 32-bit part |
|---|---|---|
| is the value at this address stable | yes | only after a clean |
| does the observer change the answer | no | yes, if it bypasses the cache |
| do two reads agree | yes | not necessarily |
| is a live capture coherent | yes, trivially | only with effort |
No MMU, no translation layer
On a part with a memory management unit, the address the program uses is not the address the memory has. A read performed from outside the core may need to know which translation was active, and on parts with remappable regions the same physical address can appear at two different logical addresses depending on configuration.
Here, an address is an address. The flash begins where it begins, the vector table is at the top of the map, and there is no configuration under which that changes. The map is a fixed fact rather than a runtime state.
A single bus, a single master
Modern parts have multiple bus masters: the core, a DMA controller, an Ethernet engine, a display controller. They contend, they have different views of memory, and they can modify the array’s neighbours while a read is in progress.
This device has one master and one bus. Nothing else is writing while the read happens. The entire class of “the value changed between two reads because a peripheral wrote to it” does not exist, and neither does the class of “the read was starved by arbitration and returned stale data”.
A small address space that fits in one file
Sixty-four kilobytes is smaller than any single analysis artefact from a modern part. The whole map fits in one file, one memory buffer, and one human’s working attention.
That has a practical consequence that is easy to underestimate: the entire image can be reviewed, not sampled. A reviewer can read every function, check every table, and be confident that nothing was missed. On a two-megabyte image, the same claim is a matter of statistical coverage rather than completeness.
| property | 64 KB image | 2 MB image |
|---|---|---|
| fits in one analysis session | yes | no |
| full manual review feasible | yes | no |
| completeness provable | yes | only by checksum |
| cross-reference coverage | complete | partial |
Fewer metal layers over the array
When the route goes physical, the amount of material between the outside world and the array matters. A device on an older process has two to four metal layers and larger features, so the array is reachable with modest removal and legible with ordinary optics.
A modern part has many more layers, much finer features, and often a top layer of dummy fill and shield structures specifically intended to obscure what is underneath. The work is possible, but it is a different order of effort, and the equipment is different too.
| property | this device | modern 32-bit part |
|---|---|---|
| metal layers | few | many |
| feature size | large enough for optical read | often needs electron optics |
| shielding structures | none | common |
| typical route | decapsulation and image | decapsulation, thinning, and more |
Where the 32-bit part is genuinely harder
Three places, and they are worth naming because they explain why the pricing difference between device classes is real rather than arbitrary.
The first is the protection architecture. Multiple independent mechanisms mean multiple things to defeat, and defeating one does not imply defeating the others.
The second is the volume. A large image means the recovery has to be validated rather than inspected, which requires a reference the customer may not have.
The third is the integration. A modern part’s firmware is entangled with external memories, security elements and peripheral configurations, so recovering the internal array may not reproduce the product’s behaviour at all.
What this means for scoping
The practical upshot is that a locked device of this class is a well-bounded job. The map is fixed, the array is small, the observer does not perturb what it observes, and the physical route is uncomplicated by layer count.
That predictability is why the classification step matters more here than the technique. Deciding whether the device is open, read-protected or fully locked takes a read-only probe and determines everything that follows, as set out in ST72F321M9 secured microcontroller. The one-bit nature of the lock, and what that implies compared with multi-level schemes, is examined in ST72F324J6 locked bit. And when the route goes physical, the material considerations are covered in ST72F321AR secured memory.
The honest summary is not that eight-bit devices are insecure. It is that they are legible. Legibility is what a recovery needs, and it is what three decades of integration have been steadily removing.