2018-12-24 02:17 AM
Dear Imen,
Thanks for your replay.
I modified my project file using your new library file(ethernetif.c)
And I was testing during two days.
But, It has a problem yet.
Previously, there was stop the ethernet in minutes.
But, there was stop the ethernet in hours about 2~5.
My application is to convert UDP to SERIAL.
UDP packets per a second cycle are approximately 25 ~ 30.
There is a PING every second at the same time.
I captured the PING result below.
And after a few hours, the response is stopped.
Merry Christmas and Happy New Year!
2018-12-27 03:02 PM
Do you use FreeRTOS, and when which settings do you have?
(Thread and stack size)
Are you sending UDP packets with netconn API?
2018-12-28 04:25 AM
Hi Joerg,
Thanks for your reply.
Yes, I use the FreeRTOS. And I use the function of socket API.
(configTOTAL_HEAP_SIZE is 128KB. and UDP_RX_TASK stack is 512)
I was setting that cache is disable.
Ethernet is stop. but other tasks are good running.
Best regards,
2018-12-28 09:08 AM
Is it possible to ran out of memory after 2-5 hours?
Print the result of the RTOS function xPortGetFreeHeapSize() to determine how many bytes are available.
You can also enable the statistics of LwIP and take a look at the peaks.