Hi,
could please anybody confirm the "LwIP Example" really works ?
In my case, it does something else to what I expected. On start it prints message:
Hello ATMEL World!
And when Ethernet cable is connected there appears:
Ethernet Connection established
IP_ADDR : 192.168.1.100
NET_MASK : 255.255.255.0
GATEWAY_IP : 192.168.1.1
Ping to 192.168.1.100 fails.
My computer (in the same network) has IP 192.168.88.254 and other device has IPs 192.168.88.246, and router provides gateway IP 192.168.88.1,
=> I suppose router's DHCP range is 192.168.88.xxx (with Subnet mask 255.255.255.0).
The IP 192.168.1.100 seems to be defined in source lwip_macif_config.h :
#define CONF_LWIP_MACIF_IP "192.168.1.100"
#define CONF_LWIP_MACIF_GATEWAY "192.168.1.1"
=> I suppose, a static IP is used then.
I checked configuration of project "LwIP Example" and indeed, DHCP doesn't seem to be enabled.
(source lwipopts.h : #define LWIP_DHCP 0)
So I tried
1) enable DHCP, I have changed:
#define LWIP_DHCP 1
but still appears the same text, no ping
2) change the static (default ?) IP address definition:
#define CONF_LWIP_MACIF_IP "192.168.88.249" ----------// is between existing .246 and .254, and is not used by other device
#define CONF_LWIP_MACIF_GATEWAY "192.168.88.1"
Text when cable plugged has changed to:
Ethernet Connection established
IP_ADDR : 192.168.88.249
NET_MASK : 255.255.255.0
GATEWAY_IP : 192.168.88.1
but still no ping.
I suppose it should not work this way.
If the Static IP is used, then I would expect also the ping should work.
If IP is assigned to my board via DHCP, then I would expect it shows IP like 192.168.88.xxx and ping should work too.
I would like to exclude problem is caused by possibly unsuccessful migration of the original project "LwIP Example" from SAME70Q21B to SAME70Q21A really fitted on my board.
Could please anybody show me what his board prints, whether the IP printed is correct, and if able to ping.
Thanks