Assertion "OSQCreate" failed at line 71 in ..\LWIP\arch\sys_arch.c错误解决方法
2017-09-15 10:28
459 查看
最近在做STM32F407的开发板实验的时候,在开发板移植了uCosII和LWIP,按照正点原子的开发板例程,做到第八个实验(NETCONN TCP Client)的时候,出现了如下的错误。
原因:
在移植LWIP的时候,配置文件lwipopt.h的时候,写错了两个宏的名字。宏定义TCPIP_MBOX_SIZE和DEFALT_TCP_RECVMBOX_SIZE的名字,由于在opt.h中已经定义过了,默认值都是0,所有即时是在lwipopt.h写错,在编译的时候也没报错,正是由于这个原因,导致lwip内核无法分配发送和接收数据的邮箱队列。
Assertion "OSQCreate" failed at line 71 in ..\LWIP\arch\sys_arch.c Assertion "netconn_connect: invalid conn" failed at line 197 in ..\LWIP\lwip-1.4.1\src\api\api_lib.c Assertion "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
相关文章推荐
- Debug Assertion Failed! FIle:afxhtml.inl Line 57的错误的解决
- Debug Assertion Failed! FIle:afxhtml.inl Line 57的错误的解决
- MyEclipse中出现Multiple annotations found at this line: - Syntax error, insert "}" to complete 错误解决方法
- impdp错误 ORA-06512: at "SYS.UTL_FILE", line 536解决办法
- MyEclipse中出现Multiple annotations found at this line: - Syntax error, insert "}" to complete 错误解决方法
- File "/Volumes/android/.repo/repo/main.py", line 531, in <module> _Main(sys.argv[1:]) 解决方法
- [php错误]PHP中Notice: unserialize(): Error at offset of bytes in on line 的解决方法
- [php错误]PHP中Notice: unserialize(): Error at offset of bytes in on line 的解决方法
- MFC程序出现“Debug Assertion Failed! File:afx.inl Line:177”错误
- PHP "Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0" 错误
- junit.framework.AssertionFailedError: No tests found in错误解决办法
- Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at SimpleCalculator.main的解决方法
- wget下载出现failed: Temporary failure in name resolution 错误解决方法[转]
- can't find “.vmx" line 1: Syntax error.”错误的解决方法
- MFC程序出现“Debug Assertion Failed! File:afx.inl Line:177”错误
- 解决错误:Assertion failed: hunk, file patch.c, line 321
- 关于写入文件缓存时报"java.io.FileNotFoundException open failed (is a director)"错误的解决方法
- androidstudio 报Failed to complete Gradle execution.Cause: Unknown command-line option '-x'错误的解决方法
- linux下mysql提示"mysql deamon failed to start"错误的解决方法
- python "No module named _sysconfigdata_nd"错误解决方法