Re: [lwip-users] Custom placement of memory pool

2018-11-09 Thread Giuseppe Modugno
Il 09/11/2018 04:05, uaz ha scritto: Hi all, I'm currently running lwip v2.0.3 on LPC4357 platform. I have some issue with pbuf mem_alloc(), which I believe is fragmentation issue because after several packet transfers, I'm unable to allocate pbuf anymore. I don't know if it is the same proble

Re: [lwip-users] Custom placement of memory pool

2018-11-09 Thread Dirk Ziegelmeier
To relocate a pool, see: https://www.nongnu.org/lwip/2_1_x/group__mempool.html#ga5b1fb3ce7942432d87cc948b1c5ed6cb "To relocate a pool, declare it as extern in cc.h. Example for GCC: extern u8_t __attribute__((section(".onchip_mem"))) memp_memory_my_private_pool_base[];" HTH Dirk

Re: [lwip-users] Custom placement of memory pool

2018-11-09 Thread uaz
Hi Dirk, Thanks for the heads up. I lost focus because I was drowning in the macros. Ok, now I understand that I can define my own memory pool at custom address. But how about pbuf buffers? Is it possible to relocate them to different address? Now I get confused with pbuf pool (PBUF_POOL_SIZE)

Re: [lwip-users] Custom placement of memory pool

2018-11-09 Thread Dirk Ziegelmeier
Yes, in exactly the same way - just figure out the name of the PBUF pool (see linker map file) and add an external with appropriate GCC attribute to cc.h Dirk On Fri, Nov 9, 2018 at 3:14 PM uaz wrote: > Hi Dirk, > > Thanks for the heads up. I lost focus because I was drowning in the macros. >

Re: [lwip-users] Custom placement of memory pool

2018-11-09 Thread Nathan Hartman
On Thu, Nov 8, 2018 at 11:57 PM uaz wrote: > Hi all, > > I'm currently running lwip v2.0.3 on LPC4357 platform. > I have some issue with pbuf mem_alloc(), which I believe is fragmentation > issue because after several packet transfers, I'm unable to allocate pbuf > anymore. I once had a problem