2021-11-14 12:02 PM
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
Solved! Go to Solution.
2021-11-14 02:47 PM
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.
2021-11-14 02:47 PM
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.