Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
PHY_LAN8720A
LWIP
STM32H750
STM32H750网卡驱动问题
发布于 2021-12-16 18:17:01 浏览:2315
订阅该版
编译环境:RT-THREAD Studio 系统版本:rt thread 4.0.3 LWiP版本:2.0.2 硬件环境:野火STM32H750开发板 PHY:LAN8720A 根据RTT Studio ART-PI开发板生成模板工程,添加网卡驱动,添加LWIP如下图 ![image.png](https://oss-club.rt-thread.org/uploads/20211216/c6db7dab119df62f3b1d86cc56de06ba.png.webp) ![image.png](https://oss-club.rt-thread.org/uploads/20211216/6f19b5b589f30905e06d9756096dfd5f.png) 由于野火的开发板没有接硬件复位,采用软件复位,所以在程序里面屏蔽了这个引脚的初始化。一切准备就绪,修改LAN8720A硬件驱动,适配野火开发板。烧录程序开始测试: ![image.png](https://oss-club.rt-thread.org/uploads/20211216/c66b9ab4e59fa64e8063c47a6f1e127c.png) 一切运行正常,好消息。 开始双端ping测试,电脑ping开发板: ![image.png](https://oss-club.rt-thread.org/uploads/20211216/0546e5e534b9288e9d0e4db48e171ed7.png) 没丢包现象。好消息ping通了。再测试开发板ping电脑: ![image.png](https://oss-club.rt-thread.org/uploads/20211216/0f9c1b61d4f8491cfc70fc421989ec08.png) 也没问题,准备收拾东西去吃饭。等会来再写应用程序。。。。此处省略****** 回来看到开发板出问题了,就知道没这么简单。 只见串口显示 : ``` [D/drv.emac] phy basic status reg is 0x7809 [I/drv.emac] link down [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x7809 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [D/drv.emac] link up [D/drv.emac] 10Mbps [D/drv.emac] half-duplex [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [W/drv.emac] eth transmit frame faild: 4 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [W/drv.emac] eth transmit frame faild: 20 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [W/drv.emac] eth transmit frame faild: 20 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [W/drv.emac] eth transmit frame faild: 20 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [W/drv.emac] eth transmit frame faild: 18 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [W/drv.emac] eth transmit frame faild: 18 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [W/drv.emac] eth transmit frame faild: 18 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [W/drv.emac] eth transmit frame faild: 18 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [W/drv.emac] eth transmit frame faild: 18 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [W/drv.emac] eth transmit frame faild: 18 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 [D/drv.emac] phy basic status reg is 0x780D [D/drv.emac] phy control status reg is 0x44 ``` 此期间办公司无人,我的座位是锁着的,莫非是网线问题。于是换了条网线测试,还是一样,过一段时间还是会出现上述错误。来此想问问大佬们,这种情况咋解决。这种错误有时候要过很久才能出来,有时候一会就出来了。 连线方式: 电脑==》路由器《==开发板。如果有大佬遇到过还请指教,拜托了,已经调试了7天了??????![image.png](https://oss-club.rt-thread.org/uploads/20211216/59b390f64c4f64c7b75e0426922dd0e0.png.webp)
查看更多
5
个回答
默认排序
按发布时间排序
aozima
2021-12-17
调网络不抓包,调I2C等时序不上逻辑分析仪,就像电工不用万用表!多用整理的好的文字,比截图更省流量,还能在整理过程中思考。
换个板子试试
出出啊
2021-12-17
恃人不如自恃,人之为己者不如己之自为也
> 也没问题,准备收拾东西去吃饭。等会来再写应用程序。。。。此处省略 回来看到开发板出问题了,就知道没这么简单。 此期间办公司无人,我的座位是锁着的 啥意思?你的意思是 ping 通以后,没有跑应用程序,放着不管,后面就出现错误了?
Dbug洋葱
2021-12-17
这家伙很懒,什么也没写!
我还什么应用都没写了 就还只是移植完成 就去吃饭了 回来就出错了
夏天晚风
2024-04-23
这家伙很懒,什么也没写!
你好,请问PHY:LAN8720A 偶发 LINK DOWN的问题,最后解决了吗?可否赐教?谢谢了!
JasonWu
2025-01-22
这家伙很懒,什么也没写!
按照你的配置方法,就检查了,但总是报以太网帧发送失败, [W/drv.emac] eth transmit frame faild: 20
撰写答案
登录
注册新账号
关注者
0
被浏览
2.3k
关于作者
Dbug洋葱
这家伙很懒,什么也没写!
提问
7
回答
2
被采纳
0
关注TA
发私信
相关问题
1
RT-THREAD在STM32H747平台上移植lwip
2
{lwip}使能RT_LWIP_DHCP时可以获取到ip
3
stm32f103 LWIP 2.0.2 TCP收发问题
4
lwip2.1不重启修改IP
5
关于网络协议栈的测试
6
可否将LWIP升级到2.1.2 和 2.0.3?
7
socket(AF_INET, SOCK_RAW, IPPROTO_UDP);
8
tcpclient 插拔网线问题?
9
两个tcpclient同时通讯可以吗?
10
SO_BINDTODEVICE 未定义该如何解决
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
RT-thred的stm32h723对应bsp包CubeMX添加其他外设报错
2
RT-Thread中的time溢出问题,时间戳溢出,解决方法
3
ART-PI使用env驱动ETH网卡,pc和板子可以ping通
4
SystemView线程名字不显示
5
只用网页也能跑RT-Smart 无门槛腾讯Cloud studio + smart-build快速构建
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
rt-smart
FAL
I2C_IIC
UART
ESP8266
cubemx
WIZnet_W5500
ota在线升级
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
keil_MDK
ulog
SFUD
msh
C++_cpp
MicroPython
本月问答贡献
RTT_逍遥
8
个答案
2
次被采纳
KunYi
8
个答案
1
次被采纳
三世执戟
7
个答案
1
次被采纳
winfeng
2
个答案
1
次被采纳
chenyaxing
2
个答案
1
次被采纳
本月文章贡献
catcatbing
2
篇文章
5
次点赞
swet123
1
篇文章
4
次点赞
Days
1
篇文章
3
次点赞
YZRD
1
篇文章
2
次点赞
阳光的掌控者
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部