-
STM32移植LWIP问题
代码功能是创建客户端,静态ip,在407跑通了,但是直接复制移植到429的板子就运行报错,使用ucosii,请问可能是啥原因,lwip初始化成功,tcp客户端也初始化成功,之后就运行调试串口打印出这个Assertion"arp_table.q==NULL"failedatline369in..\LWIP\lwip-1.4.1\src\netif\etharp.c那几行代码是/*1)emptyentryavailable?*/if(empty<ARP_TABLE_SIZE){i=empty;LWIP_DEBUGF(ETHARP_DEBUG|LWIP_DBG_TRACE,("etharp_find_entry:selectingemptyentry%"U16_F"\n",(u16_t)i));}else{/*2)foundrecyclablestableentry?*/if(old_stable<ARP_TABLE_SIZE){/*recycleoldeststable*/i=old_stable;LWIP_DEBUGF(ETHARP_DEBUG|LWIP_DBG_TRACE,("etharp_find_entry:selectingoldeststableentry%"U16_F"\n",(u16_t)i));/*noqueuedpacketsshouldexistonstableentries*/LWIP_ASSERT("arp_table.q==NULL",arp_table.q==NULL);//这里就是369行/*3)foundrecyclablependingentrywithoutqueuedpackets?*/}
2023-07-30 21