lpcware

LPCopen lwip_lpc V1.10: "IF YOU WANT TO USE LWIP, YOU SHOULD USE THE VERSION IN LPCOPEN."

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by rody on Wed Oct 29 03:05:45 MST 2014
I have several question regarding lwip, and lpcopen:

"IF YOU WANT TO USE LWIP, YOU SHOULD USE THE VERSION IN LPCOPEN."
Why is that? What is special about the V1.10? It is now 2 year old and seems not maintained.
What version off lwip is used to generate the lwip_lpc version 1.10?

I use LWIP 1.4.1 and the latest FreeRTOS. I copied the arch dir and file from lcopen to port it to de lpc17. When using the heap (MEM_LIBC_MALLO=1, MEMP_MEM_MALLOC=1) It works fine. The problem is that the LPC1768 is limited in RAM, max 32k can be used for the heap (AHB memory) and this fill up quick. The only thing I can find to tweak the heap usage is to limit the MTU. Other setting in lwipopts.h does not  do anything. Any tips wil be helpfull.

I tried to use the lwip memory management (MEM_LIBC_MALLO=1, MEMP_MEM_MALLOC=1)  but i run in to problems tweaking the defins to fit my project. Also de pbuf are not mapped in AHB ram what is requirent because DMA is used (so I understand).

Has someone an example project using lpcopen and a standard lwip version and using pbufs?

Outcomes