lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Understanding memory configuration


From: Andy Pont
Subject: [lwip-users] Understanding memory configuration
Date: Mon, 17 Sep 2018 16:10:49 +0000
User-agent: eM_Client/7.2.33106.0

Hello,

I’m trying to figure out the memory settings being used by a project that I have inherited.  The lwipopts.h file contains:

#define MEM_USE_POOLS 1
#define MEMP_USE_CUSTOM_POOLS 1
#define MEM_USE_POOLS_TRY_BIGGER_POOL 1

I think this means that it allocates the memory that is defined in lwippools.h which is:

LWIP_MALLOC_MEMPOOL(14, 75)
LWIP_MALLOC_MEMPOOL(6, 225)
LWIP_MALLOC_MEMPOOL(1, 525)
LWIP_MALLOC_MEMPOOL(3, 1540)

I’m not clear what the LWIP_MALLOC_MEMPOOL macro does and how much RAM lwIP is actually trying to allocate.

-Andy.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]