Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
PHY_LAN8720A
LWIP
STM32H750
STM32H750网卡驱动问题
发布于 2021-12-16 18:17:01 浏览:1581
订阅该版
编译环境: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)
查看更多
3
个回答
默认排序
按发布时间排序
aozima
2021-12-17
调网络不抓包,调I2C等时序不上逻辑分析仪,就像电工不用万用表!多用整理的好的文字,比截图更省流量,还能在整理过程中思考。
换个板子试试
出出啊
2021-12-17
恃人不如自恃,人之为己者不如己之自为也
> 也没问题,准备收拾东西去吃饭。等会来再写应用程序。。。。此处省略 回来看到开发板出问题了,就知道没这么简单。 此期间办公司无人,我的座位是锁着的 啥意思?你的意思是 ping 通以后,没有跑应用程序,放着不管,后面就出现错误了?
Dbug洋葱
2021-12-17
这家伙很懒,什么也没写!
我还什么应用都没写了 就还只是移植完成 就去吃饭了 回来就出错了
撰写答案
登录
注册新账号
关注者
0
被浏览
1.6k
关于作者
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
机器人操作系统 (ROS2) 和 RT-Thread 通信
4
五分钟玩转RT-Thread新社区
5
国产MCU移植系列教程汇总,欢迎查看!
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
[Vision Board创客营]学习片上Flash移植FAL
2
MCXN947测评系列(二)串口设备测评
3
NXP MCXN947实践:基于 rt-thread的驱动模块配置PWM
4
测试DFS+elm的删除命令rm,有点搞笑的经历
5
vision board 开箱
热门标签
RT-Thread Studio
串口
LWIP
Env
SPI
Bootloader
AT
ART-Pi
CAN总线
Hardfault
FinSH
USB
文件系统
DMA
RT-Thread
SCons
线程
RT-Thread Nano
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
ota在线升级
WIZnet_W5500
I2C_IIC
UART
cubemx
flash
packages_软件包
freemodbus
潘多拉开发板_Pandora
PWM
定时器
ADC
BSP
中断
keil_MDK
socket
编译报错
MicroPython
GD32
msh
Debug
ulog
SDIO总线
SFUD
rt_mq_消息队列_msg_queue
C++_cpp
本月问答贡献
sakumisu
4
个答案
3
次被采纳
xiaorui
5
个答案
2
次被采纳
三世执戟
31
个答案
1
次被采纳
梦笑真美
15
个答案
1
次被采纳
踩姑娘的小蘑菇
13
个答案
1
次被采纳
本月文章贡献
Z_Y
2
篇文章
5
次点赞
2345vor
2
篇文章
1
次点赞
比特饼干
1
篇文章
6
次点赞
Lu_盼盼
1
篇文章
3
次点赞
猪的行独
1
篇文章
3
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部