Start with opt.h for reference values. You MEM_SIZE and TCP_SND_BUF can be much much smaller.
Bill From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mechouk Nicolas Sent: Wednesday, May 21, 2008 12:20 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] XAPP663 (TCP/IP on V2P devices using lwIP) problem Thanks Bill. It was a useful answer....But I've an other question. For my application, I only need one connection from my client (my XUP V2P) to my server (my PC). I've no SDRAM on my board, just embedded memory (BRAM). The sending data size is about 128 bits. >From lwipopts.h, what are the mininal sizes can I use to keep my ethernet connection functionnal ? I tried these : (new //old value) #define MEM_SIZE 1*1024*1024 //16*1024*1024 #define MEMP_NUM_TCP_PCB 1 //8 #define MEMP_NUM_TCP_PCB_LISTEN 1 //16 #define PBUF_POOL_SIZE 1 //512 #define TCP_SND_BUF 16*1024 //32*1024 and echo server still works but I want to use the least possible (I don't know if my english is very correct...... ^^; ) Regards, Nicolas Bill Auerbach a écrit : lwIP memory buffers are statically allocated which can cause BSS to be quite large if your lwipopts.h defines a lot of storage. BSS doesn't take up space in the output (elf) file so it's not uncommon to see programs requiring much more storage than the output file size. I hope I hit the mark what you were questioning. Bill -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mechouk Nicolas Sent: Tuesday, May 20, 2008 12:48 PM To: Mailing list for lwIP users Subject: [lwip-users] XAPP663 (TCP/IP on V2P devices using lwIP) problem Hi there, I try to use lwIP to perform a TCP client application on my XUP V2P. I use files of xapp663 from Xilinx. But I'm very surprized by the programm size : text data bss dec hex 75886 996 17598688 17675570 10db532 The lwIP lib file is about 200Ko and my .elf file isa about 200Ko too. Anyone can illuminate me on this issue???? Regards, Nicolas _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
