Skip to content

MEM-1 SD / eMMC CMD and DAT lines without pull-ups

Severity Status Implementation
warning runs in better_erc easy, depends on netlist, NET-5

Data it needs: graph, part classes, values, rails.

Looks at. SD socket or eMMC pins by function, resistors to a rail.

What it catches. An SD socket or eMMC whose CMD or DAT0-DAT3 (DAT0-DAT7 on 8-bit eMMC) lines have no pull-up to the card's IO rail.

Why it matters. CMD and DAT are open-drain during card identification and tri-stated whenever no card drives them: with no card inserted, between commands, and on the data lines the host does not use in 1-bit mode. Floating lines pick up noise, read as random start bits, and a DAT line floating low looks like a card stuck busy. The SD specification asks the host to pull up all of DAT0-3 even in 1-bit mode; DAT3 doubles as card detect and must not float either. Host-internal pull-ups exist on some controllers, but they are weak, firmware-dependent, and not on during the boot ROM.

Example. On B125A the micro-SD socket J1 (GCT MEM2061) connects SDMMC_CMD and SDMMC_D0-D3 straight to the STM32H7 with nothing else on the nets: each is a two-pin net. The board relied on the MCU's internal pulls; the rev B change list carries "SDIO pull-ups; test with and without". B200A got it right: 10 kΩ on CMD, D0-D3 and DET (hw_b200a.md §11).

How to check. Find the card side by pin function (CMD, DAT0-DAT7 on the socket or eMMC symbol), walk each line through series resistors, and look for a resistor to a rail (NET-5). Accept 10-100 kΩ; a host whose internal pull-ups the project declares as enough turns it into a note.

Fix. 10 kΩ (up to 47 kΩ) from CMD and every DAT line to the card's VDD (SD) or VCCQ (eMMC), placed near the socket.

References. ESP-IDF SD pull-ups (10 kΩ on CMD and DAT0-DAT3, on the card side too); SD PLS (bus pull-up resistors); Wikipedia, SD card "Transfer modes" (DAT3/CD pin).

Settings

Set them in the project file under [checks."MEM-1"], or for one run with --set MEM-1.NAME=VALUE.

Setting Default Meaning
MEM-1.min_pull_up 10000 ohm lower end of the CMD and DAT pull-up window, inside it
MEM-1.max_pull_up 100000 ohm upper end of the CMD and DAT pull-up window, inside it

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only MEM-1 reports on it.

mem-1_sd_pull_ups

The test schematic mem-1_sd_pull_ups The test schematic mem-1_sd_pull_ups

  warning    MEM-1 #1xp     eMMC U3.6 (DAT0) (/EMMC_D0) has no pull-up: open-drain during identification and tri-stated between commands, it floats
                            net /EMMC_D0, part U3, pin U3.6
                            window = 10 kΩ..100 kΩ (derived MEM-1 default)
                            fix: 10 kΩ (up to 47 kΩ) from CMD and every DAT line to the card's VDD (SD) or VCCQ (eMMC), near the socket
  warning    MEM-1 #twh     SD socket J1.8 (DAT1) (/SD_D1) has no pull-up: open-drain during identification and tri-stated between commands, it floats
                            net /SD_D1, part J1, pin J1.8
                            window = 10 kΩ..100 kΩ (derived MEM-1 default)
                            fix: 10 kΩ (up to 47 kΩ) from CMD and every DAT line to the card's VDD (SD) or VCCQ (eMMC), near the socket
  warning    MEM-1 #r5j     SD socket J1.2 (DAT3/CD) (/SD_D3) is pulled up by R4 1 kΩ, outside 10 kΩ..100 kΩ: open-drain during identification and tri-stated between commands, it floats
                            net /SD_D3, part J1, pin J1.2
                            window = 10 kΩ..100 kΩ (derived MEM-1 default)
                            fix: 10 kΩ (up to 47 kΩ) from CMD and every DAT line to the card's VDD (SD) or VCCQ (eMMC), near the socket
  warning    MEM-1 #vg4     SD socket J1.1 (DAT2) is connected to nothing: open-drain during identification and tri-stated between commands, it floats
                            part J1, pin J1.1
                            window = 10 kΩ..100 kΩ (derived MEM-1 default)
                            fix: 10 kΩ (up to 47 kΩ) from CMD and every DAT line to the card's VDD (SD) or VCCQ (eMMC), near the socket

MEM-1 also fires on the test schematics of other checks: conn-16_floating_shell.