Hi
I am working on an embedded application in which I am sending small TCP packets to a web server every 5
minutes. This is running fine for 4-5 days, but then it suddenly stops working. The application is running on
a Tiva C Series TM4C1294XL LaunchPad with lwIP-1.4.1 as supplied by Texas Instruments in the TivaWare
Library. My application is based on the "enet_lwip" example.
The Tiva-board is connected to an Ethernet router along with another computer that saves UART output from the
microcontroller (including lwIP stats) and logs Ethernet traffic with Wireshark.
Here is what I found in the log files:
Wireshark: The application appear to stop after HTTP POST, without getting HTTP/OK from the server as it
usually does. After about 30 seconds thereafter, the application sends a HTTP FIN/ACK. After this, the router
is unable to receive information from the Tiva-board doing ARPs towards its IP address.
lwIP: In the status log I have found that the fields "max" and "err" in the "MEM UDP_PCB" section both starts
out with small values like 0, 1 or 2. Around the same time as the Wireshark log indicates problems, these
fields are now both 4294967295, which is equal to 2^32-1.
So, I suspect that some kind of overflow/underflow is going on in the memory allocated by lwIP running on the
microcontroller. I do not know what "MEM UDP_PCB" is, but it must be memory related and have something to do
with UDP, I suppose.... lwIP does not seem to be well documented so I am stuck.
I really appreciate any help or advice that could lead me to a solution.
Thanks in advance :-)