amatron wrote:My timid attempt to use ping from the SDK v0.9.4 on Eclipse IDE:
#include "lwip/app/ping.h"
struct ping_option pingopt;
void ping(uint32 ip)
{
pingopt.ip=ip;
pingopt.count = 3;
pingopt.recv_function=NULL;
pingopt.sent_function=NULL;
ping_start(&pingopt);
}
Uart1 tx:
recv 192.168.4.2: byte = 32, time = 23 ms, seq = 1
recv 192.168.4.2: byte = 32, time = 3 ms, seq = 2
recv 192.168.4.2: byte = 32, time = 3 ms, seq = 3
ping 3, timeout 0, total payload 96 bytes, 2939 ms
Ping:8.8.8.8
recv 8.8.8.8: byte = 32, time = 32 ms, seq = 1
recv 8.8.8.8: byte = 32, time = 6 ms, seq = 2
recv 8.8.8.8: byte = 32, time = 8 ms, seq = 3
ping 3, timeout 0, total payload 96 bytes, 2982 ms
How did you compile and build the firmware ?
Is it possible for you to export the entire eclipse project (Including any defines you magt have set up?)
Best regards
Thorvald