打印
[其他ST产品]

lwip 裸机 M3

[复制链接]
957|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
horizonzdl|  楼主 | 2015-7-9 15:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 horizonzdl 于 2015-7-9 15:29 编辑

lwip 裸机移植到M3核(FPGA内的软核),ping 192.168.1.18,不通, 调试信息如下,能够确定是网口驱动还是协议栈的问题吗
下面是调试串口输出:
只发送一次,会接收很多次。使用抓包工具,只有ARP请求,没有回应。
netif_set_ipaddr: netif address beingchanged
netif: IP address of interface et to  192. 168.  1.  18
netif: netmask of interface set to  255. 255. 255.   0
netif: GW address of interface  192. 168. 1. 1
PHY runs in 1000M speed full duplex
Eth_88e11 Init finish
netif: added interface ST IP addr  192. 168. 1. 18 netmask  255. 255. 255.   0 gw 192. 168. 1. 1
netif: setting default interface ST
etharp_request: sending ARP request.
pbuf_alloc(length=  42)
pbuf_alloc(length=  42) == 20005bb0
etharp_raw: sending raw ARP packet.
Sent Ethernet frame 0:
0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x54 0x55
0x58 0x10 0x00 0x24 0x08 0x06 0x00 0x01
0x08 0x00 0x06 0x04 0x00 0x01 0x54 0x55
0x58 0x10 0x00 0x24 0xC0 0xA8 0x01 0x12
0x00 0x00 0x00 0x00 0x00 0x00 0xC0 0xA8
0x01 0x12
-----------------
Received Ethernet frame 348:
  0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x10 0xC3
  0x7B 0x8E 0xF8 0xE4 0x08 0x06 0x00 0x01
  0x08 0x00 0x06 0x04 0x00 0x01 0x10 0xC3
  0x7B 0x8E 0xF8 0xE4 0xC0 0xA8 0x01 0x01
  0x00 0x00 0x00 0x00 0x00 0x00 0xC0 0xA8
  0x01 0x12 0x00 0x00 0x00 0x00 0x00 0x00
  0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  0x00 0x00 0x00 0x00
-----------------
ethernet_input: dest:f6:00:00:00:00:00, src:00:00:00:00:00:00, type: 0
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
etharp_timer

Received Ethernet frame 349:
  0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x10 0xC3
  0x7B 0x8E 0xF8 0xE4 0x08 0x06 0x00 0x01
  0x08 0x00 0x06 0x04 0x00 0x01 0x10 0xC3
  0x7B 0x8E 0xF8 0xE4 0xC0 0xA8 0x01 0x01
  0x00 0x00 0x00 0x00 0x00 0x00 0xC0 0xA8
  0x01 0x12 0x00 0x00 0x00 0x00 0x00 0x00
  0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  0x00 0x00 0x00 0x00
-----------------
ethernet_input: dest:e0:00:00:00:00:00, src:00:00:00:00:00:00, type: 0
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
etharp_timer
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs
tcp_slowtmr: no active pcbs

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

本版积分规则

1

主题

1

帖子

0

粉丝