打印
[其他ST产品]

stm32h743添加lwip2.02报发送错误ping失败怎么办?

[复制链接]
404|32
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
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有可能是防火墙的问题

使用特权

评论回复
5
风凉| | 2023-3-12 23:17 | 只看该作者
你用局域网试试吧,避免防火墙的影响

使用特权

评论回复
6
捧一束彼岸花| | 2023-3-13 01:37 | 只看该作者
你是不是驱动没配置对啊?

使用特权

评论回复
7
故意相遇| | 2023-3-13 02:43 | 只看该作者
不太会用lwip,这个配置的话是不是很难啊?

使用特权

评论回复
8
白马过平川| | 2023-3-13 04:07 | 只看该作者
网络连接正常,但ping不通?这是不是遇到防火墙了啊

使用特权

评论回复
9
月亮一键变蓝| | 2023-3-13 07:31 | 只看该作者
用的RTT啊,这种操作系统只能打log了,不能仿真,比较难弄

使用特权

评论回复
10
在曼谷的春| | 2023-3-13 11:25 | 只看该作者
最好还是检查一下网络,看看咋回事儿,应该能找到原因

使用特权

评论回复
11
一只眠羊| | 2023-3-13 14:22 | 只看该作者
你都改啥了?是不是驱动部分改错了

使用特权

评论回复
12
SantaBunny| | 2023-5-5 23:38 | 只看该作者
用局域网试试,是不是遇到防火墙了

使用特权

评论回复
13
jiajs| | 2023-5-15 22:08 | 只看该作者
该说不说,硬石的开发板属实很好,做的非常好

使用特权

评论回复
14
zhanghqi| | 2023-5-15 22:09 | 只看该作者
Ping失败一般都是超时了,是不是网络不好呢?

使用特权

评论回复
15
guoyt| | 2023-5-15 22:11 | 只看该作者
这种ping有可能是防火墙的问题

使用特权

评论回复
16
llia| | 2023-5-15 22:14 | 只看该作者
你用局域网试试吧,避免防火墙的影响

使用特权

评论回复
17
chenjunt| | 2023-5-15 22:16 | 只看该作者
你是不是驱动没配置对啊?

使用特权

评论回复
18
zhanghqi| | 2023-5-15 22:18 | 只看该作者
不太会用lwip,这个配置的话是不是很难啊?

使用特权

评论回复
19
stly| | 2023-5-15 22:21 | 只看该作者
网络连接正常,但ping不通?这是不是遇到防火墙了啊

使用特权

评论回复
20
langgq| | 2023-5-15 22:23 | 只看该作者
用的RTT啊,这种操作系统只能打log了,不能仿真,比较难弄

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

389

主题

1473

帖子

3

粉丝