MSP430F2252: Secured, Damaged and Erased Are Three Different Things
The word secured in a product description means one thing to the person who wrote it and something else entirely to the person holding the board. It may mean the protection is engaged. It may mean the device was erased by a failed update. It may mean the unit is dead and the word is being used to describe the symptom rather than the cause.
Those three situations call for three different jobs, and the cost of confusing them is measured in days. This is a procedure for telling them apart using only what a bench session can observe.
What locking does and does not do
The protection mechanism stops external access to the array. It does not stop the core, it does not disable the peripherals, and it does not alter the program. A locked device in a working product behaves exactly like an unlocked one, because the program never needed external access in the first place.
This has a consequence that is easy to state and easy to forget: the fact that a product runs tells you nothing about whether its program can be extracted. The two properties are independent. A machine that works perfectly may hold a device that is completely closed.
It also means the behavioural evidence is still available. A locked device that runs produces observable effects, and those effects are the only window into it until the protection is gone.
The three states
| State | Evidence | Route |
|---|---|---|
| Locked and running | Current draw typical, pins toggle, device responds to its own interfaces | Behavioural work, or protection removal |
| Erased | Erased array reads as ones, device executes nothing meaningful, current low | Program it with something the customer owns |
| Damaged | Abnormal current, no clock, no pin activity, or activity that stops after a moment | Board-level diagnosis first, then device replacement |
The middle row is the one that gets mislabelled. A device whose update failed halfway is often described as locked because the debugger cannot read it, when in fact it is blank and the debugger cannot read it because there is nothing to read and no vector table to start from.
Establishing that the device executes
Before any of this, establish that the core is running at all. Three observations, in order of convenience.
Supply current. An executing core draws a characteristic current that differs from a halted one and from a device in a low-power mode. Measuring the supply current before and after a reset shows whether the device is doing anything.
Clock output. Most designs route the clock to a pin for test purposes, or the pin is accessible on a via. If a clock appears after reset, the oscillator and the clock tree are working.
Pin activity. Any pin that changes state after reset without external stimulus is being driven by the program. A device whose pins are all static after reset is either halted, blank, or damaged.
The third observation is the most informative and the most often skipped, because it requires a scope on a pin that nothing in the documentation identifies. Finding that pin is worth the effort: it converts an unknown device into a running one.
Distinguishing erased from locked
Both states refuse to give up a program, and the debugger reports the same thing for both. The difference is visible in what the device does.
An erased device has no vector table. On reset it reads the reset vector as an erased value, jumps to an address that contains erased flash, and executes an instruction that is architecturally defined but meaningless. The result is usually a device that appears to do nothing at all, or that resets continuously as it walks into a fault.
A locked device with an intact program does exactly what it was written to do. If the product has an LED, an output, a bus, or a display, those still work.
That is the discriminator, and it requires no tools beyond the product itself: connect the unit as the product expects and see whether it behaves. A board that performs its function holds a locked device. A board that does nothing after a known-good update attempt holds a blank one.
Distinguishing damaged from blank
A blank device draws current and does nothing. A damaged device frequently does the same, which is why the two are confused.
Three things separate them.
The supply current of a blank device is the specified active current. A damaged device often draws more, sometimes much more, and sometimes less because it never starts.
The clock. A blank device still has a working oscillator, because the oscillator is hardware and the reset state configures it. A damaged device frequently has no clock.
Repeatability. A blank device behaves the same way every time it is powered. A damaged one is erratic: it starts sometimes, draws different current on different attempts, or responds to a finger on the package.
Erratic behaviour is the signature of damage. Consistent behaviour, even consistently useless, points to a device that is simply not programmed.
Why the board is part of the diagnosis
A significant fraction of units that arrive described as locked are not locked. They have a failed reset capacitor, a crystal that no longer starts, a supply that sags under load, or a solder joint that opened.
The reason this matters is not politeness toward the description. It is that a board-level fault mimics a locked device perfectly: the debugger cannot connect, the device does not respond, and the conclusion that the protection is engaged is available and wrong.
The check is cheap. Measure the supply at the device pins rather than at the connector, confirm the reset line reaches its inactive level, and confirm the oscillator starts. Three measurements that eliminate the majority of false locked diagnoses.
The order of work
- Confirm the board is functional as a board.
- Establish that the device executes, by current, clock and pin activity.
- Classify the device as locked, erased or damaged.
- For a locked device, decide between behavioural work and protection removal.
- For an erased device, establish what it should contain and who owns it.
- For a damaged device, replace it and revisit the original question with a working unit.
Step six is the one that gets postponed. A damaged device is not an extraction problem and no amount of technique will turn it into one. Recognising that early is the single largest time saving available in this work.
Related reading
- MSP430F2352 and identifying what is actually on the board — the measurement set that precedes this diagnosis.
- MSP430G2452 and rebuilding an image that runs — what to do with a device classified as locked but openable.
- MSP430G2412 and the fuse that is really a flash word — why partial states exist at all.
FAQ
Does locking stop the device from running? No. It stops external access only.
Can a locked device be identified without unlocking it? Its behaviour identifies it. Its contents do not.
Why does a blank device look dead? It has no vector table, so it has no program to run.
Is erratic current a sign of protection? No. It is a sign of damage.
Conclusion
Secured, erased and damaged produce the same message from a debugger and three completely different jobs. Establish that the board works, establish that the device executes, and let the behaviour classify it. Most of the time saved in this work is saved by refusing to treat a damaged device as a locked one.