Good day,
I have plot the code from LPCOPEN to my Keil IDE for my LPC1778 project. Its managed to detect the PHY link up & down when I plug/unplug Ethernet cable. However, its doesnt respond to the ping when I ping the IP from windows. Below is the debug viewer. I have enabled some debug options from LWIP.
LPC177X_ETH - Initialize
Starting LWIP TCP echo server...
netif: netmask of interface set to 255.255.255.0
netif: GW address of interface set to 192.168.1.254
netif_set_ipaddr: netif address being changed
pbuf_alloc(length=1536)
pbuf_alloc(length=1536) == 10000870
lpc_rxqueue_pbuf: pbuf packet queued: 10000870 (free desc=3)
pbuf_alloc(length=1536)
pbuf_alloc(length=1536) == 10000e88
lpc_rxqueue_pbuf: pbuf packet queued: 10000e88 (free desc=2)
pbuf_alloc(length=1536)
pbuf_alloc(length=1536) == 100014a0
lpc_rxqueue_pbuf: pbuf packet queued: 100014a0 (free desc=1)
pbuf_alloc(length=1536)
pbuf_alloc(length=1536) == 10001ab8
lpc_rxqueue_pbuf: pbuf packet queued: 10001ab8 (free desc=0)
netif: added interface en IP addr 192.168.1.93 netmask 255.255.255.0 gw 192.168.1.254
netif: setting default interface en
httpd_init
tcp_bind: bind to port 80
LPC177X_ETH - IP_ADDR : 192.168.1.93
LPC177X_ETH - NET_MASK : 255.255.255.0
LPC177X_ETH - GATEWAY_IP : 192.168.1.254
LPC177X_ETH - Link connect status: 0
etharp_request: sending ARP request.
pbuf_alloc(length=28)
pbuf_alloc(length=28) == 100020d0
etharp_raw: sending raw ARP packet.
pbuf_add_header: old 100020f0 new 100020e2 (14)
ethernet_output: sending packet 100020d0
pbuf_alloc(length=42)
pbuf_alloc(length=42) == 10002110
lpc_low_level_output: Switched to DMA safe buffer, old=00000000, new=10002110
lpc_low_level_output: pbuf packet(10002120) sent, chain#=0, size = 42 (index=0)
pbuf_free(100020d0)
pbuf_free: deallocating 100020d0
LPC177X_ETH - Link connect status: 1
LPC177X_ETH - IP_ADDR : 192.168.1.93
LPC177X_ETH - NET_MASK : 255.255.255.0
LPC177X_ETH - GATEWAY_IP : 192.168.1.254
lpc_rxqueue_pbuf: pbuf packet queued: 10000870 (free desc=0)
lpc_low_level_input: Packet dropped with errors (0xffffffff)
lpc_rxqueue_pbuf: pbuf packet queued: 10000e88 (free desc=0)
lpc_low_level_input: Packet dropped with errors (0xffffffff)
lpc_rxqueue_pbuf: pbuf packet queued: 100014a0 (free desc=0)
lpc_low_level_input: Packet dropped with errors (0xffffffff)
lpc_rxqueue_pbuf: pbuf packet queued: 10001ab8 (free desc=0)
lpc_low_level_input: Packet dropped with errors (0xffffffff)
lpc_rxqueue_pbuf: pbuf packet queued: 10000870 (free desc=0)
lpc_low_level_input: Packet dropped with errors (0xffffffff)
lpc_rxqueue_pbuf: pbuf packet queued: 10000e88 (free desc=0)
lpc_low_level_input: Packet dropped with errors (0xffffffff)
thanks in advanced.