Forum Discussion

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

problem with the stand alone LWIP

Hello all,

I downloaded the stand alone Lwip from the following link:

http://forum.niosforum.com/forum/index.php?showtopic=949 (http://forum.niosforum.com/forum/index.php?showtopic=949)

and tried it in my NiosII IDE 6.0 environment. When I create a new project out of its template, I was alerted that the template is incompatible for the 6.0 version IDE.

When I tried to build the project, many errors appeared and claiming that the following three files are missing:

# include "lwip/debug.h"# include "lwip/stats.h"# include "lwip/tcp.h"

I searched the entire project folder and found these three files in the folder of

/lwip_web_server_0/lwip-0.7.1/src/include/lwip/

I tried to copy the files into the "apps" folder but this does not help.

Since I cannot post this question on the above link nor can I contact the author directly, I post it here, hoping somebody who have used this stand alone lwip stack could give me some suggestion.

Thank you!!

Mason

6 Replies

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

    I've got the same problem as you....

    Is there anybody who test lwip on a nios kit higher than version 1.1 ???

    thenk to help...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have meet same.but at at 5.0 or 5.1 can past this!!

    I think it can not support 6.0.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by wwycoolboy@Sep 4 2006, 09:07 AM

    i have meet same.but at at 5.0 or 5.1 can past this!!

    i think it can not support 6.0.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=18057)

    --- quote end ---

    --- Quote End ---

    Standalone LWIP works just fine with 6.0, I just downloaded and used it last week. Not sure what&#39;s causing your errors...the steps I took were:

    1) Copy the LWIP web server project to the Nios project directory.

    2) Replaced the LAN91C111&#39;s HAL folder with the one in the zip.

    3) Created a new standalone LWIP web server project.

    4) Added the four build paths as described in the readme file.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi All,

    Lwip standalone version can run in Nios2 IDE6.0. following is my stage for reference.

    1. unzip lwip-v1.1.zip

    2. copy sopc_builder/components/altera_avalon_lan91c111 to kits/nios2_60/components

    3. use setup.exe to install package into kits/nios2_60/components

    4. move kits/nios2_60/components/altera_avalon_lan91c111 to sopc_builder/components

    5. Use IDE to create a blank application project and move all files from lwip_web_server folder to the blank application project

    6. remove .cdtbuild and added the four build paths as described in the readme file from c/c++ build of application project.

    7. then, compile the project.

    8. IDE will respond a lot of error as following in system library.

    Regards