Flash writes are slow, require an erase first and wear out over time. Each flash cell typically survives 10,000 to 100,000 write/erase cycles. The scaling problem is not simply transistor size: flash needs an oxide about 8 nm to 10 nm thick to hold charge, and writing through it takes about 10 V. That is far above the below-1 V core voltage of a 22 nm logic process. Generating the higher voltage requires charge pumps and special high-voltage transistors that do not shrink along with the logic.
Adding flash to a CMOS logic process also requires 9 to 18 extra masks at 28 nm, according to figures reported by Semiconductor Engineering. Flash does not integrate well with FinFET transistors, so embedded flash is widely available down to 28 nm but rare below it. MRAM can be built with planar, FD-SOI and FinFET CMOS processes, requires about three extra masks, and uses a write voltage close to normal logic levels.
An MRAM bit is stored in a magnetic tunnel junction (MTJ): two ferromagnetic layers, usually cobalt-iron-boron alloy (CoFeB), separated by a magnesium oxide (MgO) barrier about 1 nm thick. The reference layer’s magnetization is fixed during manufacturing; the free layer can point in the same direction or the opposite direction. These parallel and antiparallel states remain stable without power.
Reading uses tunnel magnetoresistance (TMR). Electrons pass through the thin barrier more easily when the layers are parallel; resistance in the antiparallel state is typically two to three times higher. A sense amplifier compares the cell current with a reference to produce a 1 or 0. Because the difference is small, MRAM designs typically use error-correcting code (ECC) on every read.
Most embedded MRAM uses spin-transfer torque (STT) to write data. A large current through the junction spin-polarizes electrons, which transfer angular momentum to the free layer and set its magnetization. Reversing the current flips the bit. The cell consists of one access transistor and one MTJ.
Embedded MRAM is now offered at 28 nm, 22 nm and 16 nm. Renesas builds its RA8P1 microcontrollers on TSMC's 22 nm process with up to 1 MB of MRAM. NXP has announced that its S32K5 automotive microcontrollers use MRAM on a 16 nm FinFET process.
MRAM’s magnetic layers do not wear out through charge storage or movement of atoms. Everspin’s EMxxxLX Industrial STT-MRAM specifies unlimited read, write and erase operations for the supported life of the product, with a minimum of 10 years of retention. TSMC specifies one million cycles for its 16 nm embedded MRAM. The write current stresses the thin MgO barrier, requiring designers to balance endurance and retention at high temperature. TSMC's 16 nm FinFET MRAM is specified for one million cycles and 20-year retention at 150°C—10 times the endurance of flash.
MRAM is also faster than flash. TSMC reports average write pulses slightly over 30 ns and 6 ns read times for a 22 nm design tuned for speed. There is no erase step. NXP says its 16 nm MRAM can update 20 MB of code in about 3 seconds, compared with about 1 minute for flash.
The differences affect firmware. A flash driver erases a sector, waits and then programs it page by page. An MRAM driver can overwrite data in place, including a single word without erasing and rewriting neighboring data. That speeds over-the-air updates and production-line programming. For data logging, MRAM lets each record go directly to its final address in microseconds, reducing the time—and corresponding likelihood—that a power failure will cause data loss. Flash systems, by contrast, buffer records in RAM, manage sector erases and use wear leveling; a power failure during a long erase can corrupt data.
Endurance still needs to be considered in application design. An energy meter that writes its running total to one fixed address every second would exceed one million cycles in under 12 days. Rotating writes across 1,000 addresses would give the same memory an estimated life of about 32 years. Writing once an hour would allow one million cycles to last more than 100 years.
Before choosing MRAM, designers should check three specifications: magnetic immunity, retention at operating temperature and solder reflow characteristics. A strong external magnetic field can disturb an MTJ. TSMC reports ten-year immunity above 1,100 Oe at 25°C for its 22 nm MRAM; designers should compare that rating with motors, magnets and large inductors near the board.
Retention should be assessed at the maximum operating temperature, not only at room temperature. For solder reflow, data programmed before assembly must withstand the oven. TSMC's 22 nm MRAM retains data through six reflow cycles, but its speed-tuned variant does not.
For STT-MRAM, Table 1 lists trapped electrical charge as the storage mechanism for embedded NOR flash and the free layer’s magnetization direction for MRAM. Flash requires sector erasure before writing, takes microseconds to program and milliseconds to erase a sector, and uses about 10 V or more from charge pumps. STT-MRAM needs no erase, uses a write pulse of about 30 ns and operates close to logic supply levels. The table gives endurance as 10⁴ to 10⁵ cycles for flash and 10⁶ to unlimited cycles for STT-MRAM; typical data retention is 10 to 20 years for both. It lists 9 to 18 extra masks at 28 nm for flash and about three for MRAM. Flash is sensitive to oxide wear and charge leakage, while MRAM is sensitive to strong magnetic fields and high temperature.
MRAM avoids the high voltages and extra masks that have limited embedded flash below 28 nm, while offering fast writes without an erase step and higher endurance. Designers still need to check endurance, magnetic immunity, retention at temperature and solder reflow ratings.

