|
From: | Sirjee Rooplall |
Subject: | [lwip-users] PBUFS + MEMP + LWIP 1.3.0 |
Date: | Wed, 10 Feb 2010 10:57:24 +0200 |
In LWIP 1.3.0 MEMP memory uses static memory, I
have external SDRAM and wish for MEMP to allocate memory in the external memory
which is managed by the the heap.
I am using the UC3A device, external SDRAM, heap is
in external SDRAM. I use the heap_3.c file in my project.
How do I get MEMP to use this memory for its memory
pools, I cannot see how this can be done in the current implementation of
memp.
I found a website which talks about lwipopts, and
one of the options, it talks about to force memp and mem to use the standard
library malloc for all its memory allocation is:
#define MEMP_MEM_MALLOC 1
#define MEM_LIBC_MALLOC 1
seen in website:
However I cannot see where these difnes will be
used in LWIP port 1.3.0.
Please can someone help understand this better and
tell me how I can make LWIP use malloc from the standard C implementation, so
that I can free up some of my static memory. I can get MEM to use libc malloc,
by second definition above, but I cannot get memp to do the same.
Please help, Thanks in
advance. Kind Regards,
Sirjee Rooplall Figment Design laboratories (Pty) Ltd mailto: address@hidden Mobile: +27 (0)83 230 8466 ![]() |
[Prev in Thread] | Current Thread | [Next in Thread] |