the total memory size of lwIP is MEM_SIZE plus memp_memory. memp_memory include many types memory which define in lwip/memp_std.h, they could be MEMP_RAW_PCP, MEMP_UDP_PCB, MEMP_TCP_PCB... it depends LWIP_XXX you define in your lwipopt.h. So how to calculate each type memory, for example with MEMP_PBUF_POOL
LWIP_PBUF_MEMPOOL(PBUF_POOL, PBUF_POOL_SIZE, PBUF_POOL_BUFSIZE, "PBUF_POOL") memory size of it is: PBUF_POOL_SIZE * PBUF_POOL_BUFSIZE. On Tue, Feb 2, 2010 at 3:10 PM, jinwei younger <bioyoun...@gmail.com> wrote: > Hi All, > How to calculate the memory size used by lwIP? > We set MEM_SIZE in lwipopts.h, but how much memory is enough for lwIP? > > Thanks for your help! > > _______________________________________________ > lwip-users mailing list > lwip-users@nongnu.org > http://lists.nongnu.org/mailman/listinfo/lwip-users >
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip-users