最近在调试STM32750的lwip用cubeMX生成的工程。 但是一直ping不通,下图是板子运行的LOG。[15:54:24.555]收←◆sct calling h=cyclic_timer arg=080105e4 tcpip: ip_reass_tmr() sys_timeout: 24001014 msecs=1000 handler=cyclic_timer arg=080105e4 sct calling h=cyclic_timer arg=080105fc tcpip: dns_tmr() dns_tmr: dns_check_entries sys_timeout: 24000fec msecs=1000 handler=cyclic_timer arg=080105fc sct calling h=cyclic_timer arg=080105f0 tcpip: etharp_tmr() etharp_timer sys_timeout: 24001000 msecs=1000 handler=cyclic_timer arg=080105f0 LWIP dns_init: initializing sys_timeout: 24001014 msecs=1000 handler=cyclic_timer arg=080105e4 sys_timeout: 24001000 msecs=1000 handler=cyclic_timer arg=080105f0 sys_timeout: 24000fec msecs=1000 handler=cyclic_timer arg=080105fc netif: netmask of interface \0\0 set to 255.255.255.0 netif: GW address of interface \0\0 set to 192.168.1.1 netif_set_ipaddr: netif address being changed netif: IP address of interface \0\0 set to 192.168.1.35 [15:54:26.596]收←◆etharp_request: sending ARP request. pbuf_alloc(length=28) pbuf_alloc(length=28) == 30044008 etharp_raw: sending raw ARP packet. pbuf_header: old 30044028 new 3004401a (14) ethernet_output: sending packet 30044008 pbuf_free(30044008) pbuf_free: deallocating 30044008 netif: added interface st IP addr 192.168.1.35 netmask 255.255.255.0 gw 192.168.1.1 netif: setting default interface st sct calling h=cyclic_timer arg=080105e4 tcpip: ip_reass_tmr() sys_timeout: 24001014 msecs=1000 handler=cyclic_timer arg=080105e4 sct calling h=cyclic_timer arg=080105f0 tcpip: etharp_tmr() etharp_timer sys_timeout: 24001000 msecs=1000 handler=cyclic_timer arg=080105f0 sct calling h=cyclic_timer arg=080105fc tcpip: dns_tmr() dns_tmr: dns_check_entries sys_timeout: 24000fec msecs=1000 handler=cyclic_timer arg=080105fc [15:54:27.664]收←◆sct calling h=cyclic_timer arg=080105fc tcpip: dns_tmr() dns_tmr: dns_check_entries sys_timeout: 24000fec msecs=1000 handler=cyclic_timer arg=080105fc sct calling h=cyclic_timer arg=080105e4 tcpip: ip_reass_tmr() sys_timeout: 24001014 msecs=1000 handler=cyclic_timer arg=080105e4 |
另外H750的内核CM7带有cache,所以应该用MPU将DMA descriptor和发送buffer的地址区配置成Non Cacheable,同样可以参考NUCLEO-H743ZI的LWIP例子。
最后一个容易忽略的简单错误,如果是直连的话,配置IP地址时,电脑应该和stm32H750B-DK demo板在一个子网内。如果用了HDCP,就不要给板子配置固定的IP,HDCP服务器会自动分配。