Skip to content

MEM-4 SPI / QSPI flash WP#, HOLD# or RESET# floating

Severity Status Implementation
error planned mid, depends on NET-7

Looks at. Flash pin functions and internal pulls, host IO2/IO3 use.

What it catches. A serial NOR flash (W25Q, MX25L, IS25LP, BY25Q class) whose /WP (IO2), /HOLD (IO3) or /RESET pin is unconnected, or goes only to a host pin that is not driven at power-up.

Why it matters. /HOLD low while /CS is low pauses the device: its output goes high-impedance and clock and data are ignored, so a floating /HOLD that drifts low makes reads return garbage at random. /WP low together with the status register's protect bits locks writes. In quad mode the two pins are data lines IO2/IO3 and the host drives them, but only during quad transfers: in the single-bit phase of the boot ROM, or with a part ordered with the Quad Enable bit cleared, they are /WP and /HOLD again and float. Whether a floating pin matters depends on the exact part: on the W25Q128JV the "IQ" ordering code ships with QE = 1 (no /HOLD function), the "IM" code with QE = 0 (/HOLD active); the dedicated /RESET pin of the SOIC-16 and TFBGA packages has an internal pull-up and may float.

Example. A board reads a W25Q128JVSIQ over a plain STM32 SPI (standard SPI, IO2/IO3 not connected): it works, since QE = 1 disables /HOLD. A second source substitutes the W25Q128JVSIM, whose QE = 0 makes /HOLD active; the floating pin now pauses the flash whenever it drifts low, and the bug shows only on boards from that reel.

How to check. For each flash, the /WP, /HOLD and /RESET pins (by function or by pin name) must reach a rail through a resistor, be tied to the rail, or reach a host pin that is a quad data line or a GPIO with a defined level at reset. The pin model (NET-7) supplies the internal pulls, so a /RESET with an internal pull-up is not flagged.

Fix. 10 kΩ pull-ups on /WP and /HOLD to the flash VCC even when they are also IO2/IO3 to a quad host, or tie them to VCC in single-bit designs; /RESET to VCC or a reset GPIO. The /CS pull-up the flash wants at power-up is SER-19.

References. W25Q128JV §4.3 (/WP), §4.4 (/HOLD), §4.6 and §6.4 (/RESET, internal pull-up), §7.1.4 (Quad Enable, IQ vs IM ordering codes), §4.1 (/CS must track VCC at power-up); RP2350 HW design §3.1 (QSPI flash wired directly, the QSPI_SS pull-up).