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

W5500 with a 25 MHz KDS Crystal: Can Receive Buffers Borrow Unused Transmit Memory?

No. The W5500 has separate 16 KB receive and 16 KB transmit pools. The default allocation gives each of the eight sockets 2 KB in each direction. To enlarge one receive buffer, reallocate within the receive pool. Unused transmit memory cannot offset an oversized receive allocation. A stable 25 MHz KDS crystal, clean SPI signals and valid link do not make an overcommitted pool work.

Calculate two totals, not one

Increasing socket 0 receive memory to 8 KB while keeping the other seven at 2 KB requires 22 KB of receive memory. If only three sockets are needed, a valid receive example is 8, 4, 4, 0, 0, 0, 0 and 0 KB. Set the transmit allocation independently. The documented sizes are 0, 1, 2, 4, 8 and 16 KB: a custom 3 KB entry is not a valid way to spend the remaining space. Likewise, a 16-bit buffer offset does not mean a socket owns a 64 KB physical buffer; the W5500 maps that offset onto the assigned memory.

Validate the map before stressing the network

Keep all eight receive and transmit entries visible in initialization. Validate each programmed size and each directional total, then read back the configuration. Use zero only where the design does not need buffering in the corresponding direction. Exercise all active sockets together, increasing workload while leaving the reference and SPI clock unchanged. Record which socket and direction fill up, alongside the application service rate. If one socket passes but a multi-socket configuration fails, first make sure unused sockets did not retain their default 2 KB reservations. Once the allocation is correct, investigate flow control or the physical link separately. Treat buffer capacity and clock integrity as independent checks rather than swapping hardware to resolve a resource map.

Related selection guide: MERLIN Crystal Timing: Can a 12 pF crystal replace the 18 pF crystal on a 25 MHz W5500 board?

Resource link: https://www.mecxtal.com.cn/en/handbook/new-0785.html

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.