Hi all,
I am using DK-TM4C129X with TivaWare_C_Series-2.1.4.178\examples\boards\dk-tm4c129x\enet_io.
I make the following changes to test IPADDR_USE_STATIC with static IP 192.168.127.1.
In lwipopts.h
#define LWIP_DHCP 0
#define LWIP_AUTOIP 0
In enet_io.c
lwIPInit(g_ui32SysClock, pui8MACArray, 0xC0A87F01, 0xFFFFFF00, 0, IPADDR_USE_STATIC);
I use a computer with Win7, Wireshark, Intel CPU and Intel I210 NIC.
I connect DK-TM4C129X to I210 with an ethernet cable.
According to third_party\lwip-1.4.1\src\core\netif.c,
every time etharp_gratuitous(netif) is called (ethernet link up), a gratuitous ARP should be captured in my Wireshark but it did not happen.
Only when I set a break point to stop TM4C129XNCZAD at etharp_gratuitous(netif) thru CCS and resume, a gratuitous ARP can be captured in my Wireshark.
Could someone give me some suggestions ?
Thanks.