Assertion "OSQCreate" failed at line 71 in ..\LWIP\arch\sys_arch.c错误解决方法
来源:互联网 发布:火狐javascript设置 编辑:程序博客网 时间:2024/06/09 14:36
最近在做STM32F407的开发板实验的时候,在开发板移植了uCosII和LWIP,按照正点原子的开发板例程,做到第八个实验(NETCONN TCP Client)的时候,出现了如下的错误。
Assertion "OSQCreate" failed at line 71 in ..\LWIP\arch\sys_arch.cAssertion "netconn_connect: invalid conn" failed at line 197 in ..\LWIP\lwip-1.4.1\src\api\api_lib.cAssertion "netconn_accept: invalid recvmbox" failed at line 464 in ..\LWIP\lwip-1.4.1\src\api\api_lib.c
原因:
在移植LWIP的时候,配置文件lwipopt.h的时候,写错了两个宏的名字。宏定义TCPIP_MBOX_SIZE和DEFALT_TCP_RECVMBOX_SIZE的名字,由于在opt.h中已经定义过了,默认值都是0,所有即时是在lwipopt.h写错,在编译的时候也没报错,正是由于这个原因,导致lwip内核无法分配发送和接收数据的邮箱队列。
END
阅读全文
0 0
- Assertion "OSQCreate" failed at line 71 in ..\LWIP\arch\sys_arch.c错误解决方法
- 解决错误:Assertion failed: hunk, file patch.c, line 321
- java.lang.instrument ASSERTION FAILED ***: "error == JVMTI_ERROR_NONE" at Reentrancy.c line: 161
- 关于 debug assertion failed, file:dlgdata.cpp,line"44 错误
- 关于 debug assertion failed, file:dlgdata.cpp,line"44 错误
- VC++ Debug Assertion Failed! 错误(File: winmdi.cpp Line: 141)
- c++ occcont.cpp line 925运行错误 Debug Assertion Failed
- C/C++出现Debug Assertion Failed!错误
- debug assertion failed dbgheap.c line:1044 问题解决
- debug assertion failed dbgheap.c line:1044 问题解决
- Debug Assertion Failed line:2553
- debug assertion failed line 40
- Debug Assertion Failed解决方法! !!
- 错误:Debug assertion failed
- [错误]Failed assertion in Init_IDT:g_handlerSizeNoErr == g_handlerSizeErr
- 关于C语言中Debug Assertion Failed解决方法
- 【c++】Debug Assertion Failed!
- Pro*C/C++ 预编译出现“ INTERNAL ERROR: Failed assertion [PGE Code=90105] ”错误的原因及解决方法。
- MySQL5.7安装及新建密码
- Eigen error C2039: “THIS_FUNCTION_IS_NOT_FOR_INTEGER_NUMERIC_TYPES”: 不是“Eigen::internal::static_asse
- OkHttp中response.body().string()解析
- swiper使用样例
- 无限轮播
- Assertion "OSQCreate" failed at line 71 in ..\LWIP\arch\sys_arch.c错误解决方法
- lua语言学习笔记
- Android中 跳转到系统设置界面
- Dubbo架构设计详解
- jQuery特殊属性之val方法
- usaco Friday the Thirteenth
- Plugin with id 'com.android.application' not found. 解决
- 面试系列-冒泡排序
- jvm 系统调优,确定高CPU程序代码