lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] PBUFS + LWIP 1.3.0 + memory allocation


From: Sirjee Rooplall
Subject: [lwip-users] PBUFS + LWIP 1.3.0 + memory allocation
Date: Wed, 10 Feb 2010 10:56:21 +0200

Hi,
 
I am using lwip 1.3.0. I am new to LWIP, in the lwipopts file there is the follwoing definition of PBUFS.
I am using the AVR32 UC3 device, plus external SDRAM + PPP + ETHERNET.
 
/* ---------- Pbuf options ---------- */
/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
 
#define PBUF_POOL_SIZE                  10
 
/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */
 
#define PBUF_POOL_BUFSIZE               512
 
/* PBUF_LINK_HLEN: the number of bytes that should be allocated for a
   link level header. Defaults to 14 for Ethernet. */
 
#define PBUF_LINK_HLEN                  14
I have external SDRAM as heap memory, but it seems that these PBUFS are been allocated to onboard SRAM.
 
How can I change this to use the heap as all other memory allocations are done from the heap?
 
Where is the PBUF memory allocated?
 
In lwip 1.2.0 there was a pbuf_pool_mem, but I things have changed in lwip 1.3.0.
 
Can some please help me understand how the definition of the PBUF_POOL_SIZE and PBUF_POO_BUFSIZE is used in the memory allocation of pbufs.
 
I am using the sequential API's, i.e netconn_connect, netconn_write, netcon_recv, netconn_delete.
 
Kind Regards,
 
Sirjee Rooplall
Figment Design laboratories (Pty) Ltd
mailto:
address@hidden
Mobile: +27 (0)83 230 8466

reply via email to

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