Skip to content

SER-2 SPI CS line grounded

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

Looks at. SPI pin roles, ground nets.

What it catches. An SPI slave whose chip select is tied to ground (or to a fixed low) because it is the only device on the bus.

Why it matters. Many SPI slaves use the CS edge, not just its level: the falling edge resets the command state machine and the rising edge commits a write or starts a conversion. Serial flash ignores everything until it sees CS go high to low after power-up; ADCs start or end conversions on CS; a shift-register-style DAC latches on the rising edge. With CS grounded one bit slip (a glitch on SCK at power-up) misaligns every following command and nothing resynchronises it.

Example. A W25Q128JV boot flash with /CS strapped to GND to "save a pin": the datasheet asks for a high-to-low transition of /CS after power-up before any instruction is accepted, and for /CS to track VCC during power-up and power-down. The part never answers the first Read JEDEC ID.

How to check. A pin with an SPI chip-select role (NET-7: names like CS, ~CS, SS, NSS, CSB) on a net that is a ground or has only a resistor to ground.

Fix. Drive CS from a GPIO (or the peripheral's NSS), with a pull-up (SER-19). If a slave really works with CS tied low, its datasheet says so and the check can be waived for that part.

References. W25Q128JV §4.1 (Chip Select), §6.5 (Write Protection); Wikipedia, Serial Peripheral Interface "No slave select".