【LWIP学习营】第一关开发环境搭建

发布于 2018-05-09 20:58:43
关注RTT很久了,正常这次有个“LWIP学习营”活动,赶快参加了;
后面会发帖纪录下自己的这个活动过程;
硬件RB4088;
搭建开发环境:
1:下载RTT 3.0.3;
这里我时候用的是source tree ,代码同步下来之后是停留在master最新的提交上的,这里我回退到了v3.03 标签处;
2: 下载 ENV 工具 https://pan.baidu.com/s/1cg28rk#list/path=%2F
配套的使用说明:https://www.rt-thread.org/document/site/rtthread-development-guide/rtthread-tool-manual/env/env-user-manual/
下载ENV工具之后,按照使用说明操作就好;
在这中间遇到一个问题:
同步v3.0.3代码之后直接MDK 编译 BSP->lpc4088 报错,提示丢失;
解决方法,用ENV重新生成一个工程编译通过;


查看更多

关注者
0
被浏览
1.1k
3 个回答
男子汉、
男子汉、 2018-05-09
在 v3.03版本 env 中 运行menuconfig 提示缺少kconfig;
切换当前master 分支,在menuconfig 中配置 enable lwip stack ,scons编译,报错
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build\applications\application.o
In file included from C:\Users\hmchen\Documents\workspace\fw\RTT\include/rtthread.h:36:0,
from applications\application.c:15:
C:\Users\hmchen\Documents\workspace\fw\RTT\include/rtdebug.h:33:2: error: #error "POSIX poll/select, stdin need file BSD socket API(RT_USING_DFS_NET)"
#error "POSIX poll/select, stdin need file BSD socket API(RT_USING_DFS_NET)"
^
scons: *** [build\applications\application.o] Error 1
scons: building terminated because of errors.
男子汉、
男子汉、 2018-05-09
取消 enable lwip stack,scons编译 报错
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build\applications\application.o
CC build\applications\canapp.o
applications\canapp.c:30:23: error: macro "RT_CAN_FILTER_ITEM_INIT" requires 7 arguments, but only 5 given
LPC_CAN_AF_STD_INIT(1),
^
In file included from applications\canapp.c:19:0:
drivers/drv_lpccan.h:21:6: error: 'RT_CAN_FILTER_ITEM_INIT' undeclared here (not in a function)
RT_CAN_FILTER_ITEM_INIT(id,0,0,0,0xFFFFFFFF)
^
applications\canapp.c:30:2: note: in expansion of macro 'LPC_CAN_AF_STD_INIT'
LPC_CAN_AF_STD_INIT(1),
^
applications\canapp.c:31:29: error: macro "RT_CAN_FILTER_ITEM_INIT" requires 7 arguments, but only 5 given
LPC_CAN_AF_STD_GRP_INIT(3,5),
^
applications\canapp.c:32:23: error: macro "RT_CAN_FILTER_ITEM_INIT" requires 7 arguments, but only 5 given
LPC_CAN_AF_EXT_INIT(2),
^
applications\canapp.c:33:29: error: macro "RT_CAN_FILTER_ITEM_INIT" requires 7 arguments, but only 5 given
LPC_CAN_AF_EXT_GRP_INIT(4,6),
^
scons: *** [build\applications\canapp.o] Error 1
scons: building terminated because of errors.
moss
moss 2018-05-10
  • 你可以先把 canapp.c 删掉,如果目前用不到的话

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友