21ic问答首页 - STM32移植LWIP问题
STM32移植LWIP问题
孙悟空啊2023-07-30
代码功能是创建客户端,静态ip,在407跑通了,但是直接复制移植到429的板子就运行报错,使用ucosii,请问可能是啥原因,lwip初始化成功,tcp客户端也初始化成功,之后就运行调试串口打印出这个
Assertion "arp_table.q == NULL" failed at line 369 in ..\LWIP\lwip-1.4.1\src\netif\etharp.c
那几行代码是
/* 1) empty entry available? */
if (empty < ARP_TABLE_SIZE) {
i = empty;
LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting empty entry %"U16_F"\n", (u16_t)i));
} else {
/* 2) found recyclable stable entry? */
if (old_stable < ARP_TABLE_SIZE) {
/* recycle oldest stable*/
i = old_stable;
LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest stable entry %"U16_F"\n", (u16_t)i));
/* no queued packets should exist on stable entries */
LWIP_ASSERT("arp_table.q == NULL", arp_table.q == NULL); //这里就是369行
/* 3) found recyclable pending entry without queued packets? */
}
Assertion "arp_table.q == NULL" failed at line 369 in ..\LWIP\lwip-1.4.1\src\netif\etharp.c
那几行代码是
/* 1) empty entry available? */
if (empty < ARP_TABLE_SIZE) {
i = empty;
LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting empty entry %"U16_F"\n", (u16_t)i));
} else {
/* 2) found recyclable stable entry? */
if (old_stable < ARP_TABLE_SIZE) {
/* recycle oldest stable*/
i = old_stable;
LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest stable entry %"U16_F"\n", (u16_t)i));
/* no queued packets should exist on stable entries */
LWIP_ASSERT("arp_table.q == NULL", arp_table.q == NULL); //这里就是369行
/* 3) found recyclable pending entry without queued packets? */
}
赞0
评论
2023-10-20
赞0
评论
2023-10-20
赞0
不知道啊
评论
2023-08-22
赞0
评论
2023-08-19
赞0
为什么会有这种问题?
评论
2023-08-15
赞0
评论
2023-08-15
赞0
不知道
评论
2023-08-15
赞0
评论
2023-08-15
赞0
评论
2023-08-14
怎么解决啊大佬
您需要登录后才可以回复 登录 | 注册