Issue with LwIP, TCP echo server not working on STM32F207 running FreeRTOS

63 views
Skip to first unread message

kevinl...@gmail.com

unread,
Feb 23, 2017, 12:31:58 PM2/23/17
to osdeve.mirror.tcpip.lwip

I am working on STM32F207, with Ethernet chip ENC28J60, FreeRTOS, LwIP.

 

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 52
TCP connection request 57352 -> 7.
ip4_route: No route to 192.168.168.109
ip4_route: No route to 192.168.168.109
ip_input: iphdr->dest 0x21a8a8c0 netif->ip_addr 0x21a8a8c0 (0xa8a8c0, 0xa8a8c0, 0x21000000)
ip4_input: packet accepted on interface st
ip4_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 52
ip4_route: No route to 192.168.168.109

kevinl...@gmail.com

unread,
Feb 23, 2017, 12:32:57 PM2/23/17
to osdeve.mirror.tcpip.lwip, kevinl...@gmail.com

This morning I found some times when I ping the device, the MAC address is not the address of my device

Reply all
Reply to author
Forward
0 new messages