Check MEF mode and alignment between Ethernet frames. In the LAN7800 USB Bulk IN path, Microchip specifies that the next frame's RX Command A starts on a four-byte boundary. If another frame follows, the current frame can be padded by up to three bytes. Those bytes travel over USB but are not part of the Ethernet frame length reported in RX Command A. If the first frame is valid and the second header is two bytes off, inspect the parser before changing the 25 MHz KDS reference.
Compute the next boundary explicitly
Suppose the current record occupies 78 bytes including its command header, and another record follows. The next four-byte boundary is 80, so skip two pad bytes before decoding the next header. Do not append them to the previous frame's payload. The last frame in the transfer does not get this interframe padding. Also, large Ethernet frames can span USB packets even with aggregation disabled, so a USB packet boundary is not in itself an Ethernet frame boundary.
Compare aligned and unaligned records
With the same board and USB speed, capture a single frame and a transfer containing multiple Ethernet frames. Include one record that ends on a four-byte boundary and one intermediate record that needs padding. Log the command length, start offset, bytes seen by the host and transfer termination. If only the second frame after a padded record is misread, fix aggregate parsing first. If both formats fail or the USB connection drops, investigate power, the physical connection and the 25 MHz reference independently. This keeps a deterministic byte-offset fault separate from oscillator selection.
Related selection guide: MERLIN Crystal Timing: Can a LAN7800 25 MHz crystal be replaced by 24 MHz just because the register lists it?
Resource link: https://www.mecxtal.com.cn/en/handbook/new-0845.html
