I've not been able to get lwip+freertos+stm32f4 to work between a PC client and a STM TCP server with direct connection and static IPs (host is 169.254.134.127, STM is 169.254.134.254). It appears that tcpip_input is working correctly (etharp is processed), but the MAC addresses always return zero in low_level_input. These are highlighted in the log below. What am I missing? I also turned on every debug possible, but I can't tell if any of the timers is working as it should. Any feedback you can provide will be much appreciated.
"9/14/2020 10:36:49 AM",sys_timeout: 0x2002db58 abs_time=34452 handler=etharp_tmr arg=0x808f520 "9/14/2020 10:36:50 AM",sct calling h=ip_reass_tmr t=0 arg=0x808f514 "9/14/2020 10:36:50 AM",tcpip: ip_reass_tmr() "9/14/2020 10:36:50 AM",sys_timeout: 0x2002db6c abs_time=35451 handler=ip_reass_tmr arg=0x808f514 "9/14/2020 10:36:50 AM",sct calling h=etharp_tmr t=0 arg=0x808f520 "9/14/2020 10:36:50 AM",tcpip: etharp_tmr() "9/14/2020 10:36:50 AM",etharp_timer "9/14/2020 10:36:50 AM",sys_timeout: 0x2002db58 abs_time=35452 handler=etharp_tmr arg=0x808f520 "9/14/2020 10:36:50 AM",pbuf_alloc(length=60) "9/14/2020 10:36:50 AM",pbuf_alloc(length=60) == 0x2002d190 "9/14/2020 10:36:50 AM",tcpip_thread: PACKET 0x2002db30 "9/14/2020 10:36:50 AM",ethernet_input: dest:0hx:0hx:0hx:0hx:0hx:0hx, src:0hx:0hx:0hx:0hx:0hx:0hx, type:ff "9/14/2020 10:36:50 AM",pbuf_remove_header: old 0x2002d1a0 new 0x2002d1ae (14) "9/14/2020 10:36:50 AM",etharp_update_arp_entry: 169.254.134.127 - 8c:16:45:3c:7d:02 "9/14/2020 10:36:50 AM",etharp_find_entry: found empty entry 0 "9/14/2020 10:36:50 AM",etharp_find_entry: selecting empty entry 0 "9/14/2020 10:36:50 AM",etharp_update_arp_entry: updating stable entry 0 "9/14/2020 10:36:50 AM",etharp_input: incoming ARP request "9/14/2020 10:36:50 AM",pbuf_alloc(length=28) "9/14/2020 10:36:50 AM",pbuf_alloc(length=28) == 0x2002a61c "9/14/2020 10:36:50 AM",etharp_raw: sending raw ARP packet. 169.254.134.254 to 169.254.134.127 "9/14/2020 10:36:50 AM",pbuf_add_header: old 0x2002a63c new 0x2002a62e (14) "9/14/2020 10:36:50 AM",ethernet_output: sending packet 0x2002a61c, 00:80:e1:00:00:00 to 8c:16:45:3c:7d:02 "9/14/2020 10:36:50 AM",pbuf_free(0x2002a61c) "9/14/2020 10:36:50 AM",pbuf_free: deallocating 0x2002a61c "9/14/2020 10:36:50 AM",pbuf_free(0x2002d190) "9/14/2020 10:36:50 AM",pbuf_free: deallocating 0x2002d190 "9/14/2020 10:36:50 AM",pbuf_alloc(length=66) "9/14/2020 10:36:50 AM",pbuf_alloc(length=66) == 0x2002d190 "9/14/2020 10:36:50 AM",tcpip_thread: PACKET 0x2002db30 "9/14/2020 10:36:50 AM",ethernet_input: dest:0hx:0hx:0hx:0hx:0hx:0hx, src:0hx:0hx:0hx:0hx:0hx:0hx, type:0 "9/14/2020 10:36:50 AM",pbuf_remove_header: old 0x2002d1a0 new 0x2002d1ae (14) "9/14/2020 10:36:50 AM",ip_input: iphdr->dest 0xfe86fea9 netif->ip_addr 0xfe86fea9 (0x86fea9, 0x86fea9, 0xfe000000) "9/14/2020 10:36:50 AM",netif_is_up: netif->flags 0xA "9/14/2020 10:36:50 AM",ip4_input: packet not for us. "9/14/2020 10:36:50 AM",pbuf_free(0x2002d190) "9/14/2020 10:36:50 AM",pbuf_free: deallocating 0x2002d190 "9/14/2020 10:36:51 AM",sct calling h=ip_reass_tmr t=0 arg=0x808f514 "9/14/2020 10:36:51 AM",tcpip: ip_reass_tmr() "9/14/2020 10:36:51 AM",sys_timeout: 0x2002db6c abs_time=36451 handler=ip_reass_tmr arg=0x808f514 "9/14/2020 10:36:51 AM",sct calling h=etharp_tmr t=0 arg=0x808f520 "9/14/2020 10:36:51 AM",tcpip: etharp_tmr() "9/14/2020 10:36:51 AM",etharp_timer "9/14/2020 10:36:51 AM",sys_timeout: 0x2002db58 abs_time=36452 handler=etharp_tmr arg=0x808f520 "9/14/2020 10:36:52 AM",sct calling h=ip_reass_tmr t=0 arg=0x808f514 "9/14/2020 10:36:52 AM",tcpip: ip_reass_tmr() "9/14/2020 10:36:52 AM",sys_timeout: 0x2002db6c abs_time=37451 handler=ip_reass_tmr arg=0x808f514 "9/14/2020 10:36:52 AM",sct calling h=etharp_tmr t=0 arg=0x808f520 "9/14/2020 10:36:52 AM",tcpip: etharp_tmr() "9/14/2020 10:36:52 AM",etharp_timer "9/14/2020 10:36:52 AM",sys_timeout: 0x2002db58 abs_time=37452 handler=etharp_tmr arg=0x808f520 "9/14/2020 10:36:53 AM",sct calling h=ip_reass_tmr t=0 arg=0x808f514 "9/14/2020 10:36:53 AM",tcpip: ip_reass_tmr() "9/14/2020 10:36:53 AM",sys_timeout: 0x2002db6c abs_time=38451 handler=ip_reass_tmr arg=0x808f514 "9/14/2020 10:36:53 AM",sct calling h=etharp_tmr t=0 arg=0x808f520 "9/14/2020 10:36:53 AM",tcpip: etharp_tmr() "9/14/2020 10:36:53 AM",etharp_timer "9/14/2020 10:36:53 AM",sys_timeout: 0x2002db58 abs_time=38452 handler=etharp_tmr arg=0x808f520 "9/14/2020 10:36:53 AM",pbuf_alloc(length=66) "9/14/2020 10:36:53 AM",pbuf_alloc(length=66) == 0x2002d190 "9/14/2020 10:36:53 AM",tcpip_thread: PACKET 0x2002db30 "9/14/2020 10:36:53 AM",ethernet_input: dest:0hx:0hx:0hx:0hx:0hx:0hx, src:0hx:0hx:0hx:0hx:0hx:0hx, type:0 "9/14/2020 10:36:53 AM",pbuf_remove_header: old 0x2002d1a0 new 0x2002d1ae (14) "9/14/2020 10:36:53 AM",ip_input: iphdr->dest 0xfe86fea9 netif->ip_addr 0xfe86fea9 (0x86fea9, 0x86fea9, 0xfe000000) "9/14/2020 10:36:53 AM",netif_is_up: netif->flags 0xA "9/14/2020 10:36:53 AM",ip4_input: packet not for us. "9/14/2020 10:36:53 AM",pbuf_free(0x2002d190) "9/14/2020 10:36:53 AM",pbuf_free: deallocating 0x2002d190 -kh
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users