PostHeaderIcon ST72F324BJ Flash Memory Unlocking: The Cost Hidden in the Word

ST72F324BJ flash memory unlocking is a service that works exactly as advertised and frequently disappoints, because the advertisement and the expectation are about different things. The lock is removed. The lock is removed by erasing the memory. The memory is therefore gone, and the customer who wanted “the lock off so I can use the part” is delighted while the customer who wanted “the lock off so I can see what is inside” is not.

Both customers used the same word. The technical difference between their requests is the difference between two entirely separate services, and the only place to catch it is before the work begins.

Two requests wearing one word

The first request is about reusing hardware: a batch of devices is locked, the production line needs to program them, and nobody cares what is on them now. For this customer unlocking is the complete answer, it is cheap, and it does not consume samples.

The second request is about extracting information: the customer has locked devices, no backup of the firmware, and a need to understand or reproduce what the device does. For this customer unlocking is the worst possible answer, because it destroys the only copy of the thing they wanted.

what the customer says what they usually mean what actually serves them
unlock these parts so we can reprogram them reuse full-chip erase
unlock these parts so we can read them recover the contents die-level route, not unlock
remove the protection, we have the original firmware reuse, safely erase, then reprogram from the archive
the parts are locked, what can you do unknown classify first, then ask

The fourth row is the honest answer and the one that should be given more often. Classification costs nothing, as described in ST72F321M9 secured microcontroller, and it turns an ambiguous enquiry into a decision the customer can actually make.

What the erase actually does

The protection setting lives in the same array as the program, at an address below the interrupt vector table. It is a programmed value, not a physical fuse, and the device’s full-chip erase operation clears the entire array including that value.

So the sequence is: erasing removes the protection, and it removes the code, and the two removals are the same event. There is no ordering in which the protection is cleared first and the contents read afterwards, because once the array is clear there is nothing to read.

operation protection state after contents after reversible
full-chip erase cleared gone no
block erase of the option byte region only depends on implementation application intact maybe
session read without erase unchanged intact yes
die-level access unchanged recovered no, sample consumed

The second row is worth investigating on a specific part rather than assuming, because some implementations allow the configuration block to be erased separately from the application. Where that is possible, the door opens without losing the room behind it — but it is a property of the specific device and the specific erase granularity, not a general rule, and it should be tested on a sacrificial unit before it is promised to anyone.

The arithmetic the customer has not done

Unlocking has a price that is not on the invoice: the programming cost of putting something back. A locked device that has been erased is a blank device, and a blank device needs firmware. If the customer has an archive, the cost is a programming step. If they do not, the erasure has converted a locked but functional device into a blank and useless one.

That asymmetry should be stated explicitly, because it converts an apparently cheap service into an expensive one.

customer’s situation unlocking gives them what it costs them
has the original firmware file a reprogrammable part nothing beyond the programming
has a working reference unit to copy a reprogrammable part a second read job
has neither a blank part the device is now worthless
needs to know what the device did nothing the only copy is gone

When unlocking is genuinely the right answer

Three situations, and they are all cases where the contents have no value.

A production line that locked its own parts by mistake during a configuration step, and still has the source and the programming file. An end customer who bought locked parts from a broker and needs them to match their own firmware. A repair operation that replaces a failed device with a recovered one and needs the spare to accept the product’s firmware.

In each case the contents are either known or irrelevant, and the erase is a formality rather than a loss.

When recovery is the right answer

Three situations where the contents are the point.

A device from a discontinued product with no firmware archive. A competitor’s product being examined for infringement. A field failure where the firmware version has to be identified before the failure can be understood.

In all three, the die-level route is the only route, and the correct thing to say is that unlocking is not available as a shortcut because there is nothing to unlock to.

Can both be had, in that order?

No, and the impossibility is worth explaining precisely because it is the question every customer asks.

The order that would work is: read the contents, then erase. But the read is precisely the operation that the protection prevents, so the first step of the desired order is unavailable while the device is locked. Once the erase has happened, the second step is available but the first is not. The two operations cannot be ordered so that both succeed.

That is not a limitation of tooling. It is the design intent: the protection exists to prevent exactly the sequence the customer is asking for.

What belongs in the quotation

Three lines, and none of them is optional.

The operation: full-chip erase, protection cleared, contents not preserved. The consequence: the device will be blank and will require programming before use. The alternative: if the contents are required, this is a different service that consumes the sample.

A quotation that says only “unlock: price” is technically correct and commercially dangerous, because the customer will read it as “make the device work again” and will discover the truth when the parts come back blank.

The decision table

the customer has the customer wants correct service
firmware archive reusable parts unlock and reprogram
a working unit to copy reusable parts read the good unit, then unlock and program the rest
nothing reusable parts unlock, but tell them the parts will be blank and useless
nothing the contents die-level recovery, not unlock
a legal or forensic need evidence die-level recovery with documented chain of custody

The last row is the one that gets under-served, because a forensic requirement adds documentation obligations that a routine recovery does not. Evidence has to be identified, photographed before and after, and accounted for at every step, and a delivery that ignores this is useless in the context that needed it.

The classification question that precedes all of this is covered in ST72F321M9 secured microcontroller, and the read-result interpretation that often triggers the enquiry in the first place is in ST72F32AK1 flash memory protection. Once a device has been unlocked and reprogrammed, whether the result is a genuine replacement is a separate question, examined in ST72F325K4 flash program cloning.

Comments are closed.