Posts Tagged ‘chip flash extract’

PostHeaderIcon Floating Gate Margins: What Ten Years of Aging Leaves

A flash cell stores a bit as charge on an isolated gate. The charge shifts the transistor’s threshold voltage, and the read circuit decides the bit by comparing the threshold against a reference. That is the whole mechanism, and every failure mode in flash follows from it.

When the device is new, the two threshold distributions — programmed and erased — are far apart and the reference sits comfortably between them. When the device is old, the distributions have moved and broadened, and the reference is no longer comfortably anywhere.

What moves the threshold

Three mechanisms move charge, and they act over different time scales.

Program and erase cycles trap charge in the tunnel oxide. Each cycle injects carriers through the oxide and a small fraction become trapped, which shifts the threshold of both states and reduces the window between them. A device rated for ten thousand cycles has a window at the end that is measurably smaller than at the start.

Mechanism Time scale Effect on the window
Cycling Thousands of cycles Narrower, both states shift
Retention loss Years Programmed state drifts toward erased
Temperature Hours to years Accelerates retention loss
Read disturb Per read Small shift, accumulates

The second row is the one that matters for a device that has been in the field for a decade. Charge leaks off the floating gate through the oxide, slowly, and the programmed state’s threshold falls. The erased state is less affected because it holds little charge to lose, so the window narrows from one side.

The fourth row is the subtle one. Reading a cell applies a voltage to the control gate, and that voltage can inject a small amount of charge over time. A device that has been read millions of times has cells that have been disturbed millions of times, and the disturbance is concentrated on the rows that are read most.

What the read actually decides

The sense amplifier compares the cell’s current against a reference current. The comparison has a resolution and the reference has a tolerance, and both matter when the window is narrow.

Condition Cell state Read result
Window wide, reference centred Clearly programmed or erased Correct
Window narrow, reference centred Marginal Correct, on the edge
Programmed state drifted past the reference Should read 0 Reads as 1
Temperature shifts the reference Marginally programmed Depends on the moment

The third row is the failure that produces a wrong image, and it produces it on a device that still works. A cell that has drifted is read as erased, and the code that depended on it may still run because the byte was a value that happens to be tolerated.

The fourth row is the one that makes the read non-repeatable. A reference that moves with temperature and a cell that sits near it means the same byte can be read differently on two passes, and that instability is the signature of an aged device.

The three failure patterns

Aged devices fail in three recognisable ways, and each suggests a different countermeasure.

Isolated flips are the first. A handful of bits read differently from what they should, scattered through the array with no pattern. They are cells whose threshold has crossed the reference, and the countermeasure is repeated reading with a majority vote, which resolves the ones that are merely marginal and identifies the ones that have genuinely crossed.

Pattern Distribution Countermeasure
Isolated flips Scattered single bits Majority vote across passes
Row-correlated errors One row, many bits Re-read at a different rate
Block-correlated errors A whole block unreadable Check the block, not the array
Uniformly erased regions A contiguous range reads 0xFF Distinguish erase from failed read

The second row is the one that points at a read-path problem rather than a cell problem. A row that fails as a group is a row whose word line did not reach its voltage, which is a timing or a driver issue, and reading more slowly fixes it.

The fourth row is the important distinction for recovery work. A block that reads as erased is either a block that was erased or a block that was not read at all, and the two are different outcomes. A device that was partially erased has erased regions; a device whose read failed has regions that the controller refused to return, and the difference is visible in the error status rather than in the data.

Reading a marginal device

The reading strategy for an aged device is different from the strategy for a new one, and it costs time rather than equipment.

Read slowly. The access time of an aged cell is longer, and a read issued at the datasheet’s maximum rate has less margin than the same read at half the rate.

Practice Cost Benefit
Reduce the clock Two to four times slower Recovers timing margin
Read three to five times Three to five times slower Majority vote, disagreement map
Read at two temperatures Bench time Distinguishes drift from damage
Compare against a reference part Requires a part Identifies genuinely wrong bytes

The third row is the one that separates a drifted cell from a damaged one. A cell that reads correctly at a lower temperature but incorrectly at a higher one is marginal; a cell that reads incorrectly at both has crossed. The distinction determines whether the byte can be trusted for the customer’s purpose.

Reading is not free of consequence

Repeated reading is the standard remedy, and it carries a cost that is easy to ignore: each pass disturbs the cells it touches. The control gate voltage that makes a read possible also injects a small amount of charge, and a device that is already marginal has the least tolerance for it.

The consequence is that the read plan has to be budgeted rather than repeated wholesale. The first pass runs over the entire array at a reduced clock, and it is the only pass that touches every block. Later passes are restricted to the blocks where the first pass disagreed with itself, which is typically a few percent of the array.

Pass Coverage Purpose Disturbance
First Whole array, reduced clock Baseline image Uniform, one cycle
Second Blocks that disagreed Resolve marginal cells Confined
Third and later Individual uncertain blocks Majority vote Negligible elsewhere
Temperature variant Whole array, once Separate drift from damage One extra cycle

The fourth row is the exception that must be planned in advance, because it is the only later pass that touches everything. Running it early, while the array is still fresh, costs less margin than running it after a dozen targeted passes have already accumulated disturbance.

The ordering also protects the evidence. A device that is read to exhaustion yields an image with no way to tell which disagreements were caused by age and which by the reading itself, and the second category is an artefact of the method rather than a property of the device.

What the limits are

Two limits bound what reading can achieve on an aged device, and stating them prevents unrealistic expectations.

A cell whose threshold has crossed the reference cannot be recovered by reading. It stores a value that the device itself no longer reads correctly, and the only way to recover it would be to measure the threshold directly — which requires a probe on the die, not a read command.

Situation Recoverable by reading Alternative
Marginal cell Yes, with passes None needed
Crossed cell No Threshold measurement on the die
Damaged row driver Yes, at a lower rate None needed
Controller failure No Physical read of the array

The fourth row is the case where the device is dead but the array is intact, and it is the one case where a physical read recovers more than any electrical method.

Where the service fits

For an aged device the deliverable is an image with a disagreement map and a statement of the error rate, plus a note on which regions are uncertain and why.

That map is what allows the customer to decide whether the image is usable. A firmware image with three uncertain bytes in a region that is never executed is usable; the same three bytes in a checksum are not, and the difference is visible only if the map is delivered.

The confidence labelling that formalises this is in restoring MCU code, and the repeat-read practice that produces the map is in read reliability.

Where the device is dead rather than aged, the physical route in cracking IC flash recovers the array directly and does not depend on the sense amplifier’s margin at all. Where the array is intact but the contents are encrypted by the device, the read produces ciphertext and the situation is the one in bus encryption. Where the package holding the array cannot be identified from the schematic alone, the board-level search is the one in finding the flash on a board.