This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48L952: LWIP and IP fragmentation issue

Part Number: RM48L952

Hi,

I'm using the HALCoGen Ethernet Driver and lwIP Integration Demonstration (lwIP Demo v03) for RM48 and I tested the LWIP with pings of several size. When I increase size so much that ping needs 2 packets (size > 1472 bytes) the ICMP echo fails, while it works without the need of IP fragmentation. I attach my lwipopts.h file for the configurations.

Are there other settings to change? I'm wondering if the problem can be due to a bug in the ip fragmentation or in the following settings:

PBUF_POOL_SIZE                  96

PBUF_POOL_BUFSIZE               256

TCP_MSS                         1500

TCP_WND                         4096

Why the example sets those values instead of the default ones?

Thanks1348.lwipopts.h

  • Hello Smeet,

    PBUF_POOL_SIZE is the total number of pbufs of type PBUF_POOL. PBUF_POOL_BUFSIZE should be set according to the average size of packets to be received. 96*256 is much larger than your packet size (1472). Does it work if you use smaller packet size?