Skip to content

SER-19 SPI slave CS without a pull-up

Severity Status Implementation
warning planned mid, depends on NET-7, NET-9

Looks at. SPI CS pins, pulls, MCU pin reset state.

What it catches. An SPI slave's CS driven by an MCU pin with no external pull-up (to the slave's supply).

Why it matters. While the host is in reset, booting or being reprogrammed, its CS pins are inputs. A floating CS lets the slave see SCK and MOSI noise as commands: a flash can receive a stray write-enable and erase; with a shared MISO a second slave answers while the boot ROM reads its own flash. The flash datasheet asks for CS to follow VCC at power-up and power-down for the same reason.

Example. A W25Q128JV as a data flash next to the boot flash of an ESP32-S3: during the ROM's flash read at boot the second flash's /CS floats and it answers, the ROM reads garbage and the chip boot-loops depending on humidity.

How to check. CS pins of SPI slaves (NET-7) whose net has no resistor to a rail and is driven by a pin that floats in reset (NET-9).

Fix. A 10-100 kΩ pull-up per CS to the slave's supply.

References. W25Q128JV §4.1, §6.5 (pull-up on /CS); Wikipedia, Serial Peripheral Interface "Multidrop configuration" (caveat on SS at initialisation); PJRC SPI (step 1, pull-up resistors).