PostHeaderIcon ST72F324J6 Locked Bit: One Bit Here, Fourteen on a 32-bit Part

The address of this page contains a part number that does not exist. ST32F324J6 is not a device. It is what happens when a part number is transcribed by someone who has seen too many STM32 datasheets and not enough ST7 ones, and the error has been sitting in a URL long enough to be indexed by search engines.

That is worth addressing directly rather than quietly correcting, because the same error occurs in purchase orders, BOMs and enquiry emails, and because correcting it is the first useful thing that can be done for a customer who sent it. The device they mean is the ST72F324J6, and its protection is one bit.

The part number in the URL is not the part number

ST32F is not a prefix ST uses. The 32-bit family is STM32, the eight-bit family is ST7, and ST32 is a collision of the two that appears whenever someone types from memory.

The correct string, ST72F324J6, decomposes into four parts.

field value what it fixes
family and memory type ST72F ST7 core, flash memory, not OTP or mask
product group 324 peripheral set and register map
package J pin count and physical outline
capacity class 6 the size index inside the group

Nothing in that decomposition is a decimal count of kilobytes, which is the second common error: reading 6 as 6 KB. The designator is an index into the group’s ordering table, and on this family the familiar values are 4, 6 and 9 for the successive capacity steps.

What the marking actually says

The laser marking on the package is abbreviated and often carries a lot code, so it is not a reliable way to reconstruct the full string. What it does reliably give is the group and the package, and those are enough to confirm that the device is the one the customer means.

The test that settles it without documentation is the map. Flash on this family is top-aligned, ending at 0xFFFF, so the first address that contains code measures the capacity directly. A customer who believes they have a 16 KB part and a device that shows code beginning at 0x8000 have a 32 KB part, whatever the purchase record says.

One bit, and what it controls

The configuration lives in a small region immediately below the interrupt vector table, and the read-out protection is one bit within it. That bit has exactly one job: it decides whether the programming interface will disclose the array.

bit state effect on a session read effect on erase effect on the device running
clear the array is returned accepted unaffected
set a uniform value is returned still accepted, and it clears the bit unaffected

The third column is the one that surprises people. Protection does not stop the device from running, does not disable the debug interface entirely, and does not prevent the device from being erased and reused. It stops one specific thing: disclosure.

That narrowness is the whole design. One bit, one behaviour, one consequence, and a simpler job to reason about than any multi-level scheme.

Fourteen bits on the other side

A modern 32-bit part spreads the same idea across many independent mechanisms: a global read-out level with several states, per-sector write protection, a proprietary code readout region, a debug authentication scheme, and often a secure boot chain that validates what is allowed to run.

mechanism this device modern 32-bit part
read-out level one bit three levels, plus transitional states
per-region write protection none per-sector registers
code readout protection region none separate, independent
debug authentication none key or certificate
secure boot none present

The relevant number is not the bit count but the number of independent decisions. Here there is one. On the other side there are five or more, each of which can be the one that stops a recovery, and each of which has to be understood separately before a plan is credible.

Why the count matters less than the independence

A scheme with fourteen bits that all depend on one master condition is effectively one bit. A scheme with two bits that are genuinely independent is harder than fourteen that are not.

The eight-bit part is easy to reason about because there is one condition and one consequence. Its difficulty, such as it is, comes entirely from the physical layer: the array is behind an opaque package, and the only way to it is through the material.

source of difficulty this device 32-bit part
number of independent conditions one several
ambiguity about which condition blocks none common
physical access effort moderate substantial
post-recovery validation the map and vector table often needs a reference image

Recovering a part number from a wrong one

Four steps, in order, and the first three cost nothing.

Match the prefix against the families the manufacturer actually sells. ST32F matches nothing; ST72F matches the eight-bit flash line. Read the group digits against the family’s product list, because a group that does not exist means the digits were misread as well. Read the capacity designator against the group’s ordering table, never as a decimal number. And confirm everything against the device itself, by measuring where flash begins.

That last step is the only one that cannot be fooled by a bad document, and it takes one read.

What this page is for

This page exists at a URL containing a part number that does not exist, and it will keep being found by people who made the same mistake. The useful thing it can do is stop them from acting on the false premise.

If you arrived here searching for ST32F324J6, the device you are looking for is the ST72F324J6, an eight-bit ST7 part with a single read-out protection bit. If you arrived here with the correct part number, the technical content above applies directly.

Service, stated plainly

For a device in this family the work is one of three things, decided by a read-only probe: a session read when the bit is clear, a die-level recovery when the bit is set and the contents matter, or an erase-and-reuse when the bit is set and the contents do not.

Those three are distinguished in ST72F321M9 secured microcontroller, and the reason the third is not a substitute for the second is worked through in ST72F324BJ flash memory unlocking. The broader comparison between this class of device and a modern 32-bit part is the subject of 8-bit ST72F324K4, and the multi-level scheme referenced above is described from the other side in STM32F756 code.

Comments are closed.