Skip to main content
Visitor II
November 14, 2021
Solved

How to increase incoming packet size for LWIP?

  • November 14, 2021
  • 1 reply
  • 1276 views

Hello,

I just started with implementing LWIP in the NUCLEO H753ZI. I got the UDP server working and receiving incoming UDP data and echo back to the client. However, if the client sends anything greater than 16 bytes, my board runs into memory error and hung indefinitely.

How do I set the incoming packet size so it can accept greater than 16 bytes?

Please see the attached images for some of my ethernet config

0693W00000GXW61QAH.png0693W00000GXW5mQAH.png0693W00000GXW5cQAH.png 

0693W00000GXW29QAH.png

    This topic has been closed for replies.
    Best answer by ANguy.5

    the issue turned out to be the way I copied payload in my callback function. I used `sprintf` to copy payload which is not ideal. Use different method to copy the exact length of the payload to local buffer has fixed my problem.

    1 reply

    ANguy.5AuthorAnswer
    Visitor II
    November 14, 2021

    the issue turned out to be the way I copied payload in my callback function. I used `sprintf` to copy payload which is not ideal. Use different method to copy the exact length of the payload to local buffer has fixed my problem.