cpt121 发表于 2019-12-18 15:55:44

stm32H750B-DK demo板调试LAN8740无法ping通

最近在调试STM32750的lwip用cubeMX生成的工程。 但是一直ping不通,下图是板子运行的LOG。收←◆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

收←◆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

收←◆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

天臆弄人 发表于 2020-1-9 08:26:22

看不懂,你贴代码我就懂了

butterflyspring 发表于 2020-1-19 22:06:35

刚好遇到了一位大神,用过这板子,下面是他的建议,希望对你有帮助:Ping 不通有很多原因。建议参考CUBE库中NUCLEO-H743ZI的LWIP例子,检查以太网的初始化是否有问题。
另外H750的内核CM7带有cache,所以应该用MPU将DMA descriptor和发送buffer的地址区配置成Non Cacheable,同样可以参考NUCLEO-H743ZI的LWIP例子。
最后一个容易忽略的简单错误,如果是直连的话,配置IP地址时,电脑应该和stm32H750B-DK demo板在一个子网内。如果用了HDCP,就不要给板子配置固定的IP,HDCP服务器会自动分配。

aiherong 发表于 2020-1-21 06:00:52

LWIP占用资源应该算是很少了,若直接联网电脑形成对等网,需是交叉连接型网线
页: [1]
查看完整版本: stm32H750B-DK demo板调试LAN8740无法ping通