cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Voyager
Voyager
7,349 Views
Registered: ‎10-25-2012

How to get other LWIP reference designs ?

Jump to solution

I read "LightWeight IP (lwIP) Application Examples" (xapp1026) file, it said:

 

The reference design includes these software applications:

 

Echo server
Web server
TFTP server
TCP RX throughput tes
TCP TX throughput test

 

But it seems there is only Echo server reference design. So how can I get other reference designs?

 

Thanks very much.

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Voyager
Voyager
5,089 Views
Registered: ‎02-10-2012

Re: How to get other LWIP reference designs ?

Jump to solution
11 Replies
Highlighted
Anonymous
Not applicable
7,338 Views

Re: How to get other LWIP reference designs ?

Jump to solution

All the applications should be there in the application code. However, youy may need to enable the application in the config_apps.h file. This is dowen by defining them as seen below.

 

#define INCLUDE_ECHO_SERVER    1
#define INCLUDE_WEB_SERVER     1
#define INCLUDE_TFTP_SERVER    1
#define INCLUDE_RXPERF_SERVER  1
#define INCLUDE_TXPERF_CLIENT  1

 

Note: for optimum performance in a particular applciation. only enable that particular application. For example if you are seeing TXPERF perfomance issues, disable all the other applications

0 Kudos
Highlighted
Voyager
Voyager
7,331 Views
Registered: ‎10-25-2012

Re: How to get other LWIP reference designs ?

Jump to solution
Thanks for reply. Where can I find this "config_apps.h" header file?
If I want to use application Web server, should I do like this:

#define INCLUDE_ECHO_SERVER 0
#define INCLUDE_WEB_SERVER 1
#define INCLUDE_TFTP_SERVER 0
#define INCLUDE_RXPERF_SERVER 0
#define INCLUDE_TXPERF_CLIENT 0

Thanks again.
0 Kudos
Highlighted
Anonymous
Not applicable
7,321 Views

Re: How to get other LWIP reference designs ?

Jump to solution

It is in the src directory in the application files delivered with the xapp1026.

Yes, if you want to use just the web_server you would set as follows:

#define INCLUDE_ECHO_SERVER 0
#define INCLUDE_WEB_SERVER 1
#define INCLUDE_TFTP_SERVER 0
#define INCLUDE_RXPERF_SERVER 0
#define INCLUDE_TXPERF_CLIENT 0

 

0 Kudos
Highlighted
Voyager
Voyager
7,318 Views
Registered: ‎10-25-2012

Re: How to get other LWIP reference designs ?

Jump to solution

Hi stephenm, what do you mean "delivered with the xapp 1026"?
xapp 1026 is a pdf file whose title is "LightWeight IP (lwIP) Application Examples".

And it seems I can't find the "config_apps.h" in src folder, please look the attachment.

1.png
0 Kudos
Highlighted
Anonymous
Not applicable
7,313 Views

Re: How to get other LWIP reference designs ?

Jump to solution

Try the platform_config.h

0 Kudos
Highlighted
Voyager
Voyager
7,308 Views
Registered: ‎10-25-2012

Re: How to get other LWIP reference designs ?

Jump to solution
Thanks. But I am totally confused how it works. The different application like Echo server or Web server, should have different source codes. I don't understand why we just need to change the macro definition to achieve different applications.

And in " platform_config.h", it originally does not have these macro definitions. So could you please explain this a little more how it works?
0 Kudos
Highlighted
Voyager
Voyager
7,299 Views
Registered: ‎10-25-2012

Re: How to get other LWIP reference designs ?

Jump to solution
Hi stephenm, it seems that not all the applications are in the application code. SDK only provides an application which is "LwIP echo sever", in this application, I can't find any other application codes, e.g. Web server. I think I need get them from other sources.
0 Kudos
Highlighted
Voyager
Voyager
7,294 Views
Registered: ‎02-10-2012

Re: How to get other LWIP reference designs ?

Jump to solution

The SDK template provides only the design for the Echo Server! The Xapp1026 application ( which you can download as a zip file from the xilinx website ) has all the applications in them . The applications are "ifdefed" Thus by setting the corresponding macro you can compile the application.


Regards

Arvind 

0 Kudos
Highlighted
Voyager
Voyager
7,289 Views
Registered: ‎10-25-2012

Re: How to get other LWIP reference designs ?

Jump to solution
Thanks, arvindnr. That is what I guess. However, I searched but I can not get the zip file of Xapp1026 applications from Xilinx website. Where do you get it? Do you mind post a link if you have?

Thanks very much.
0 Kudos
Highlighted
Voyager
Voyager
5,090 Views
Registered: ‎02-10-2012

Re: How to get other LWIP reference designs ?

Jump to solution
Highlighted
Voyager
Voyager
2,598 Views
Registered: ‎10-25-2012

Re: How to get other LWIP reference designs ?

Jump to solution
I already got all reference designs. I checked "config_apps.h" file, If I enable echo sever, web sever, TFTP sever at same time as following:

#define INCLUDE_ECHO_SERVER 1
#define INCLUDE_WEB_SERVER 1
#define INCLUDE_TFTP_SERVER 1
#define INCLUDE_RXPERF_SERVER 1
#define INCLUDE_TXPERF_CLIENT 1
#define INCLUDE_TXUPERF_CLIENT 0
#define INCLUDE_RXUPERF_CLIENT 0

Is this feasible? Will it cause conflict?

Thanks very much.

0 Kudos