******************************************************************************* ** Copyright © 2006, Xilinx, Inc. ** This design is confidential and proprietary of Xilinx, Inc. All Rights Reserved. ******************************************************************************* ** ____ ____ ** / /\/ / ** /___/ \ / Vendor: Xilinx ** \ \ \/ Version: 1.0 ** \ \ Filename: webserver_readme.txt ** / / Date Last Modified: 8/31/2006 ** /___/ /\ Date Created: 8/31/2006 ** \ \ / \ ** \___\/\___\ ** **Device: **Purpose: **Reference: ** ******************************************************************************* ** ** Disclaimer: LIMITED WARRANTY AND DISCLAIMER. These designs are ** provided to you "as is." Xilinx and its licensors make and you ** receive no warranties or conditions, express, implied, ** statutory or otherwise, and Xilinx specifically disclaims any ** implied warranties of merchantability, noninfringement, or ** fitness for a particular purpose. Xilinx does not warrant that ** the functions contained in these designs will meet your ** requirements, or that the operation of these designs will be ** uninterrupted or error free, or that defects in the Designs ** will be corrected. Furthermore, Xilinx does not warrant or ** make any representations regarding use or the results of the ** use of the designs in terms of correctness, accuracy, ** reliability, or otherwise. ** ** LIMITATION OF LIABILITY. In no event will Xilinx or its ** licensors be liable for any loss of data, lost profits, cost ** or procurement of substitute goods or services, or for any ** special, incidental, consequential, or indirect damages ** arising from the use or operation of the designs or ** accompanying documentation, however caused and on any theory ** of liability. This limitation will apply even if Xilinx ** has been advised of the possibility of such damage. This ** limitation shall apply notwithstanding the failure of the ** essential purpose of any limited remedies herein. ** ******************************************************************************* Application: webserver ----------------------- Ethernet controlled access to the ML501 GPIO DIP switches and GPIO LEDS is provided by this application. A remote host running a Web browser can communicate with the ML501 over the Ethernet to read the value of the board's DIP switches or to set the state of the LEDs. Refreshing or reloading the remote computer's Web browser causes the background color of the browser window to change and the displayed values of the DIP switches to be updated. In this application, the default IP address of the ML501 is 1.2.3.4, but this can be changed by editing the software and recompiling. CONFIG Switch Settings: 00010101 1. Connect the Host PC to the ML501 (J1 header) using a PC-IV or Platform USB JTAG cable 2. Connect the Host PC serial port to the ML501 serial port using a null modem cable and launch a terminal program on the Host (eg. TeraTerm) with the settings: 9600 baud, 8-N-1, No flow control 3. Connect the ML501 to a DVI monitor or to a VGA monitor with the appropriate adapter 4. Note your existing Host PC network settings 5. Set Host PC address to 1.2.3.9 with subnet mask 255.0.0.0 Note: Ensure the PC is set for 10 Mbps or 100 Mbps 6. Connect Ethernet cable (straight or crossover) from Host to ML501 Note: ML501 is set to 1.2.3.4, but this can be changed in software The ML501 Ethernet PHY chip has an auto-crossover feature 7. Insert the production ML501 CF card and power-up the board 8. Launch XPS and open the ML501 EDK project (system.xmp) 9. Launch a Shell window using XPS menu selection: Project > Launch EDK Shell 10. Download bitstream in shell window by typing: impact -batch etc/download.cmd 11. XPS menu selection: Debug > Launch XMD 12. At XMD% prompt type: cd microblaze_0/code 13. At XMD% prompt type: rst 14. At XMD% prompt type: dow webserver.elf 15. At XMD% prompt type: con 16. Launch a web browser on the host and open URL http://1.2.3.4:8080 Note: You may need to turn off your browser's proxy and specify a direct connection to the Internet in your browser options 17. Enter a single Hex value and observe that the rightmost nibble of GPIO LEDs take on this value in binary 18. Change the DIP switch settings on the ML501 and observe that the DIP value shown on the web page changes on a reload 19. Click on the "Yet Another File on MicroBlaze" link to see the background color of the web page change 20. Restore your previous browser and network settings LCD Output: ----------- ML50x = http:// 1.2.3.4:8080 Serial Port Output: ------------------- Welcome to the ML50x Webserver Demo This demonstration is an Ethernet controlled GPIO interface. A remote host running a web browser can read the value of the ML50x DIP switches or set the LEDs on the board. Refreshing the remote PC's browser causes the background color to change and the current DIP switch values to be read. By default, the IP address of the board is 1.2.3.4 but can be changed by recompiling the software. Instructions for running this demo: 1. Connect Ethernet cable (straight or crossover) from your host to this board. 2. Configure the remote host's IP address to 1.2.3.9 3. Make sure the connection is running at 10 or 100 mbps and link lights are on 4. On the remote host, open a web browser connection to http://1.2.3.4:8080 Follow the instructions on the loaded web page 5. On the remote host, you can also ping 1.2.3.4 to see the connection Now Starting Webserver Demo... (Note: status messages are output to the UART) ip: 1.2.3.4 DVI/VGA Output: --------------- Welcome to the ML50x Webserver Demo This demonstration is an Ethernet controlled GPIO interface. A remote host running a web browser can read the value of the ML50x DIP switches or set the LEDs on the board. Refreshing the remote PC's browser causes the background color to change and the current DIP switch values to be read. By default, the IP address of the board is 1.2.3.4 but can be changed by recompiling the software. Instructions for running this demo: 1. Connect Ethernet cable (straight or crossover) from your host to this board. 2. Configure the remote host's IP address to 1.2.3.9 3. Make sure the connection is running at 10 or 100 mbps and link lights are on 4. On the remote host, open a web browser connection to http://1.2.3.4:8080 Follow the instructions on the loaded web page 5. On the remote host, you can also ping 1.2.3.4 to see the connection Now Starting Webserver Demo... (Note: status messages are output to the UART) ip: 1.2.3.4