2017-02-22 06:21 PM
I am working on STM32F207, with Ethernet chip ENC28J60, FreeRTOS, LwIP.
So far Ping is working fine, but TCP Echo server doesn't work, netconn_accept never return. When request from my Desktop I got No route to [host IP ], please see following;
I captured some debug info,
+-------------------------------+
| 4 | 5 | 0x00 | 52 | (v, hl, tos, len)+-------------------------------+| 21548 |010| 0 | (id, flags, offset)+-------------------------------+| 128 | 6 | 0xd4b7 | (ttl, proto, chksum)+-------------------------------+| 192 | 168 | 168 | 109 | (src)+-------------------------------+| 192 | 168 | 168 | 33 | (dest)+-------------------------------+ip4_input: p->len 52 p->tot_len 52TCP connection request 57352 -> 7.ip4_route: No route to 192.168.168.109ip4_route: No route to 192.168.168.109ip_input: iphdr->dest 0x21a8a8c0 netif->ip_addr 0x21a8a8c0 (0xa8a8c0, 0xa8a8c0, 0x21000000)ip4_input: packet accepted on interface stip4_input: IP header:+-------------------------------+| 4 | 5 | 0x00 | 52 | (v, hl, tos, len)+-------------------------------+| 21556 |010| 0 | (id, flags, offset)+-------------------------------+| 128 | 6 | 0xd4af | (ttl, proto, chksum)+-------------------------------+| 192 | 168 | 168 | 109 | (src)+-------------------------------+| 192 | 168 | 168 | 33 | (dest)+-------------------------------+ip4_input: p->len 52 p->tot_len 52ip4_route: No route to 192.168.168.109