Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

web server

hi,

am using cyclone iii dev board, i have successfully downloaded web server hardware image into fpga and ran a simple "hello world" pgm on nios ii.

now i want to run web server software program on nios ii, but am facing prob at the initial stage itself i.e., while building project. . .

am getting the following error,

**** Build of configuration Debug for project web_server_0 ****

make -s all includes

Compiling web_server.c...

../web_server.c: In function `sevenseg_set_hex':

../web_server.c:434: error: `SEVEN_SEG_PIO_BASE' undeclared (first use in this function)

../web_server.c:434: error: (Each undeclared identifier is reported only once

../web_server.c:434: error: for each function it appears in.)

make: *** [obj/web_server.o] Error 1

Build completed in 267.172 seconds

since it is ready code am not getting wt should be done.if anybody know why this is occuring pls help me. . .

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The web server software expects to find a PIO to control a seven segment display. If you don't have it on your board or the SOPC project, you should remove the relevant lines of code from the source.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi daixiwen,

    thank you so much for ur reply, it worked.

    i have one more question,i was running web server pgm from templet, now i have downloaded web server zip file from internet, i dont know how to create a new project using those software files. could anyone pls tel me how to use those files to run pgm on nios ii. . . pls. . .

    and am using quartus ii v8.1 and there is no "nios ii c/c++ application and BSP" pane in nios ii v8.1. Is it required to create new project and run those software programs. .?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can create a new application in the IDE and then copy the source files from the zip archive to the new project.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi,

    i tried as u said. i created a blank project and copied all source files and header files and built project. . . but while building project lots of errors are coming up in almost all the files i added. . .

    for example, there is a c-file called alt_error_handler.c in this they have included# include< include.h> with this it shows there is no such files. . .

    like this there are plenty of errors. . . i have copied all files which i downloaded from the internet. . .

    any solution would be appreciated.

    thank you. . .
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In the project settings there is one place where you can define the paths for the included files. Check that they are defined properly so that the compiler can find all the included files in the project.