Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Why does a W5500 on external 25 MHz read its version after warm reset but fail at cold boot?

A W5500 Ethernet board originally used a two-terminal 25 MHz crystal. Its revision feeds XI/CLKIN from an active source shared with other logic. The version register reads successfully after pressing reset, but a cold boot sometimes returns all ones. Lowering the SPI rate or replacing the clock part may be tempting. First establish who supplies the reference on a cold boot, when a complete 25 MHz waveform appears and whether W5500 reset has already been released.

An external clock changes the pin connections and the readiness path

The WIZnet W5500 v1.1.0 pin table describes two arrangements. A passive crystal connects between XI and XO with a circuit designed for that crystal. In external clock mode, a single-ended 25 MHz signal drives pin 30, XI/CLKIN. The datasheet specifies a 3.3 V clock and leaves pin 31, XO, open. If one PCB supports both assemblies, specify the fitted series links, capacitors and jumpers for each. Check that components in the old oscillator loop no longer connect the external-clock circuit to XO. Where another module supplies XI/CLKIN, verify the waveform, voltage domain and output type at the receiver. A 3.3 V supply label alone does not establish that the output is enabled and meets the input conditions. WIZnet W5500 v1.1.0, pin table and Figure 3 WIZnet W5500 reference schematics

The crystal table from the original design has a different scope. Section 5.5.3 lists ±30 ppm at 25 °C, 18 pF load capacitance and maximum ageing of ±3 ppm per year as crystal parameters. For an active source, obtain the output specification, the total frequency error over required operating conditions and the supply ramp used to characterise startup. The crystal load rating does not specify the digital input load. Check each capacitor on the reference schematic against the actual population option. W5500 v1.1.0 crystal parameters and pin description

The shared input also changes clock ownership. The old crystal used the W5500 oscillator circuit. The revision may have to wait for the MCU to enable a clock output or for a generator's enable, rail and output to settle. Draw three paths, covering source power and enable, W5500 power and RSTn, and the start of SPI. Check whether firmware waits for a W5500 response before configuring the clock that W5500 needs. If those steps wait on each other, SPI retries only extend the stall. Correct the ownership or initialisation order.

The low reset pulse and internal PLL lock are separate intervals

Section 5.5.1 gives a minimum RSTn low pulse of 500 µs and a maximum of 1 ms from reset release to internal PLL lock. Keep those intervals separate from the external source's readiness time, which depends on the oscillator and power circuit. A conservative bring-up policy can hold reset low for an additional interval after a stable clock appears at the receiver, then allow the specified time for PLL lock. That added wait is part of the system qualification strategy. Verify the source startup limit from the supplier and assembled hardware. WIZnet W5500 v1.1.0, section 5.5.1 Reset Timing

Use assumed board figures for a worked budget. Set the supply reference event to time zero and suppose the candidate supplies a valid clock to W5500 after 3.00 ms in the slowest cold condition. Hold RSTn low for at least another 0.50 ms and release at 3.50 ms or later. Allow 1.00 ms for lock, and schedule the first probe at or after 4.50 ms. If the system must read the version successfully by 4.00 ms, this budget misses by 0.50 ms before including the SPI transaction itself or host scheduling. Compare startup bounds for the supply paths or schedule the clock ahead of the network driver. Replace the example numbers with actual board timing. They are not universal specifications for an external clock used with the W5500.

Allow for the transaction itself. At 1 MHz SPI, a continuous read with a 16-bit address, eight-bit control field and one eight-bit data byte takes 32 SCLK periods, or about 32 µs. If 4 ms means receipt of the byte, the worked example requires at least 4.532 ms plus software and select overhead. Record both select assertion and data arrival. A deadline checked only at the start of the read misses that interval. W5500 v1.1.0 SPI frame fields

Use the same measurement points for cold boot and warm reset

Capture XI/CLKIN at the W5500, RSTn and the supply on one time base. Include the first SCSn assertion if needed. The first visible pulse can be incomplete near the input threshold, so define when frequency, amplitude and continuous cycles qualify as ready. Reproduce the problem after a full discharge, then compare it to a reset while powered. If the 25 MHz stays present throughout a warm reset and only appears after reset release on a cold boot, the traces support investigating startup order. A public W5500 case reports reset timeouts despite seeing a 25 MHz signal, which illustrates why reset and SPI evidence also matter. Public W5500 reset timeout discussion

Start communications verification with common register VERSIONR at address 0x0039, whose W5500 value is 0x04. This confirms an SPI read succeeded at that instant. If the value reads reliably but the physical link is down, follow the PHY configuration, magnetics, cable and link state. If the read is unstable, check SPI mode, chip-select timing, address and control bytes, and MISO against a known-good board. Record cold boot, host-only reset and W5500-only reset independently. These conditions can differ in who owns the clock and whether it was interrupted. W5500 v1.1.0, SPI framing and VERSIONR

Preserve conditions that reliably exercise the problem. Try fast power-up, slow power-up and a short interruption on the same board, recording the supply and discharge conditions. If the clock source and controller use different rails, preserve both voltage traces. On a failed run, verify the reset level and duration alongside reference clock continuity at the receiver. A manual reset from the fixture should not mask a cold-start defect.

Include host standby on a shared-clock board. If the link must remain up, check whether the clock provider disables its output in standby. With separate rails, check the allowed input conditions when one side turns off while the other still drives the line. The purchase qualification should list the 25 MHz source's output level, tested temperature and supply range, maximum startup time and default output enable state. Include the fitted configuration and cold-start traces. Future same-frequency parts can then be checked against the same reset sequence instead of accepting a successful second boot.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.