Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

stand alone lwIP -help

Altera_Forum
Honored Contributor II
860 Views

I have developed a PCB with 2 ethernet ports. Both ports are a copy of the hardware from the development PCB. I was able to get the stand alone lwIP web server running on the dev. PCB but it won't run on my PCB. I did change the name of my ethernet modules to lan91c111_0 & lan91c111_1 in SOPC builder. Where can I make to change in the lwIP code to call out my new module names.

0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
224 Views

Does LWIP even support two ports? I know Linux and eCos do...

0 Kudos
Altera_Forum
Honored Contributor II
224 Views

I figured out the answer to my problem. For anyone who may face the problem  

 

The line in code 

 

dev_list_ptr = (alt_avalon_lan91c111_if*)alt_ethernet_device_list.next; 

 

can also be changed to  

 

dev_list_ptr = (alt_avalon_lan91c111_if*)alt_ethernet_device_list.previous; 

 

You can use these functions to alternate between the different ports on the PCB. 

 

Thanks for taking the time to respond Mike.
0 Kudos
Reply