|ARM Technical Support Knowledge Articles|
Applies to: RealView Real-Time Library
Information in this article applies to:
I am running the TCP/IP stack on the Atmel AT91SAM7X device and I need to minimize the RAM occupation of TCP/IP stack. Can we do this by changing the header files?
The traffic in our TCP/IP network will be quite low, therefore I would like to reduce the RAM requirements as much as possible.
Yes. It is possible to reduce the RAM footprint by changing the definitions in the files AT91_EMAC.H and Net_Config.C.
/* EMAC Memory Buffer configuration. */ #define NUM_RX_BUF 64defines the receive buffer size to be 8KB. This buffer might be reduced to 4KB (NUM_RX_BUF = 32) or even to 2KB (NUM_RX_BUF = 16). Reduction to 16 (or below) may cause problems and should be tested on the real network. Note that the size value of the NUM_RX_BUF must be a power of 2.
Article last edited on: 2008-11-19 08:01:27
Did you find this article helpful? Yes No
How can we improve this article?