To understand how the MCU memory works, you have to start from a slightly strange idea: the chip never stores numbers. Memory stores electrical conditions, a high level and a low level, and everything else, digits, addresses, instructions, is a convention layered on top by readers who agree on the meaning. This page follows that idea from a single cell up through arrays, addressing and read-write timing, because those mechanics explain both the reliability of firmware and the failure modes our recovery work deals with.
A memory cell never stores a numeral; it stores a condition. In SRAM the condition is the state of a latch built from transistors, stable while powered, forgetful the instant power drops. In flash and EEPROM the condition is charge trapped on a floating gate, insulated well enough to survive years of storage, moved there by a programming voltage and removed by an erase operation. In DRAM the condition is charge on a capacitor that must be refreshed continuously, a mechanism microcontrollers mostly avoid because the refresh competes with sleep modes. Each technology trades retention against write endurance and speed, and the MCU mixes them accordingly: flash for the program, SRAM for work in progress, EEPROM for settings that must persist.
Single cells are organised into a grid. Row and column decoders take an address and select exactly one intersection, which is how an n-bit address reaches one location among 2 to the n. The schematic view in
is worth a second look for this reason: address lines enter the decoder, control lines decide read or write, and the data lines carry the level in or out. shows the same grid from the system side, where the core sees memory as a flat map of bytes with addresses, even though underneath it is grids of latches and floating gates.Addressing also explains fault behaviour that looks mysterious from outside. A stuck row makes entire blocks read identically; a leaky column shows up as intermittent bit errors that move with temperature; and an address decoder hit by radiation or ageing can alias one region onto another, which is one of the quiet ways a working-looking device stores corrupted data. When our laboratory maps such faults, the grid model is the tool that turns scattered symptoms into a single mechanical explanation, and the same model tells us which regions of a partially failed device can still yield a trustworthy image.
A read is a sense operation: the cell is connected to a comparator that decides whether the stored condition sits above or below a threshold, and the result is presented as a clean logic level regardless of how degraded the raw signal was. A write is a forcing operation: charge is driven onto or off the gate, or the latch is overwritten, and the array needs no clock beyond the control strobes. Flash adds a constraint the others lack, erase-before-write at block granularity, which is why firmware update routines read a page into RAM, modify bytes, erase the page and rewrite it. An interrupted erase-rewrite cycle is one of the ordinary ways firmware gets corrupted, long before any attacker is involved.
The cell-level view explains observations that puzzle people working only at the software level. Reading an erased flash region returns a predictable pattern, usually all ones, because the erased condition is uniform; reading a protected region may return zeros or a fault instead, depending on how the family implements its lock, which is exactly the diagnostic our secured-memory survey builds on. Endurance limits explain why a device that writes settings every second dies differently from one that writes them yearly. And the fact that data is a condition, not a numeral, is what makes non-invasive extraction conceivable at all: conditions can be observed and influenced through power, clock and interface behaviour, as the attack-method classification describes.
The architecture introduction sets this page in context, the storage-structure analysis maps the regions at system level, and the firmware instruction page explains what the stored patterns mean. When memory stops cooperating, our recovery service works from these mechanics outward rather than from guesswork inward.