Forum Discussion
Altera_Forum
Honored Contributor
12 years agoI have some updates according to the web server example on the CD. Maybe "kaushal" should look at this example.
Latest System CD: http://www.terasic.com/downloads/cd-rom/de2-115/de2-115_v.1.0.6_systemcd.zip Prerequisites: You MUST use Quartus 10.0 or 10.0sp1. I don't know why, but with 12.1sp1 it doesn't work! The software-part must be the old "Nios II IDE" (nios2-ide) and NOT the new "Nios II Software Build Tools for Eclipse (SBT4E)" (eclipse-nios2). Both are Eclipse-based, but are very different in use! Example project must be on a writeable device and every file must be writable. Project path: DE2_115_demonstrations/DE2_115_Web_Server/DE2_115_WEB_SERVER_RGMII_ENET0 Default IP-address: 192.168.21.171 (can be changed) DHCP-Client enabled! To disable it, Project: web_server_0_syslib (right-click) -> Properties -> System Library -> Software Components... -> NicheStack TCP/IP Stack -> Global Options -> Use DHCP to automatically assign IP address 1) Start Quartus and open Project: DE2_115_WEB_SERVER.qpf Use the Quartus Programmer: Quartus Menu -> Tools -> Programmer Use the prebuild SOF-file: DE2_115_WEB_SERVER.sof If no hardware is found, Hardware Setup -> Currently selected hardware (combobox) Click "Start" 2) Start "Nios II IDE" (nios2-ide). Workspace NOT inside example project path! Import existing project web_server_0: File -> Import -> Altera Nios II -> Existing Nios II IDE project into workspace -> software/web_server_0 -> Finish. Import existing project web_server_0_syslib: File -> Import -> Altera Nios II -> Existing Nios II IDE project into workspace -> software/web_server_0_syslib -> Browse SOPC Builder System PTF File: DE2_115_SOPC.ptf (CPU: cpu) -> Finish. You have now 3 projects in workspace: - altera.components - web_server_0 - web_server_0_syslib 3) Build application: Menu: Project -> Build all 4) Run application: Menu: Run -> Run... -> Nios II Hardware -> New launch configuration (Icon: File with +, on top of Nios II Hardware or C/C++ Local Application) -> Project: Browse -> web_server_0 (Nios II ELF copied automatic) -> Run You will see the IP address on the LCD (16x2). Then you should access the webserver with a browser: http://192.168.21.171 See pictures of website and board