FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits

DE2-115 Web Server Example

Altera_Forum
Honored Contributor II
3,497 Views

Hi, 

 

I'm new to Quartus and Nios, and I've been trying to get the DE2-115 web server example (RGMII-ENET0) running with no luck. I followed the instructions in the user manual trying the bat file first. 

 

Using Nios 10.1 I: 

  1. Programmed the flash with the file DE2_115_Web_Server\DE2_115_WEB_SERVER_RGMII_ENET0\software\web_server_0_syslib\ro_zipfs.zip in Nios II Flash Programmer with the DE2_115_Web_Server\DE2_115_WEB_SERVER_RGMII_ENET0\DE2_115_SOPC.sopcinfo (attached is a screen shot of the programmer commands). 

  2. Ran batch file: DE2_115_Web_Server\DE2_115_WEB_SERVER_RGMII_ENET0\demo_batch\web_server.bat 

Console Output: 

C:\Altera\de2\DE2_115_Web_Server\DE2_115_WEB_SERVER_RGMII_ENET0\demo_batch>C:\Al 

tera\10.1\quartus\\bin\\quartus_pgm.exe -m jtag -c USB-Blaster[USB-0] -o "p;DE2_ 

115_WEB_SERVER.sof" 

Info: ******************************************************************* 

Info: Running Quartus II Programmer 

Info: Version 10.1 Build 153 11/29/2010 SJ Full Version 

Info: Copyright (C) 1991-2010 Altera Corporation. All rights reserved. 

Info: Your use of Altera Corporation's design tools, logic functions 

Info: and other software and tools, and its AMPP partner logic 

Info: functions, and any output files from any of the foregoing 

Info: (including device programming or simulation files), and any 

Info: associated documentation or information are expressly subject 

Info: to the terms and conditions of the Altera Program License 

Info: Subscription Agreement, Altera MegaCore Function License 

Info: Agreement, or other applicable license agreement, including, 

Info: without limitation, that your use is for the sole purpose of 

Info: programming logic devices manufactured by Altera and sold by 

Info: Altera or its authorized distributors. Please refer to the 

Info: applicable agreement for further details. 

Info: Processing started: Mon Dec 27 10:27:18 2010 

Info: Command: quartus_pgm -m jtag -c USB-Blaster[USB-0] -o p;DE2_115_WEB_SERVER 

.sof 

Info: Using INI file C:/Documents and Settings/dreesewm/quartus.ini 

Info: Using programming cable "USB-Blaster [USB-0]" 

Info: Using programming file DE2_115_WEB_SERVER.sof with checksum 0x00E08E03 for 

device EP4CE115F29@1 

Info: Started Programmer operation at Mon Dec 27 10:27:19 2010 

Info: Configuring device index 1 

Info: Device 1 contains JTAG ID code 0x020F70DD 

Info: Configuration succeeded -- 1 device(s) configured 

Info: Successfully performed operation(s) 

Info: Ended Programmer operation at Mon Dec 27 10:27:26 2010 

Info: Quartus II Programmer was successful. 0 errors, 0 warnings 

Info: Peak virtual memory: 103 megabytes 

Info: Processing ended: Mon Dec 27 10:27:26 2010 

Info: Elapsed time: 00:00:08 

Info: Total CPU time (on all processors): 00:00:01 

------------------------------------------------ 

Altera Nios2 Command Shell [GCC 3] 

Version 10.1, Built Tue Nov 30 02:10:00 PST 2010 

------------------------------------------------ 

------------------------------------------------ 

Welcome to the Nios II Embedded Design Suite 

Version 9.1, Built Thu Mar 25 01:25:52 PDT 2010 

Example designs can be found in 

/cygdrive/c/altera/91/nios2eds/examples 

------------------------------------------------ 

(You may add a startup script: c:/altera/91/nios2eds/user.bashrc) 

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 

Resetting and pausing target processor: OK 

Initializing CPU cache (if present) 

OK 

Downloaded 345KB in 5.9s (58.4KB/s) 

Verified OK 

Starting processor at address 0x000001D0 

nios2-terminal: connected to hardware target using JTAG UART on cable 

nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0 

nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) 

InterNiche Portable TCP/IP, v3.1 

Copyright 1996-2008 by InterNiche Technologies. All rights reserved. 

prep_tse_mac 0 

Your Ethernet MAC address is 00:05:67:f0:13:53 

prepped 1 interface, initializing... 

[tse_mac_init] 

INFO : TSE MAC 0 found at address 0x0b442000 

INFO : PHY Marvell 88E1111 found at PHY address 0x10 of MAC Group[0] 

INFO : PHY[0.0] - Automatically mapped to tse_mac_device[0] 

INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link... 

INFO : PHY[0.0] - Auto-Negotiation PASSED 

INFO : PHY[0.0] - Checking link... 

INFO : PHY[0.0] - Link established 

INFO : PHY[0.0] - Speed = 1000, Duplex = Full 

OK, x=0, CMD_CONFIG=0x00000000 

MAC post-initialization: CMD_CONFIG=0x0400020b 

[tse_sgdma_read_init] RX descriptor chain desc (1 depth) created 

mctest init called 

IP address of et1 : 192.168.0.171 

Created "Inet main" task (Prio: 2) 

Created "clock tick" task (Prio: 3) 

Acquired IP address via DHCP client for interface: et1 

IP address : 117.252.214.160 

Subnet Mask: 255.255.255.0 

Gateway : 192.168.0.1 

Created "web server" task (Prio: 4) 

Web Server starting up 

 

Fetching file: /mnt/rozipfs/index.html. 

Can't open the 404 File Not Found error page. 

Have you programmed the filing system into flash? 

[http_handle_receive] Error preparing response 

 

 

I tried changing the base address to 0x00000000 due to some comments in the readme, but I still have the same error. 

 

I also tried building the example from the CD (v1.0.4) but the software doesn't do anything when you select Build All. Building from scratch with the Web Server Template gives the error: 

 

Description Resource Path Location Type 

make: *** [obj/alt_error_handler.o] Error 1 test_web_server_one line 0 C/C++ Problem 

 

 

Any help on this would be appreciated. 

 

0 Kudos
22 Replies
Altera_Forum
Honored Contributor II
170 Views

Explain a bit more what you mean by "these steps" and "doesn't work".

0 Kudos
Altera_Forum
Honored Contributor II
170 Views

Thanks Daixiwen, sorry for not being specific,  

 

I've tried the steps on page 1, from generating SOPC until flash programmer. But I'm getting the error that you just post on it now.  

http://www.alteraforum.com/forum/showthread.php?t=40754 

 

I'm just wondering about some steps it might have relation on web server.  

On Nios II 10.1 sp1 Eclipse this experiment doesn't work  

so i'm using Nios ii IDE 

and doing the below steps 

1 - create bsp 

2- build all 

3- Quartus ii programmer 

4- flash programmer 

I'm missing a point I guess on these stpes 

When do I RUN AS the program?
0 Kudos
Reply