Posts Tagged ‘extract dsp chip content’

PostHeaderIcon Data Remanence: Why ‘Erased’ Is a Statement About a Threshold

The word “erased” hides a measurement. A memory cell stores a quantity — charge on a floating gate, charge on a capacitor, the state of a latch — and a sense amplifier decides whether that quantity represents a one or a zero by comparing it against a reference. Erasing drives the quantity toward one end of the range. It does not remove it, and it does not remove the reference. What remains is a margin, and the margin is the thing that can sometimes be read.

Understanding this changes what a customer should expect from a device that has been through an erase, and it also explains why the same procedure that recovers data from one part yields nothing from another that looks identical.

Three storage mechanisms, three kinds of residue

The mechanisms matter because they fail differently. A volatile latch loses its state when power is removed, but not instantly and not completely. A floating gate holds charge for years but the charge distribution after an erase is not uniform. A DRAM capacitor leaks in milliseconds, which sounds hopeless until the refresh is considered.

Mechanism What is stored What erase does Residue window
SRAM latch Cross-coupled inverter state Nothing; state is lost on power down Milliseconds to seconds, longer when cold
Floating gate (flash, EEPROM) Trapped charge on an isolated gate Moves charge to the erased distribution Thousands of cycles of margin, then none
DRAM capacitor Charge on a capacitor Refresh stops; charge leaks Tens of milliseconds without refresh

The SRAM row is the one that surprises people, because a volatile memory is assumed to be gone the instant power is removed. It is gone as a logical state, but the physical tendency of each cell to prefer one side persists briefly, and cooling the device slows the relaxation enough to extend the window from milliseconds to seconds. This is the basis of cold-boot recovery, and it is a real effect with real limits.

Why temperature changes the window

The relaxation of a latch is driven by thermal energy. Cool the die and the carriers have less energy to cross the barrier that holds the preferred state, so the state persists longer. The relationship is strong enough that the practical procedure involves cooling the device below the point where the effect is measurable, then powering it up and reading immediately.

The same logic applies in reverse to floating gates. A floating gate loses charge by thermionic emission and by trap-assisted leakage, both of which are temperature-activated. A device stored hot for years will have a wider erased distribution than one stored cold, which means less margin, which means less chance of distinguishing a partially erased cell from a fully erased one.

What an erase actually does to a floating gate

A flash erase applies a field that drives charge off the floating gate through the oxide. The result is a distribution of threshold voltages, not a single value. Cells that were programmed hard end up at the high end of the erased distribution; cells that were already erased are pushed further. The two groups overlap less than before, but they do not become identical.

Cell history Post-erase threshold Detectable?
Programmed once, erased once Slightly above the erased median Marginally, with careful measurement
Programmed and erased many times Indistinguishable from erased No
Never programmed At the erased floor No, and nothing to detect
Programmed, erase interrupted Well above the erased median Yes, clearly

The fourth row is the interesting one for forensics: an interrupted erase leaves cells in an intermediate state, and the pattern of intermediate cells is the pattern of the data that was being erased. This is not a routine recovery route, but it is the mechanism behind the occasional result where a partially erased region yields fragments.

Reading margin requires a different instrument

A normal read uses the sense amplifier’s fixed reference and reports one bit per cell. That is precisely the wrong measurement for remanence, because it collapses the margin into a single bit and discards the information that matters. What is needed is a measurement of the actual threshold, cell by cell, which means either a parametric test structure or a physical technique that reads charge directly.

Approach What it measures Applicability
Normal read at nominal reference Logical value only Useless for margin
Read at shifted reference Whether the cell is above or below a moved threshold Works if the reference is adjustable
Parametric sweep Threshold voltage distribution Requires test access, rarely available
Physical probing or imaging Charge or doping profile Destructive, expensive, definitive

The second row is the practical one where the device supports it: if the reference can be moved, each cell can be interrogated at several thresholds and the margin reconstructed. Most production devices do not expose that control, which is why the fourth row exists.

EEPROM arrays in older programmable logic show the same effect in a form that is easier to work with, because the cells are large and the programming mechanism is documented. Extracting PLD EEPROM covers the charge pump and threshold behaviour of those devices, and the physics is the same one that makes flash margin decay with erase cycles.

The distinction that matters commercially

Recovery from remanence is not the same service as recovering a protected device. In the protected case, the data is fully present and the question is access. In the remanence case, the data is degraded and the question is whether enough margin survives to decide each bit. The second is probabilistic, and a supplier who quotes it as a certainty is either misunderstanding the physics or overselling.

Situation Data state Realistic outcome
Protection set, never erased Fully present High confidence recovery
Bulk erased hours ago, stored cool Margin partially present Partial recovery, block-level certainty varies
Bulk erased, many cycles, stored hot Margin at floor No recovery
Power removed from SRAM, device cooled Latch tendency present Partial recovery with statistical error correction

The fourth row is where the error-correction work happens: because the recovered SRAM image has a bit error rate rather than a clean read, the useful techniques are the ones that exploit redundancy — known plaintext, structure in the data, and repeated captures averaged together.

Where this sits in the wider workflow

Remanence work is downstream of everything else. It only becomes relevant when the device has been erased, which means the normal route has already failed. Restoring embedded information describes how partial material is turned into a usable deliverable, and breaking an MCU covers the access question that precedes it. The physical techniques used to measure charge are the same ones used to read a protected array, applied with a different instrument and a different objective.

Services at this boundary

Work covers assessment of whether a device has recoverable margin at all, cold-boot SRAM capture with statistical reconstruction, partial recovery from interrupted erases, and honest reporting of what was not recovered. It does not cover recovering data from a device that has completed many erase cycles and been stored at temperature, because the margin is genuinely gone.

The right expectation is a probability, not a promise. That is not a hedge; it is the accurate description of a measurement against a threshold.