Professional Documents
Culture Documents
Usage:
The Lwipdemo is made in both raw mode in standalone and in socket mode using xilkernel. The demo
features the following applications:
- An echo server
- A tftp server
- A webserver
- A rxperf and a txperf server (I did not validated these to start, but this can be changed in the
source code)
Depending on which mode application You want to use (I suggest to try both to see the operating speed
of each component),
1. Open raw_apps/main.c or sock_apps/main.c and locate the following lines in the code:
/* Change to an IP address to match Your local subnet */
IP4_ADDR(&ipaddr, 192, 168, 0, 55);
IP4_ADDR(&netmask, 255, 255, 255, 0);
IP4_ADDR(&gw, 192, 168, 0, 1);
2. Change the IP address, netmask and gateway settings to match to your subnet and save the file to
rebuild the application.
3. In order to load the webserver with the memory file system contents in SDK in the XMD console
type:
connect mb mdm
cd ../Genesys_Lwipdemo
(where “../Genesys_Lwipdemo” is the path where the files were extracted. This folder
contains the image.mfs file that represents the memory file system contents for the
webserver.)
After the terminal displays the auto-negotiated link speed, the board can be pinged or the echo server
or tftp server or webserver can be accessed.
Regarding the application interface performance it is very useful to start the rxperf server and txperf
client. In order to start the rxperf and txperf applications:
4. Start the iperf server on the computer running iperf using the commands from XAPP1026 or
from the terminal
5. Run the application on the board
6. Optionally start the iperf client on the host computer.