cancel
Showing results for 
Search instead for 
Did you mean: 

How to increase incoming packet size for LWIP?

ANguy.5
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
ANguy.5
Associate II

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.

View solution in original post

1 REPLY 1
ANguy.5
Associate II

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.