Table of Contents

Choosing SPI NOR Flash for Boot Memory

SOIC-style memory on a controller PCB beside a larger processor.

Selecting an SPI NOR flash for boot memory comes down to one hard gate: can your exact processor’s Boot ROM read the initial boot image reliably at power-up—before application firmware can reconfigure bus width, address mode, or timing—and can purchasing preserve every boot-critical detail in the approved manufacturer part number (MPN)?

Selecting flash by nominal density, peak clock rate, and package footprint alone can overlook requirements that determine whether the system boots. A device that operates reliably as secondary data storage can prevent a system from starting if its power-up state, supply rail, addressing behavior, or register layout does not match what the immutable Boot ROM expects.

Start with the Processor Boot Requirements

Before comparing flash densities or vendor catalogs, review the boot chapter of your exact processor or SoC reference manual. The Boot ROM is fixed in silicon and dictates the exact command sequence issued when the processor starts.

Boot ROM behavior varies significantly across processor families:

  • Minimal fixed-command probing: In the Raspberry Pi RP2040 hardware design guide, the Boot ROM initially probes external flash using the standard 03h read command with 24-bit addressing at roughly 1 MHz. A second-stage bootloader stored in flash then configures faster Execute-in-Place (XIP) modes.
  • SFDP discovery with explicit revision limits: The Microchip SAM9X7 QSPI boot documentation describes a ROM that issues a software reset and reads the Serial Flash Discoverable Parameters (SFDP) table, supporting specific JESD216, JESD216A, and JESD216B revisions while handling Quad Enable (QE) procedures and fallbacks.
  • Configurable FlexSPI boot with SFDP detection: The NXP RT600 boot application note (AN12773) details how its FlexSPI boot path uses SFDP device detection alongside flash configuration blocks.

Never assume that because a flash device contains an SFDP table, any MCU can parse it or boot from it. Verify the exact JESD216 revision, required boot header format, and fallback commands against your processor’s documentation and silicon errata.

Boot Memory Selection Matrix

Selection QuestionEvidence to CheckRejection or Next Decision
Does the Boot ROM support the flash’s initial read command and SFDP revision?Processor Boot ROM chapter, silicon errata, and flash SFDP table revisionReject if the ROM requires a fixed opcode or SFDP revision the flash does not expose at power-up.
Do supply ranges, input limits, and logic thresholds align on both devices?Processor boot-bank VDDIO spec, flash VCC range, and DC/timing specsReject any unverified voltage mismatch; qualify any level translator with DC and timing validation.
Does each boot stage use a supported addressing mode for its target region?ROM boot-region offset, later firmware partition map, and flash addressing specKeep the ROM boot region within 24-bit space if the ROM lacks 4-byte support, and verify how later stages access addresses above 16 MiB.
Does the flash’s QE mechanism and initial protocol match the ROM setup sequence?ROM protocol/setup sequence and flash QE register location/default stateReject if the ROM cannot establish its required bus protocol or execute the flash’s QE procedure when Quad mode is needed.
Is the exact ordering code locked for package, temperature, packing, and setup?Full MPN decoding table in the flash datasheet and production programming specLock the full MPN on the BOM and record any required production register programming separately.
Conceptual checklist with five gates: Boot ROM first read, electrical and package fit, capacity and addressing, reset qualification, and approval of the full ordering code.
Conceptual checklist: qualify the processor first read, physical fit, reachable capacity and reset behavior before approving the complete flash ordering code.

Boot Voltage and I/O Power Alignment

Voltage compatibility is a binary filter in SPI NOR flash boot memory selection. External NOR flash devices are manufactured in different supply-voltage families, and the chosen part must align with the exact I/O bank powering the processor’s boot interface.

Verify operating voltage ranges, absolute maximum ratings, input limits, and logic-level thresholds on both the processor and the flash, including power-up and power-down sequencing. If a level translator is considered between mismatched rails, qualify it with full DC and high-speed timing validation rather than assuming transparent operation.

Power-up timing matters equally. The flash supply rail and device readiness must be met before the processor’s first flash access. If the flash has not completed its internal power-up sequence when the Boot ROM asserts chip select and clocks the first command, the ROM may read invalid data and halt or enter a recovery path.

Sizing Actual Image Capacity and Update Layout

Do not size boot flash solely from the compiled .bin file of an initial firmware build. Convert density accurately and budget for every partition across the product lifecycle.

Standard binary capacity conversions for NOR flash are:

  • 24-bit address space limit: 224 = 16,777,216 bytes = 16 MiB
  • 128 Mbit nominal density: commonly equals 16 MiB
  • 256 Mbit nominal density: commonly equals 32 MiB

Hypothetical Static A/B Firmware Capacity Example

Assume a hypothetical embedded system using a 64 KiB uniform erase block size. In the table below, the allocation column reflects chosen allocations including deliberate engineering margin, aligned to 64 KiB—not minimal rounding (for instance, 192 KiB is given 256 KiB and 5.2 MiB is given 5.5 MiB for growth headroom). In practice, both partition start offsets and partition lengths must align to erase-block boundaries so erasing one region never disturbs an adjacent one.

PartitionRaw RequirementChosen Allocation Including Margin (Aligned to 64 KiB)Purpose
Bootloader & boot header192 KiB256 KiB (0.25 MiB)Stage-1/2 loader, signatures, flash config block
Firmware Slot A5.2 MiB5.5 MiBPrimary active application image
Firmware Slot B5.2 MiB5.5 MiBStaging slot for OTA or field updates
Boot metadata & swap state64 KiB128 KiB (0.125 MiB)Dual-copy state flags, version counters, CRC
Recovery / factory fallback1.8 MiB2.0 MiBMinimal recovery image if both slots fail
Persistent config & logs1.0 MiB1.0 MiBCalibration data, device keys, crash logs
Total Allocated—14.375 MiBFits in 128 Mbit (16 MiB) with 1.625 MiB free

Two architectural points govern A/B sizing and addressing:

  1. A/B slots alone do not guarantee atomic updates or rollback. Define the boot and update protocol, erase-aligned metadata, version handling, and recovery logic; validate active-image protection and recovery under interrupted writes.
  2. Separate the Boot ROM region from later firmware access. If future features expand Slot A and Slot B to 7.0 MiB each while all other allocations stay unchanged, the total rises to 17.375 MiB, exceeding 128 Mbit; a 256 Mbit (32 MiB) device would provide enough capacity for this example. However, a 32 MiB flash does not automatically require the Boot ROM itself to support 4-byte addressing: if the Boot ROM reads a compatible low-address boot region within the first 16 MiB, later validated bootloader or application firmware can handle 4-byte access to higher addresses. Verify the addressing method used by each boot stage for the exact regions it reads.
Conceptual 32 MiB address map showing that 24-bit byte addressing covers 16 MiB, while accessing higher offsets needs a compatible device-specific method.
Conceptual example: 24-bit byte addressing spans 16 MiB. Reaching higher offsets on a 32 MiB device needs a compatible method, which may be used by firmware after the ROM boot stage.

Initial Read Command, Bus Width, QE State, and 3/4-Byte Addressing

When the Boot ROM asserts chip select, four protocol and state details determine whether the first read succeeds:

  • Initial read command and bus width: Depending on the processor, the Boot ROM may start in single-SPI (1-1-1) mode or attempt a faster mode based on strapping pins, eFuses, or SFDP. For a detailed breakdown of how 1-1-1, 1-1-4, 1-4-4, and QPI modes differ at the pin and command level, see our guide on SPI NOR single, dual, quad, and QPI modes.
  • Quad Enable (QE) vs. QPI: QE is not QPI. Where specified by the device, QE enables the shared Quad I/O pins without disabling standard single-SPI commands. Check the exact pin multiplexing and ROM setup sequence: some ROMs program QE during discovery, as in the SAM9X7 example above.
  • 3-byte vs. 4-byte addressing: On the Infineon FL-L family, dedicated 4-byte opcodes carry four address bytes. This differs from switching the device address mode, whose power-up state follows nonvolatile configuration. Match each command to its expected address length.
  • Warm reset and continuous-read recovery: A processor-only warm reset can leave a still-powered flash in an unexpected runtime state. In the RP2040 hardware design guide, Raspberry Pi notes that a processor-only reset can leave powered flash in continuous-read mode and that ROM exit sequences are best effort. For the FL-L family, software reset reloads configured nonvolatile defaults, which need not be factory defaults; continuous-read exit may be required before reset commands work.

Verify reset wiring against the package’s pin multiplexing, voltage levels and timing. A supervisor must not contend with a shared Quad data line.

Logic-analyzer leads attached to a development board test header.
Illustrative test setup: capture the first read to compare the opcode, address phase and data transfer with the boot requirements.

Package and Full Ordering Code Discipline

Engineering sign-off is incomplete until the full ordering part number (OPN / MPN) is locked on the bill of materials. Base family names omit critical mechanical, environmental, and packing details.

For example, the exact ordering code S25FL256LAGNFI010 specifies a 256 Mbit, 2.7–3.6 V device rated for -40 °C to +85 °C in a PG-WSON-8 package supplied in tray. Purchasing must preserve the exact package, temperature grade, and packing format specified by the approved MPN, while engineering separately records any production-programmed register settings required for boot—never assuming a part-number suffix alters nonvolatile defaults unless the manufacturer explicitly documents that option.

When evaluating a candidate alternate across vendors, verify the exact commands, status registers, reset behavior, and SFDP fields your Boot ROM and firmware actually rely on rather than assuming identical register maps. Our GD25Q vs. W25Q replacement checklist outlines the practical register and timing checks needed when qualifying a second source.

Reset and First-Read Qualification Plan

This article is a document-based selection guide, not a measured compatibility report. Before releasing a boot flash MPN to production, execute a documented bench qualification plan on your target hardware:

  1. Cold power-on boot: Verify clean first-read execution across the specified supply-voltage and temperature corners for your system.
  2. Processor-only warm reset: Trigger watchdog, debugger, and external reset events while the flash remains powered in its active runtime mode (such as XIP, Quad, or 4-byte mode) to confirm the intended recovery sequence restores a valid first read.
  3. Power-up and reset-recovery timing: Probe VCC ramp, reset release, and the first CS# falling edge against the exact flash datasheet’s power-up-to-CS/read timing and reset-recovery timing—checking these separately from program/erase readiness delays.
  4. SFDP and register audit: Read out the SFDP table and factory default nonvolatile registers on production-representative samples of the exact approved MPN to confirm they match the datasheet and Boot ROM expectations.
  5. Controlled power-cycle and update testing: Validate A/B update rollback and metadata integrity under a documented, controlled power-sequencing test plan rather than ad-hoc power pulls.
Reset pushbutton and USB connection on an embedded development board.
Illustrative hardware scene: test cold starts and warm resets because resetting the controller may leave the flash in a different state.

Turning Selection into Sourcing

Once engineering has validated the boot path, hand purchasing a complete technical specification rather than a generic density description. Include the following details in your RFQ or BOM release:

  • Exact processor/SoC part number and silicon revision
  • Full approved flash MPN including all suffix characters
  • Target quantity and BOM line-item usage
  • Operating voltage rail
  • Required density (e.g., 128 Mbit / 16 MiB or 256 Mbit / 32 MiB)
  • Package footprint, temperature grade, and packing format (tape & reel vs. tray)
  • Boot-mode constraints and any separately documented production register settings
  • Delivery schedule and target lead-time window
  • Substitution policy (strictly no alternates, or engineering-approved alternates only)
Carrier tape with packaged memory-style ICs beside a receiving document.
Illustrative sourcing scene: provide the full ordering code, quantity and required package and temperature grade with the inquiry.

To compare densities, voltages, and packages, browse our NOR Flash category. When your approved MPN and boot constraints are ready for quoting, submit your BOM and specifications through our direct inquiry page.

Four AI-generated illustrative hardware scenes are reused from a previous ApexComponent article. Two original conceptual diagrams are based on the cited documentation and address arithmetic.