ETH-6 RMII REF_CLK direction wrong¶
| Severity | Status | Implementation |
|---|---|---|
| error | planned | mid, depends on NET-7, NET-12 |
Looks at. REF_CLK pins of MAC and PHY, PHY clock-mode strap, oscillators.
What it catches. An RMII link where both the MAC and the PHY are set to output the 50 MHz reference clock, or neither is and no oscillator feeds the net.
Why it matters. RMII times everything, both directions, from one 50 MHz ±50 ppm clock that comes from the MAC, the PHY or a separate oscillator (SNLA076 §3.1). Two outputs on the net fight; no source means no Ethernet at all. Several PHYs choose the direction with a strap that shares a pin with something else, so the direction is easy to get wrong without anyone drawing it.
Example. STM32F4 with a LAN8720A and a 25 MHz crystal on the PHY. The design intends REF_CLK Out mode (the PHY makes 50 MHz from the crystal), which needs nINTSEL strapped low; the strap is left to its internal pull-up, so the PHY is in REF_CLK In mode and waits for a 50 MHz clock that nobody drives. Its pin is nINT, an interrupt output, wired to the MCU's ETH_RMII_REF_CLK.
How to check. Find the REF_CLK net from the MAC's alternate function (NET-12) and the PHY's pin; decode the PHY's clock-mode strap (NET-7); count sources on the net (PHY out, MAC out, oscillator): exactly one.
Fix. Pick one source, strap the PHY accordingly (LAN8720A: nINTSEL low for REF_CLK Out), and write the direction on the schematic.
References. SNLA076 §3.1 (REF_CLK 50 MHz ±50 ppm, sourced by MAC or external); LAN8720A §3.7.4 and Table 3.6 (nINTSEL, REF_CLK In / Out mode), §5.3.1-5.3.2; Wikipedia, Media-independent interface "Reduced media-independent interface".