OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 6126|回复: 7

求助lwip相关问题

[复制链接]

57

主题

358

帖子

0

精华

高级会员

Rank: 4

积分
981
金钱
981
注册时间
2014-9-29
在线时间
261 小时
发表于 2017-9-24 22:42:59 | 显示全部楼层 |阅读模式
6金钱
本帖最后由 闪电之舞 于 2017-9-26 09:06 编辑

请教各位大佬  
移植lwip
ping不通  一般怎么查问题
目前是有数据  能进入中断处理
但是ping不通
下面有debug出来的信息

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165352
金钱
165352
注册时间
2010-12-1
在线时间
2108 小时
发表于 2017-9-25 00:44:52 | 显示全部楼层
回复

使用道具 举报

57

主题

358

帖子

0

精华

高级会员

Rank: 4

积分
981
金钱
981
注册时间
2014-9-29
在线时间
261 小时
 楼主| 发表于 2017-9-25 20:56:36 | 显示全部楼层
本帖最后由 闪电之舞 于 2017-9-26 17:42 编辑

有大神路过  指点指点啊    好纠结
回复

使用道具 举报

57

主题

358

帖子

0

精华

高级会员

Rank: 4

积分
981
金钱
981
注册时间
2014-9-29
在线时间
261 小时
 楼主| 发表于 2017-9-25 21:07:49 | 显示全部楼层
本帖最后由 闪电之舞 于 2017-9-25 22:00 编辑

另外附个debug所有信息
dns_init: initializing
netif: netmask of interface nterface 1
netif_set_ipaddr: netif address being changed
netif: IP address of interface netif: added interface st IP addr 192.168.1.105 netmask 255.255.255.0 gw 192.168.1.1
netif: setting default interface st
etharp_request: sending ARP request.
pbuf_alloc(length=28)
pbuf_alloc(length=28) == 20013e34
etharp_raw: sending raw ARP packet.
pbuf_header: old 20013e54 new 20013e46 (14)
ethernet_output: sending packet 20013e34
pbuf_free(20013e34)
pbuf_free: deallocating 20013e34
tcp_bind: bind to port 80
etharp_timer
dns_tmr: dns_check_entries
etharp_timer
dns_tmr: dns_check_entries
etharp_timer
dns_tmr: dns_check_entries
etharp_timer
dns_tmr: dns_check_entries
etharp_timer
dns_tmr: dns_check_entries
pbuf_alloc(length=60)
pbuf_alloc: allocated pbuf 20019d64
pbuf_alloc(length=60) == 20019d64
tcpip_thread: PACKET 200171c8
ethernet_input: dest:ff:ff:ff:ff:ff:ff, src:00:c2:c6:f3:76:40, type:806
pbuf_header: old 20019d74 new 20019d82 (-14)
etharp_update_arp_entry: 192.168.1.104 - 00:c2:c6:f3:76:40
etharp_find_entry: found empty entry 0
etharp_find_entry: selecting empty entry 0
etharp_update_arp_entry: updating stable entry 0
etharp_input: incoming ARP request
pbuf_alloc(length=28)
pbuf_alloc(length=28) == 20013e34
etharp_raw: sending raw ARP packet.
pbuf_header: old 20013e54 new 20013e46 (14)
ethernet_output: sending packet 20013e34
pbuf_free(20013e34)
pbuf_free: deallocating 20013e34
pbuf_free(20019d64)
pbuf_free: deallocating 20019d64
etharp_timer
dns_tmr: dns_check_entries
pbuf_alloc(length=60)
pbuf_alloc: allocated pbuf 20019d64
pbuf_alloc(length=60) == 20019d64
tcpip_thread: PACKET 200171c8
ethernet_input: dest:ff:ff:ff:ff:ff:ff, src:00:c2:c6:f3:76:40, type:806
pbuf_header: old 20019d74 new 20019d82 (-14)
etharp_update_arp_entry: 192.168.1.104 - 00:c2:c6:f3:76:40
etharp_find_entry: found matching entry 0
etharp_update_arp_entry: updating stable entry 0
etharp_input: incoming ARP request
pbuf_alloc(length=28)
pbuf_alloc(length=28) == 20013e34
etharp_raw: sending raw ARP packet.
pbuf_header: old 20013e54 new 20013e46 (14)
ethernet_output: sending packet 20013e34
pbuf_free(20013e34)
pbuf_free: deallocating 20013e34
pbuf_free(20019d64)
pbuf_free: deallocating 20019d64
etharp_timer
dns_tmr: dns_check_entries
etharp_timer
pbuf_alloc(length=60)
pbuf_alloc: allocated pbuf 20019d64
pbuf_alloc(length=60) == 20019d64
tcpip_thread: PACKET 200171c8
ethernet_input: dest:ff:ff:ff:ff:ff:ff, src:00:c2:c6:f3:76:40, type:806
pbuf_header: old 20019d74 new 20019d82 (-14)
etharp_update_arp_entry: 192.168.1.104 - 00:c2:c6:f3:76:40
etharp_find_entry: found matching entry 0
etharp_update_arp_entry: updating stable entry 0
etharp_input: incoming ARP request
pbuf_alloc(length=28)
pbuf_alloc(length=28) == 20013e34
etharp_raw: sending raw ARP packet.
pbuf_header: old 20013e54 new 20013e46 (14)
ethernet_output: sending packet 20013e34
pbuf_free(20013e34)
pbuf_free: deallocating 20013e34
pbuf_free(20019d64)
pbuf_free: deallocating 20019d64
dns_tmr: dns_check_entries
etharp_timer
dns_tmr: dns_check_entries
pbuf_alloc(length=60)
pbuf_alloc: allocated pbuf 20019d64
pbuf_alloc(length=60) == 20019d64
tcpip_thread: PACKET 200171c8
ethernet_input: dest:ff:ff:ff:ff:ff:ff, src:00:c2:c6:f3:76:40, type:806
pbuf_header: old 20019d74 new 20019d82 (-14)
etharp_update_arp_entry: 192.168.1.104 - 00:c2:c6:f3:76:40
etharp_find_entry: found matching entry 0
etharp_update_arp_entry: updating stable entry 0
etharp_input: incoming ARP request
pbuf_alloc(length=28)
pbuf_alloc(length=28) == 20013e34
etharp_raw: sending raw ARP packet.
pbuf_header: old 20013e54 new 20013e46 (14)
ethernet_output: sending packet 20013e34
pbuf_free(20013e34)
pbuf_free: deallocating 20013e34
pbuf_free(20019d64)
pbuf_free: deallocating 20019d64
etharp_timer
dns_tmr: dns_check_entries
pbuf_alloc(length=60)
pbuf_alloc: allocated pbuf 20019d64
pbuf_alloc(length=60) == 20019d64
tcpip_thread: PACKET 200171c8
ethernet_input: dest:ff:ff:ff:ff:ff:ff, src:00:c2:c6:f3:76:40, type:806
pbuf_header: old 20019d74 new 20019d82 (-14)
etharp_update_arp_entry: 192.168.1.104 - 00:c2:c6:f3:76:40
etharp_find_entry: found matching entry 0
etharp_update_arp_entry: updating stable entry 0
etharp_input: incoming ARP request
pbuf_alloc(length=28)
pbuf_alloc(length=28) == 20013e34
etharp_raw: sending raw ARP packet.
pbuf_header: old 20013e54 new 20013e46 (14)
ethernet_output: sending packet 20013e34
pbuf_free(20013e34)
pbuf_free: deallocating 20013e34
pbuf_free(20019d64)
pbuf_free: deallocating 20019d64
etharp_timer
dns_tmr: dns_check_entries
pbuf_alloc(length=60)
pbuf_alloc: allocated pbuf 20019d64
pbuf_alloc(length=60) == 20019d64
tcpip_thread: PACKET 200171c8
ethernet_input: dest:ff:ff:ff:ff:ff:ff, src:00:c2:c6:f3:76:40, type:806
pbuf_header: old 20019d74 new 20019d82 (-14)
etharp_update_arp_entry: 192.168.1.104 - 00:c2:c6:f3:76:40
etharp_find_entry: found matching entry 0
etharp_update_arp_entry: updating stable entry 0
etharp_input: incoming ARP request
pbuf_alloc(length=28)
pbuf_alloc(length=28) == 20013e34
etharp_raw: sending raw ARP packet.
pbuf_header: old 20013e54 new 20013e46 (14)
ethernet_output: sending packet 20013e34
pbuf_free(20013e34)
pbuf_free: deallocating 20013e34
pbuf_free(20019d64)
pbuf_free: deallocating 20019d64
etharp_timer
dns_tmr: dns_check_entries
pbuf_alloc(length=60)
pbuf_alloc: allocated pbuf 20019d64
pbuf_alloc(length=60) == 20019d64
tcpip_thread: PACKET 200171c8
ethernet_input: dest:ff:ff:ff:ff:ff:ff, src:00:c2:c6:f3:76:40, type:806
pbuf_header: old 20019d74 new 20019d82 (-14)
etharp_update_arp_entry: 192.168.1.104 - 00:c2:c6:f3:76:40
etharp_find_entry: found matching entry 0
etharp_update_arp_entry: updating stable entry 0
etharp_input: incoming ARP request
pbuf_alloc(length=28)
pbuf_alloc(length=28) == 20013e34
etharp_raw: sending raw ARP packet.
pbuf_header: old 20013e54 new 20013e46 (14)
ethernet_output: sending packet 20013e34
pbuf_free(20013e34)
pbuf_free: deallocating 20013e34
pbuf_free(20019d64)
pbuf_free: deallocating 20019d64
etharp_timer
dns_tmr: dns_check_entries
pbuf_alloc(length=60)
pbuf_alloc: allocated pbuf 20019d64
pbuf_alloc(length=60) == 20019d64
tcpip_thread: PACKET 200171c8
ethernet_input: dest:ff:ff:ff:ff:ff:ff, src:00:c2:c6:f3:76:40, type:806
pbuf_header: old 20019d74 new 20019d82 (-14)
etharp_update_arp_entry: 192.168.1.104 - 00:c2:c6:f3:76:40
etharp_find_entry: found matching entry 0
etharp_update_arp_entry: updating stable entry 0
etharp_input: incoming ARP request
pbuf_alloc(length=28)
pbuf_alloc(length=28) == 20013e34
etharp_raw: sending raw ARP packet.
pbuf_header: old 20013e54 new 20013e46 (14)
ethernet_output: sending packet 20013e34
pbuf_free(20013e34)
pbuf_free: deallocating 20013e34
pbuf_free(20019d64)
pbuf_free: deallocating 20019d64

回复

使用道具 举报

57

主题

358

帖子

0

精华

高级会员

Rank: 4

积分
981
金钱
981
注册时间
2014-9-29
在线时间
261 小时
 楼主| 发表于 2017-9-25 22:01:53 | 显示全部楼层
本帖最后由 闪电之舞 于 2017-9-25 22:26 编辑

求救啊   哪里出问题了
192.168.1.104是我的电脑   后面是ping之后debug出来的信息
回复

使用道具 举报

57

主题

358

帖子

0

精华

高级会员

Rank: 4

积分
981
金钱
981
注册时间
2014-9-29
在线时间
261 小时
 楼主| 发表于 2017-9-25 22:27:52 | 显示全部楼层

求帮看下下面的debug信息   能不能看出来哪里出错?
回复

使用道具 举报

57

主题

358

帖子

0

精华

高级会员

Rank: 4

积分
981
金钱
981
注册时间
2014-9-29
在线时间
261 小时
 楼主| 发表于 2017-9-26 17:43:16 | 显示全部楼层
:'(:'(:'(
回复

使用道具 举报

2

主题

7

帖子

0

精华

新手上路

积分
33
金钱
33
注册时间
2020-4-25
在线时间
9 小时
发表于 2020-12-9 11:04:27 | 显示全部楼层
一种是初始化有问题,另一种是硬件有问题
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-24 15:20

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表