[其他ST产品] stm32h743添加lwip2.02报发送错误ping失败怎么办?

[复制链接]
 楼主| onlycook 发表于 2023-2-21 11:33 | 显示全部楼层 |阅读模式
说明:
开发板:硬石YS-H7Pro, 芯片stm32h743iit6
开发工具:win10系统,ip固定为192.168.2.201; IDE为rt-thread studio 2.0
项目配置:按芯片型号添加RT-Thread v4.02项目;board.h取消eth部分相应注释,启动lan8720驱动;stm32h7xx_hal_conf中取消HAL_ETH_MODULE_ENABLED注释;board.c中添加eth_msp初始化及phy_reset函数;rt-thread设置添加LWIP,取消DHCP,固定ip为192.168.2.100
其他:默认drvers下面的drv_eth驱动报错,从art-pi的sdk中拷贝drv_eth.c及drv_eth.h,并修改phy_reset部分;
问题:
编译下载后,网络连接状态正常,不过报DMA发送失败,双向ping不通。
\ | /
RT - Thread Operating System
/ | \ 4.0.2 build Feb 2 2021
2006 - 2019 Copyright by rt-thread team
lwIP-2.0.2 initialized!
[I/sal.skt] Socket Abstraction Layer initialize success.
[W/drv.emac] eth transmit frame faild: 8
msh >
RT-Thread shell commands:
ifconfig - list the information of all network interfaces
ping - ping network host
dns - list and set the information of dns
netstat - list the information of TCP / IP
version - show RT-Thread version information
list_thread - list thread
list_sem - list semaphore in system
list_event - list event in system
list_mutex - list mutex in system
list_mailbox - list mail box in system
list_msgqueue - list message queue in system
list_mempool - list memory pool in system
list_timer - list timer in system
list_device - list device in system
exit - return to RT-Thread shell mode.
help - RT-Thread shell help.
ps - List threads in the system.
free - Show the memory usage in the system.
reboot - Reboot System
msh >ifconfig
network interface device: e0 (Default)
MTU: 1500
MAC: 00 80 e1 17 3d 22
FLAGS: UP LINK_UP INTERNET_DOWN DHCP_DISABLE ETHARP BROADCAST IGMP
ip address: 192.168.2.100
gw address: 0.0.0.0
net mask : 255.255.255.0
dns server #0: 0.0.0.0
dns server #1: 0.0.0.0
msh >ping 192.168.2.201
[W/drv.emac] eth transmit frame faild: 24
[W/drv.emac] eth transmit frame faild: 24
[W/drv.emac] eth transmit frame faild: 24
ping: from 192.168.2.201 icmp_seq=0 timeout
[W/drv.emac] eth transmit frame faild: 18
[W/drv.emac] eth transmit frame faild: 18
ping: from 192.168.2.201 icmp_seq=1 timeout
ping: from 192.168.2.201 icmp_seq=2 timeout
[W/drv.emac] eth transmit frame faild: 18
[W/drv.emac] eth transmit frame faild: 18
[W/drv.emac] eth transmit frame faild: 18
ping: from 192.168.2.201 icmp_seq=3 timeout
msh >[W/drv.emac] eth transmit frame faild: 18
[W/drv.emac] eth transmit frame faild: 18
[W/drv.emac] eth transmit frame faild: 18

未说出口的像你 发表于 2023-3-12 19:43 | 显示全部楼层
该说不说,硬石的开发板属实很好,做的非常好

将爱藏于深海 发表于 2023-3-12 20:17 | 显示全部楼层
Ping失败一般都是超时了,是不是网络不好呢?

温室雏菊 发表于 2023-3-12 22:11 | 显示全部楼层
这种ping有可能是防火墙的问题

风凉 发表于 2023-3-12 23:17 | 显示全部楼层
你用局域网试试吧,避免防火墙的影响

捧一束彼岸花 发表于 2023-3-13 01:37 | 显示全部楼层
你是不是驱动没配置对啊?

故意相遇 发表于 2023-3-13 02:43 | 显示全部楼层
不太会用lwip,这个配置的话是不是很难啊?

白马过平川 发表于 2023-3-13 04:07 | 显示全部楼层
网络连接正常,但ping不通?这是不是遇到防火墙了啊

月亮一键变蓝 发表于 2023-3-13 07:31 | 显示全部楼层
用的RTT啊,这种操作系统只能打log了,不能仿真,比较难弄

在曼谷的春 发表于 2023-3-13 11:25 | 显示全部楼层
最好还是检查一下网络,看看咋回事儿,应该能找到原因

一只眠羊 发表于 2023-3-13 14:22 | 显示全部楼层
你都改啥了?是不是驱动部分改错了

SantaBunny 发表于 2023-5-5 23:38 | 显示全部楼层
用局域网试试,是不是遇到防火墙了
jiajs 发表于 2023-5-15 22:08 | 显示全部楼层
该说不说,硬石的开发板属实很好,做的非常好
zhanghqi 发表于 2023-5-15 22:09 | 显示全部楼层
Ping失败一般都是超时了,是不是网络不好呢?
guoyt 发表于 2023-5-15 22:11 | 显示全部楼层
这种ping有可能是防火墙的问题
llia 发表于 2023-5-15 22:14 | 显示全部楼层
你用局域网试试吧,避免防火墙的影响
chenjunt 发表于 2023-5-15 22:16 | 显示全部楼层
你是不是驱动没配置对啊?
zhanghqi 发表于 2023-5-15 22:18 | 显示全部楼层
不太会用lwip,这个配置的话是不是很难啊?
stly 发表于 2023-5-15 22:21 | 显示全部楼层
网络连接正常,但ping不通?这是不是遇到防火墙了啊
langgq 发表于 2023-5-15 22:23 | 显示全部楼层
用的RTT啊,这种操作系统只能打log了,不能仿真,比较难弄
您需要登录后才可以回帖 登录 | 注册

本版积分规则

487

主题

2003

帖子

4

粉丝
快速回复 在线客服 返回列表 返回顶部