PostHeaderIcon MSP430G2412: The Security Fuse Is a Flash Word, Not a Fuse

The word fuse is a metaphor that has outlived its usefulness. A fuse is blown once, it is physical, and its state is unambiguous. The mechanism on this device is none of those things: it is a location in the flash array, programmed by the same controller that programs everything else, and read by the protection logic on every access.

Understanding that changes what the failure modes are. A physical fuse either conducts or it does not. A flash word can be programmed, erased, partially programmed, worn, or read differently at two temperatures — and the protection logic has to interpret all of those states with a single comparison.

What the mechanism actually is

The array has a special location that the protection logic consults. While that location holds its erased value, external access is permitted. Once it is programmed to the locking value, external access is denied.

Three properties follow directly.

The state is reversible in principle, because erasing the array erases the location with it. The reversibility is not useful, because erasing the array destroys the program that was being protected.

The state is per-device and applies to the whole array. There is no region-by-region protection, which is why the protection question is always answered with one bit.

The state can be intermediate. Programming a flash word means driving charge onto a floating gate, and a write that is interrupted, under-powered, or performed at the edge of the temperature range can leave the cell between the two states.

The three states and how they behave

State Mechanism Observable behaviour
Erased Location holds its erased value Access permitted
Programmed Location holds the locking value Access denied, consistently
Marginal Charge insufficient to read as the locking value at all conditions Access sometimes permitted

The third row is the one that wastes weeks. A device in that state produces a session that reads the array, then fails to read it, then reads it again, with no change in the setup. The natural conclusions are a bad cable, a bad tool, or a failing device, and all three are wrong.

Why marginal states exist

Programming is not instantaneous or absolute. The controller applies a pulse and checks the result; a cell that does not reach the target after the specified pulses is reported as a failure. In a controlled programming operation that report is reliable.

The marginal case arises when the programming was not controlled: a supply that drooped during a production programming step, a write performed at a temperature outside the specified range, a device that had already been through many cycles, or a write that was interrupted by a reset.

Each of those produces a cell with less charge than intended. It reads as locked at room temperature with a fresh supply and reads as open when the temperature rises or the supply sags, because the read margin is what changed.

Recognising it

The signature is a device whose behaviour depends on conditions rather than on the setup.

  1. Read the same address repeatedly at constant temperature and supply. A marginal device gives a consistent answer within a session.
  2. Change the temperature and repeat. A marginal device changes its answer; a properly programmed one does not.
  3. Change the supply within its specified range and repeat. The same applies.
  4. Compare the reported state against the history of the unit. A device that was working and stopped after a power event is a candidate; one that never worked is not.

Step four is the discriminator between a marginal fuse and a design that never allowed access. If the product has been in service and its firmware has been updated in the field, the device must have been accessible at some point, which means the current refusal is a change of state rather than a policy.

What can be done about it

The options depend on which direction the marginality runs.

If the device is marginally locked, the goal is to complete the programming so that the state becomes stable, or to read the array during a window when the cell reads as open. The second is not a technique so much as an observation: a marginal cell that reads as open at an elevated temperature will do so reliably at that temperature, and a session conducted there either succeeds or fails consistently.

If the device is marginally open, the danger is the opposite. A read taken while the cell is marginal may be interrupted when the cell stabilises, and the resulting image is truncated. The mitigation is to read quickly and verify, and to accept that the window may not be long.

In both cases, recording the temperature and supply at which each attempt was made is the difference between a repeatable procedure and a story.

What must not be done

The tempting response to an unstable state is to erase and start clean. On a device whose program is the thing being protected, an erase removes the content and the fuse together, and the result is a blank device with no protection and nothing to protect.

That is worth stating plainly because it is the single irreversible mistake available here. Erasing is a legitimate step when the array has already been read and the goal is to reuse the part. It is never a diagnostic.

The wider point about fuse metaphors

The same confusion appears across the family: documentation and habit describe the protection as a fuse, technicians look for a physical structure, and the reasoning that follows is about physical structures.

Keeping the flash-word model in mind produces better questions. Can the state be read? What does an interrupted write do to it? Why would a device change state without being written? Those are answerable. Questions about blown fuses are not.

Related reading

FAQ

Can the fuse be reset without losing the program? No. The same erase affects both.

Is a marginal fuse common? Uncommon, and memorable, because the symptom looks like a hardware fault.

Does temperature really change the read result? For a cell with insufficient charge, yes, and that is the definition of marginal.

Is it ever right to erase a locked device? Only after the content has been read.

Conclusion

The lock is a flash word, which means it has flash word properties: programmable, erasable, and capable of sitting between states. Treat an inconsistent device as a marginal cell rather than a broken one, record the conditions of every attempt, and never use an erase as a diagnostic.

Comments are closed.