AM335X StarterWare 移植到自己的开发板时出现分配不到IP的情况,提示如下
PHY found at address 1 for Port 2 of Instance 0.
Performing Auto-Negotiation…
Auto-Negotiation Successful.
Transfer Mode : 100 Mbps Full Duplex.
PHY link verified for Port 2 of Instance 0.
DHCP Trial 1…
DHCP Trial 2…
DHCP Trial 3…
DHCP Trial 4…
DHCP Trial 5…
Unable to complete DHCP!
Port 2 IP Address Acquisition Failed.
在TI官方开发板上是能够成功的分配到IP的,但是官方的开发板配置是在
PHY found at address 0 for Port 1 of Instance 0.
Performing Auto-Negotiation…
Auto-Negotiation Successful.
Transfer Mode : 100 Mbps Full Duplex.
PHY link verified for Port 1 of Instance 0.
DHCP Trial 1…
Port 1 IP Address Assigned: 192.168.0.14
Shine:
请问如果设成static IP address是否可以? DHCP server是否正常?
fa linag:
回复 Shine:
怎么知道DHCP server是否正常,我认为是正常的,因为我在TI通用板上用同一条网线插上是能够分配成功的。
刚刚尝试了配置 lwipIfPort2.ipMode = IPADDR_USE_STATIC; 为静态,能够成功的分配到IP
Port 2 IP Address Assigned: 0.0.0.1
但是这个IP地址我需要更改的话怎么设置。
fa linag:
回复 Shine:
还有我配置好IP后,发现不能ping同我的开发板
Shine:
回复 fa linag:
starterware\examples\evmskAM335x\enet_echo\ lwipopts.h里可以配置static IP address lwipIfPort1.ipAddr = STATIC_IP_ADDRESS_PORT2;
fa linag:
回复 Shine:
嗯嗯,我已经配置好了,但是发现ping不通这个设置的静态IP