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
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
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)
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.
>
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