Posts Tagged ‘chip program breack’
Three Kinds of One-Time: OTP, Locked Flash, Mask ROM
Three technologies are described as one-time programmable, and they are confused with each other constantly because the phrase describes an outcome rather than a mechanism. The outcome is that the contents cannot be changed. What differs is why, and what that implies for reading.
The most useful correction to make at the start is that one-time refers to writing. In two of the three technologies the contents are perfectly readable, and the third is readable under conditions that are physical rather than electrical.
OTP fuses
An OTP memory stores a bit by destroying a connection or by breaking down a thin oxide. The write is irreversible because the physical structure changes, not because a controller refuses.
There are two variants, and they behave differently under inspection. A poly fuse is blown by current, leaving a visible gap. An antifuse is programmed by breaking down a dielectric, leaving a conductive path that is invisible optically but detectable electrically.
| Variant | Write mechanism | Readable | Visible optically |
|---|---|---|---|
| Poly fuse | Current blows the link | Yes, electrically | Yes |
| Antifuse | Oxide breakdown | Yes, electrically | Barely |
| Floating-gate OTP | Charge on an isolated gate | Yes, electrically | As a threshold shift |
All three are readable by the device’s own interface in normal operation, because the device has to read them. That is the property that makes OTP a poor confidentiality measure and a good integrity measure: the value cannot be changed, and it can be read by anyone who can talk to the device.
Locked flash
The second technology is ordinary flash with a lock that cannot be cleared without erasing. The write is irreversible in practice because the only way to unlock is to destroy.
This is the most common form of one-time programming in modern products, and it is the one with a real protection model: a locked flash page is not readable either, not because it is one-time but because the lock gates reading as well.
| Property | OTP fuse | Locked flash |
|---|---|---|
| Contents readable | Yes, if the interface allows | No, if read protection is set |
| Contents changeable | No | No, without erase |
| Erasable | No | Yes, destructively |
| Protection mechanism | Physical irreversibility | Access control |
The distinction matters because a device with locked flash and no read protection is a device whose contents are readable and unchangeable, which is exactly the combination a customer usually wants for a serial number and does not want for a firmware image.
Mask ROM
The third technology is programmed during manufacture by the mask, and it is the only one that is genuinely irreversible at the silicon level.
Mask ROM is written as a pattern in the diffusion or the implant, and the pattern is a physical feature of the die. It cannot be changed, it cannot be erased, and it is visible.
| Property | Mask ROM |
|---|---|
| Written by | The mask, at wafer fabrication |
| Changeable | Only by a new mask |
| Readable electrically | Through the device’s interface |
| Readable optically | Yes, with decapsulation |
| Survives decapsulation | The die does, the package does not |
The fourth row is why mask ROM is the technology that ends up in optical recovery work. The pattern is the data, and reading it is an imaging problem rather than a protocol problem.
Why one-time does not mean unreadable
The confusion is worth addressing directly, because it produces bad quotations in both directions.
A customer who believes that one-time programmable means unreadable will be surprised when a device is read in an hour. A customer who believes that it means unprotected will be surprised when a device with locked flash refuses everything.
| Belief | Reality |
|---|---|
| One-time means the data cannot be read | Reading and writing are separate permissions |
| One-time means it is protected | Only if a read lock is also set |
| Mask ROM is unreadable | It is the most readable of the three, optically |
| OTP cannot be copied | It can be read and re-burned elsewhere |
The fourth row is the commercial point. An OTP device whose contents are readable can be copied — not into another OTP device of the same type necessarily, but into an equivalent device, a flash-based replacement or an emulator. The one-time property protects against modification, not against reproduction.
What actually decides the route
Three questions determine the route for a one-time device, and they are answered in this order.
Is there a read lock in addition to the write lock? If not, the contents are readable through the normal interface and the work is a dump.
| Question | Answer | Route |
|---|---|---|
| Is reading locked | No | Read through the interface |
| Is reading locked | Yes, with a bypass | The bypass |
| Is reading locked | Yes, without | Optical |
| Is it mask ROM | — | Optical regardless |
Is the device flash-based or fuse-based? A flash device with a locked read has the property that the lock resists electrical reads but not optical ones; a fuse device stores a physical state that optical imaging can resolve.
Is the die accessible? A plastic package can be opened; a chip-scale package with a coated die is harder; a die mounted under a glob top is harder still.
What the optical route costs
The cost of reading a one-time device optically is set by the array size and the feature size, not by the protection.
| Array | Feature size | Effort |
|---|---|---|
| Small OTP, hundreds of bits | Microns | Hours |
| Mask ROM, tens of kilobits | Sub-micron | Days |
| Mask ROM, megabits | Deep sub-micron | Weeks, with risk |
| Any, with a coating | — | Additional delay removal |
The fourth row is the one that changes a quotation. A die with a passivation and a conformal coating requires removal before imaging, and the removal is where devices are damaged. The probability of damage is not zero, which is why optical work is quoted with a note about survivability.
What the service covers
For a one-time device the first deliverable is a classification: which of the three technologies, whether a read lock is present in addition to the write lock, and what the corresponding route costs.
| Finding | Deliverable |
|---|---|
| OTP, no read lock | A dump, in hours |
| Locked flash, no read lock | A dump, with the note that the lock is write-only |
| Locked flash, read lock | An optical quotation |
| Mask ROM | An optical quotation with a survivability note |
The reading routes that apply after the classification are the electrical ones in read MCU code and the physical ones in extracting IC flash.
What we will not do is treat the phrase one-time programmable as a route. It describes a write property, and the read property has to be established separately; the distinction between the two is the same one that appears in three protection layers.