During porting of ST fork's netxduo, ping tests occasionally failed, causing DMA errors in the ETH driver. The issue stemmed from packet length miscalculation in driver functions, where the append pointer was not synchronized with the prepend pointer, leading to negative lengths. A temporary fix adjusts HALETHRxAllocateCallback to update the append pointer and modifies the send function to handle zero-length packets.
NetX Duo packet length consistency issue