Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: lwIP on AM335x with two ports

$
0
0

Hi,

I have implemented lwIP example on a AM335x platform with two Ethernet ports. This was done using StarterWare for AM335x V2.00.01.01. "CPSW_DUAL_MAC_MODE" is defined. The application runs the original web server example from StarterWare. The PHY's are connected to Port 1 (CPRMII1) and Port 2 (CPRMII2) of the CPSW module via RMII interface.

If I define two static IP address, lets say 172.16.17.101 for port 1 and 172.16.17.102 for port 2 the application runs as it should and I'm able to access the web server on the two different IP addresses. So far so good.

If I change port 1 from static IP address to dynamic IP address (DHCP) and and connect port 1 to our company network with a DHCP server and restart the application, I'm not able to access the web server on the assigned address on port 1. But I'm still able to access the web server on port 2 with the static IP address. The strange thing is that I can still "ping" both ports.

If I disconnect the cable to port 2 with the static IP address und restart the application I'm able to access the web server on port 1 with DHCP.

I looks as if DHCP itself works fine but the combination of one port DHCP and one static IP does not.

Any ideas on this behaviour? Is this an lwIP bug?

Thanks and best regards,
Patrick


Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>