Use Variable Data Length Mode for a single transaction containing three consecutive data bytes. WIZnet defines OM=00 as VDM. The other codes select fixed data lengths of one, two or four bytes only. Those lengths exclude the two address bytes and the control byte. If an SPI driver change breaks the read on a board with a 25 MHz KDS crystal, decode the control field and chip-select boundaries before changing the clock.
Count the data phase, not the entire transaction
A three-byte VDM read contains two address bytes, one control byte and three data bytes. SCSn remains asserted through the transaction and releases after the final data byte. Six bytes on the wire does not mean six data bytes. With OM set to binary 10 for fixed two-byte operation, requesting a three-byte DMA receive does not make the third byte part of that valid frame. If fixed length is mandatory, split the access only where the relevant registers allow it; do not assume reading an extra fourth byte has no consequence.
Capture what the controller actually sends
Choose a documented range that allows sequential reads, and record SCSn, SCLK, MOSI and MISO. Mark the address, control field, OM bits and data on one capture. Check that a DMA split or byte interrupt does not release chip select early. Establish a valid result at unchanged speed before testing the intended workload. If changing the framing alone restores the data, fix the transaction builder; if a correctly formed frame still fails, measure signal levels, edges and SPI rate separately. Record both data length and complete on-wire length so that another driver cannot interpret “three-byte read” as a different operation.
Related selection guide: MERLIN Crystal Timing: Mapping MCU, SPI and 25 MHz W5500 clock readings to their actual sources
Resource link: https://www.mecxtal.com.cn/en/handbook/w5500-host-50mhz-phy-25mhz-purchase.html
