搜索
查看: 1488|回复: 3

[求助] stm32H750B-DK demo板调试LAN8740无法ping通

[复制链接]

该用户从未签到

4

主题

13

帖子

0

蝴蝶豆

中级会员

最后登录
2021-3-1
发表于 2019-12-18 15:55:44 | 显示全部楼层 |阅读模式
最近在调试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

回复

使用道具 举报

该用户从未签到

10

主题

195

帖子

65

蝴蝶豆

金牌会员

最后登录
2023-9-26
发表于 2020-1-9 08:26:22 | 显示全部楼层
看不懂,你贴代码我就懂了
回复 支持 反对

使用道具 举报

该用户从未签到

3

主题

1306

帖子

929

蝴蝶豆

版主

最后登录
2021-3-31
发表于 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服务器会自动分配。
回复 支持 反对

使用道具 举报

该用户从未签到

17

主题

470

帖子

68

蝴蝶豆

金牌会员

最后登录
2022-5-6
发表于 2020-1-21 06:00:52 | 显示全部楼层
LWIP占用资源应该算是很少了,若直接联网电脑形成对等网,需是交叉连接型网线
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|论坛-意法半导体STM32/STM8技术社区

GMT+8, 2024-4-27 12:58 , Processed in 0.163239 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表