Skip to content

MEM-5 SD card detect wired to the wrong pins

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

Looks at. The socket's detect switch circuit (pin roles), resistors.

What it catches. A card-detect net wired against the socket's real switch: to the shell instead of the switch contact, a detect contact tied to ground on a socket whose switch closes to the shell (or to VDD), or the normally-open logic assumed on a normally-closed switch.

Why it matters. Micro-SD sockets implement detect in several ways: a switch between two dedicated pins, a contact that closes against the grounded shell, normally open or normally closed. The generic library symbol (two DET pins and a shield) hides which one the footprint really has. Wired against the socket, the input reads the same with and without a card, and firmware either never mounts the card or keeps polling a card that is not there.

Example. On B125A the socket J1 is a GCT MEM2061-01 ("with switch, normally closed"): its drawing shows the card-detect contact closing to the grounded shell with no card and opening when one is inserted. The schematic used KiCad's generic Micro_SD_Card_Det2 symbol: DET_A (pin 10) to PG4 with a 10 kΩ pull-up, DET_B (pin 9) and the shield to GND. The rev B change list moves it: "uSD card detect goes from both side pins to the shell, not to GND".

How to check. From the socket's pin data (NET-7, filled from its drawing): which pins form the switch, to what it closes, NO or NC. Then the detect net must have a pull to the logic rail, reach an MCU input, and not be tied to the switch's own reference.

Fix. Wire per the socket's switch circuit, pull the detect contact up to the IO rail, and write down the polarity (low = card present or absent) on the schematic for the firmware.

References. MEM2061 drawing ("Card Detect Switch Circuit", ordering code 01 = with switch, normally closed); B125 rev B change list; Wikipedia, SD card "Transfer modes" (CD by DAT3 as the alternative).