STM32F417 LWIP - UDP packets are being truncated
I have a custom board with an STM32F417 MCU. It needs to communicate with a PC over Ethernet (UDP).
I have used Cube MX 6.5.0 to set up my project and have enabled LWIP. The board is now sending/receiving UDP packets with the PC.
However when the PC sends a UDP packet with a payload of 1007 bytes, the packet becomes truncated. Only 958 bytes of data appear in the pbuf in the udp_receive_callback .
It appears that there is a problem reconstructing the packet payload from the pbuf chain. I am calling pbuf_copy_partial(p, buff, p->tot_len, 0) in the udp_receive_callback function.
Any suggestions regarding this issue? Has anyone successfully received large UDP packets using a Cube MX 6.5.0 generated project?
Thanks
