The jumper marked JP25 must be positioned in the MAC position (across the two pins closest to the marking MAC on the silk screen).
The lwIP TCP/IP stack is located in Demo/Common/ethernet/lwIP/v1_3_0.
The two network applications running on top of the TCP/IP stack are a simple web server and a remote calculator:
emacIPADDRx, emacGATEWAY_ADDRx and emacNET_MASKx defined in the file Demo/ARM9_STR91x_IAR/net_Launch_srv.h as showed below:
The IP addresses used by the WEB browser computer and the prototyping board must be compatible. This can be ensured by making the first three octets of both IP addresses identical. For example, if the WEB browser computer uses IP address 10.52.156.1, then the prototyping board can be given any address in the range 10.52.156.2 to 10.52.156.254 (barring any addresses already present on the network).
If a DHCP server runs in the WEB browser computer, the board IP address can be configured using DHCP by modifying the function prvEthernetConfigureInterface in the file Demo/ARM9_STR91x_IAR/net_Launch_srv.c as showed below.
Java web site. When you enter the IP address of the prototyping board in the WEB browser the index.html page is displayed (Fig.2).
At the half bottom there is a simple calculator. It is a Java applet. When the applet is started it is not connected to the board. To start using the calculator press the On button. When you use the calculator some messages are exchanged between the applet and the board according to the simple protocol defined in the file Demo/ARM9_STR91x_IAR/lwipNetCalc/NetCalcApp.c.It is possible to monitor the communication by opening the Java console.
I use the Web Server also to display the status of all tasks running in the system. Simply you enter the following address in the WEB browser: http://<BOARD_IP_ADDRESS>/debug.htm
NOTE: Some more recent version of the demo may include more than one statistic pages. Fore example the debug1.htm shows all task information reported by the vTaskList API function (Fig.3),
and the debug2.htm shows all task information reported by the vTaskGetRunTimeStats API function (Fig.4) .
STR91x Ethernet demo >