AnsweredAssumed Answered

Problem with the KSDK lwip http server example

Question asked by Vincent Doyon on Mar 3, 2015
Latest reply on Apr 20, 2015 by cmheia

Hi,

 

I have a problem when I try to quickly refresh the HTTP server page with my browser. When I refresh few times the web page, there is no problem at all, everything is working just fine. But when the refresh rate appear to be too high, then the web server just stop.

 

I'm using the FRDM-K64F with the lwip_http_server_demo provided for my board in the KSDK 1.1.0 with no modification at all. I use Kinetis Design Studio 2.0.0. I tried with the FreeRTOS and the MQX, but the same problem is still there. I tried it with BareMetal and it work just fine.

 

I activated the debug traces and when the problem is active, then the trace shows : memp_malloc: out of memory in pool TCPIP_MSG_INPKT. So I tried to increase the MEMP_NUM_TCPIP_MSG_INPKT from 8 to 16.

 

But the problem change to : memp_malloc: out of memory in pool PBUF_POOL. So I tried to increase the PBUF_POOL_SIZE from 10 to 20, but it return to : memp_malloc: out of memory in pool TCPIP_MSG_INPKT.

 

I investigated and it seems that the tcpip_thread is in blocking state. I activated the STATS but I don't see any memory problems, only the INPKT that is at the maximum allowed and has an error.

 

Any help would be really appreciated.

 

Regards,

Vince

Outcomes