lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] MEMP_POOL_256 undeclared when enabling custom pools


From: Neerav Patel
Subject: Re: [lwip-users] MEMP_POOL_256 undeclared when enabling custom pools
Date: Thu, 5 Jan 2017 19:18:57 +0000

I must of corrupted things while messing around with lwip makefiles.  


I redid all my steps from a clean lwip2 checkout and everything compiles.


Thank again for the help.




From: lwip-users <lwip-users-bounces+address@hidden> on behalf of Neerav Patel <address@hidden>
Sent: January 4, 2017 9:37 PM
To: address@hidden
Subject: [lwip-users] MEMP_POOL_256 undeclared when enabling custom pools
 

Hi


I am trying to use the latest lwip2.0 and use it with custom pools.  I am using the following wiki document and followed it to the letter.


http://lwip.wikia.com/wiki/Custom_memory_pools


I added in lwipopts.h:


#define MEM_USE_POOLS                   1
#define MEMP_USE_CUSTOM_POOLS           1


And created lwippools.h


LWIP_MALLOC_MEMPOOL_START
LWIP_MALLOC_MEMPOOL(50, 256)
LWIP_MALLOC_MEMPOOL(50, 512)
LWIP_MALLOC_MEMPOOL(50, 1512)
LWIP_MALLOC_MEMPOOL_END

After doing this I am running into the following error when trying to compile lwip2.0 with the microblaze compiler (gcc).

"src/include/lwip/priv/memp_priv.h:101:42: error: 'MEMP_POOL_256' undeclared here (not in a function)"

How does one fix this issue.  

Thanks in advance.



reply via email to

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