How to increase incoming packet size for LWIP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Labels:
-
Ethernet
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-14 2: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-14 2: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.
