116
• Nios II Program: web_server.elf
Demo batch file folder for writing web site content zip file into flash:
DE2_115_Web_Server\ WEB_SERVER_FLASH
The demo batch file includes the following files:
• Batch File: WEB_SERVER_FLASH.bat , WEB_SERVER_FLASH_bashrc
• FPGA Configure File : WEB_SERVER_FLASH.sof
D
D
e
e
m
m
o
o
n
n
s
s
t
t
r
r
a
a
t
t
i
i
o
o
n
n
S
S
e
e
t
t
u
u
p
p
• Make sure the PHY device is working on RGMII mode (Short pin 1 and pin 2 of JP1)
• Plug a CAT 5e cable into the Ethernet port (J4) on the DE2-115 board (Make sure the Ethernet
cable is connected to router and the DHCP function is supported)
• Power on DE2-115 board
• Execute the demo batch file “WEB_SERVER_FLASH.bat” to write web site content into flash
on DE2-115 board
• Execute the demo batch file “DE2_115_WEB_SERVER.bat ” for downloading .sof and .elf file
for this demonstration.
• See Figure 6-35, when the message “Web Server Starting up” is shown on nios2-terminal. The
LCD on DE2-115 board will show the valid IP address (It may take a while to get IP address
from Gateway)
• Once the LCD on DE2-115 board shows the valid IP address got from Gateway, then launch
your web browser
• Input the IP into your browser. (IP is shown on the LCD display)
• You will see the brand new DE2-115 webpage on your computer
• On the web page, you could access the DE2-115 board’s peripherals from the left sidebar or link
to external pages from the right sidebar. Try check some LEDs on the left sidebar and then press
send will light up the specified LEDs on board. You also could send text to the LCD or set the
value for 7-segment displays on DE2-115 board. Figure 6-36 gives a snapshot of the web server
page
• To perform the demonstrations of other mode or Ethernet port, please refer to Table 4-21 and
Table 4-22 for mode setting and running the associate project on the
“DE2_115_demonstrations\ DE2_115_Web_Server” folder in the DE2-115 System CD
Comments to this Manuals