2 mazihong mazihong 于 2016.09.07 21:01 提问

LwIP收发问题 tcp_write 、tcp_receive 50C

最近做一个项目,无操作系统LwIP在stm32F4上面跑。网络数据接收一切都正常进行着,但是串口打印偶尔出现以下收发错误。
tcp_write: pbufs on queue => at least one queue non-empty at File:./lwip/core/tcp_out.c,Line:328
tcp_receive: valid queue length at File:./lwip/core/tcp_in.c,Line:1031

后续会悬赏20个金币。谢谢大神。

1个回答

mazihong
mazihong   2016.09.08 08:22

问题补充:详细的打印错误信息。
Assertion "tcp_receive: valid queue length" failed at line 1031 in ..\LWIP\lwip-1.4.1\src\core\tcp_in.c
Assertion "tcp_write: pbufs on queue => at least one queue non-empty" failed at line 328 in ..\LWIP\lwip-1.4.1\src\core\tcp_out.c
Assertion "tcp_receive: valid queue length" failed at line 1031 in ..\LWIP\lwip-1.4.1\src\core\tcp_in.c
Assertion "tcp_write: pbufs on queue => at least one queue non-empty" failed at line 328 in ..\LWIP\lwip-1.4.1\src\core\tcp_out.c
Assertion "tcp_receive: valid queue length" failed at line 1031 in ..\LWIP\lwip-1.4.1\src\core\tcp_in.c
Assertion "tcp_write: pbufs on queue => at least one queue non-empty" failed at line 328 in ..\LWIP\lwip-1.4.1\src\core\tcp_out.c

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!