This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

lwIP on AM335x with two ports

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