ETH-3 MDIO without a pull-up¶
| Severity | Status | Implementation |
|---|---|---|
| error | runs in better_erc | easy, depends on NET-5 |
Data it needs: graph, part classes, values, rails.
Looks at. The MDIO net (pin names), resistors to rails.
What it catches. An MDIO net with no resistor to a rail.
Why it matters. MDIO (IEEE 802.3 Clause 22) is a shared bidirectional line that both the MAC and the PHY release during the turnaround and between frames; the idle state and the 32-bit preamble of ones come from the pull-up alone. Without it the line floats during turnaround, reads garbage, and some PHYs ignore frames whose preamble is not clean. The DP83848 asks for 1.5 kΩ; the KSZ9031 says the pin "requires an external pull-up" and specifies its fastest MDC with 1.0 kΩ.
Example. An STM32H7 to KSZ9031 board relying on the MCU's internal ~40 kΩ pull-up: register reads return 0xFFFF on one boot and plausible values on the next, and the link-up interrupt works only because the firmware retries.
How to check. Find the net on a pin named MDIO (PHY or MAC side) and look for a resistor to a rail (NET-5); value outside 1-10 kΩ is worth a note.
Fix. One 1.5 kΩ (1-4.7 kΩ) pull-up to the PHY's IO rail per MDIO bus.
References. DP83848C §4.3 and §6.4.3 (1.5 kΩ pull-up); KSZ9031 pin 37 description, §3.10 (MIIM, Clause 22.2.4); DP83867 §6.6 (MDIO pulled high for the 32-bit preamble).
Settings¶
Set them in the project file under [checks."ETH-3"], or for one run with --set ETH-3.NAME=VALUE.
| Setting | Default | Meaning |
|---|---|---|
ETH-3.min_pull_up |
1000 ohm | lower end of the MDIO pull-up window, inside it |
ETH-3.max_pull_up |
10000 ohm | upper end of the MDIO pull-up window, inside it |
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only ETH-3 reports on it.
eth-3_mdio_pull_up¶
error ETH-3 #x9m MDIO /MDIO1 (U1.3 (PA2/ETH_MDIO) and U2.3 (MDIO)) has no pull-up: the idle level and the preamble of ones come from the pull-up alone; the line floats in turnaround
net /MDIO1, pin U1.3, pin U2.3
window = 1 kΩ..10 kΩ (derived ETH-3 default)
fix: one 1.5 kΩ (1-4.7 kΩ) pull-up to the PHY's IO rail per MDIO bus
error ETH-3 #dxv MDIO /MDIO3 (U5.3 (PA2/ETH_MDIO) and U6.3 (MDIO)) is pulled up by R3 47 kΩ, outside 1 kΩ..10 kΩ: the idle level and the preamble of ones come from the pull-up alone; the line floats in turnaround
net /MDIO3, part R3, pin U5.3, pin U6.3
window = 1 kΩ..10 kΩ (derived ETH-3 default)
fix: one 1.5 kΩ (1-4.7 kΩ) pull-up to the PHY's IO rail per MDIO bus