Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
LAN8720
LWIP
STM32H750
STM32H750网卡驱动问题
发布于 2021-12-16 18:17:01 浏览:2374
订阅该版
编译环境:RT-THREAD Studio 系统版本:rt thread 4.0.3 LWiP版本:2.0.2 硬件环境:野火STM32H750开发板 PHY:LAN8720A 根据RTT Studio ART-PI开发板生成模板工程,添加网卡驱动,添加LWIP如下图   由于野火的开发板没有接硬件复位,采用软件复位,所以在程序里面屏蔽了这个引脚的初始化。一切准备就绪,修改LAN8720A硬件驱动,适配野火开发板。烧录程序开始测试:  一切运行正常,好消息。 开始双端ping测试,电脑ping开发板:  没丢包现象。好消息ping通了。再测试开发板ping电脑:  也没问题,准备收拾东西去吃饭。等会来再写应用程序。。。。此处省略****** 回来看到开发板出问题了,就知道没这么简单。 只见串口显示 : ``` [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天了??????
查看更多
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.4k
关于作者
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
STM32G030移植RT-Thread
2
CubeMX & RT-Thread Studio 联合开发说明
3
RT-Thread动态模块
4
RT-Thread项目助手v0.3 | Ubuntu与MacOS平台的RT-Thread Env
5
【FRA156测评DM-MCX】- 环境配置篇
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
rt-smart
RTC
FAL
I2C_IIC
ESP8266
UART
cubemx
WIZnet_W5500
ota在线升级
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
GD32
定时器
ADC
flashDB
编译报错
socket
中断
rt_mq_消息队列_msg_queue
Debug
keil_MDK
SFUD
msh
ulog
C++_cpp
MicroPython
本月问答贡献
lchnu
3
个答案
2
次被采纳
张世争
1
个答案
2
次被采纳
a1012112796
9
个答案
1
次被采纳
三世执戟
8
个答案
1
次被采纳
聚散无由
5
个答案
1
次被采纳
本月文章贡献
jinchanchan
9
篇文章
13
次点赞
ssdd45555
3
篇文章
2
次点赞
聚散无由
1
篇文章
4
次点赞
hywing
1
篇文章
1
次点赞
rvcore
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部