Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
H743
lwip2.02
stm32h743添加lwip2.02报发送错误,ping失败
发布于 2021-02-02 11:44:19 浏览:2881
订阅该版
说明: 1. 开发板:硬石YS-H7Pro, 芯片stm32h743iit6 2. 开发工具:win10系统,ip固定为192.168.2.201; IDE为rt-thread studio 2.0 3. 项目配置:按芯片型号添加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 4. 其他:默认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 ``` ![1.PNG](https://oss-club.rt-thread.org/uploads/20210202/bfb487c54baff4816b0e9c371ad088d9.png) ![2.PNG](https://oss-club.rt-thread.org/uploads/20210202/90f36718f529e255a873c67454ad0d41.png)
查看更多
whj467467222
认证专家
2021-02-02
开源,分享,交流,共同进步
RTT Studio 使用的编译器是 `GCC` 所以在`drv_eth.c` 中使用到 ```c #elif defined ( __GNUC__ ) /* GNU Compiler */ ETH_DMADescTypeDef DMARxDscrTab[ETH_RX_DESC_CNT] __attribute__((section(".RxDecripSection"))); /* Ethernet Rx DMA Descriptors */ ETH_DMADescTypeDef DMATxDscrTab[ETH_TX_DESC_CNT] __attribute__((section(".TxDecripSection"))); /* Ethernet Tx DMA Descriptors */ uint8_t Rx_Buff[ETH_RX_DESC_CNT][ETH_MAX_PACKET_SIZE] __attribute__((section(".RxArraySection"))); /* Ethernet Receive Buffers */ #endif ``` 这里的以太网描述符指定了固定的地址,所以需要修改联检文件,这个可以参考 [ART-Pi](https://github.com/RT-Thread-Studio/sdk-bsp-stm32h750-realthread-artpi/blob/master/projects/industry_io_gateway/board/linker_scripts/STM32H750XBHx/link.lds) 另外一下几点也请注意: 1. 内存堆的选择 2. MPU 的配置 如果还有疑问请追问,如果帮助到你请采纳。
2
个回答
默认排序
按发布时间排序
陈秋平
2021-04-15
这家伙很懒,什么也没写!
666
撰写答案
登录
注册新账号
关注者
0
被浏览
2.9k
关于作者
yrw1985
这家伙很懒,什么也没写!
提问
4
回答
0
被采纳
0
关注TA
发私信
相关问题
1
`scons --dist` 之后,缺少.s文件
2
h743iit6的bsp移植以后无法启动
3
H743 hard fault on thread: erx?
4
RTT H743 移植emwin 报错
5
RW007 TCP发送数据出现瞬间卡顿问题,请问是怎么回事?
6
LWIP 在netconn_free函数内报错
7
LWIP TCP连接失败
8
STM32H7的LWIP移植, lwip 2.0.2 在pbuf_free出错
9
LWIP移植,控制台一直打印数据
10
使用4G模块,PPP拨号无法获取IP地址,但是打开PPPDebug后就可以。
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
机器人操作系统 (ROS2) 和 RT-Thread 通信
4
国产MCU移植系列教程汇总,欢迎查看!
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
VISION BOARD 第二弹 基础工程配置和点亮一个LED灯
2
musb移植问题记录【设备注册3次挂起】
3
关于使用CherryUSB时候使用外挂的usb phy 芯片配置的一点注意事项
4
【Vision Board 创客营】Vision Board上的ADC实践
5
FRDM-MCXN947 & RT-Thread的CAN实践——控制GM6020云台电机
热门标签
RT-Thread Studio
串口
LWIP
Env
SPI
Bootloader
AT
ART-Pi
Hardfault
CAN总线
FinSH
USB
文件系统
RT-Thread
DMA
SCons
线程
RT-Thread Nano
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
ota在线升级
WIZnet_W5500
I2C_IIC
UART
flash
cubemx
packages_软件包
freemodbus
潘多拉开发板_Pandora
PWM
定时器
ADC
BSP
中断
keil_MDK
编译报错
socket
MicroPython
GD32
msh
Debug
ulog
SDIO总线
SFUD
rt_mq_消息队列_msg_queue
C++_cpp
本月问答贡献
xiaorui
7
个答案
3
次被采纳
sakumisu
4
个答案
3
次被采纳
三世执戟
31
个答案
1
次被采纳
梦笑真美
18
个答案
1
次被采纳
踩姑娘的小蘑菇
14
个答案
1
次被采纳
本月文章贡献
Z_Y
2
篇文章
5
次点赞
Alipay
2
篇文章
3
次点赞
2345vor
2
篇文章
1
次点赞
比特饼干
1
篇文章
6
次点赞
Lu_盼盼
1
篇文章
3
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部