Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
FinSH
关于Finsh组件从项目中删除问题
发布于 2019-01-09 16:21:16 浏览:3298
订阅该版
目前在项目工程中通过finsh已经基本调试通了AT组件,现在想把Finsh从项目中删除,目前如下做法,编译器是IAR6.5 1. 屏蔽rtconfig.h中RT_USING_FINSH,有85个警告和1个error。Warning[Pe047]: incompatible redefinition of macro "FINSH_VAR_EXPORT" (declared at line 224 of "D:\workspace\stm32_rt_thread t_thread_F2\ D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32 t-thread\components\finsh\finsh_api.h 115 rtthread_stm32 t-thread\include tdef.h") Warning[Pe047]: incompatible redefinition of macro "FINSH_FUNCTION_EXPORT" (declared at line 222 of "D:\workspace\stm32_rt_thread t_thread_F2\ D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32 t-thread\components\finsh\finsh_api.h 198 rtthread_stm32 t-thread\include tdef.h") Warning[Pe047]: incompatible redefinition of macro "FINSH_FUNCTION_EXPORT_ALIAS" (declared at line 223 of "D:\workspace\stm32_rt_thread t_thread_F2\ D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32 t-thread\components\finsh\finsh_api.h 210 rtthread_stm32 t-thread\include tdef.h") Warning[Pe047]: incompatible redefinition of macro "MSH_CMD_EXPORT" (declared at line 226 of "D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32\ D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32 t-thread\components\finsh\finsh_api.h 222 rt-thread\include tdef.h") Warning[Pe047]: incompatible redefinition of macro "MSH_CMD_EXPORT_ALIAS" (declared at line 227 of "D:\workspace\stm32_rt_thread t_thread_F2\ D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32 t-thread\components\finsh\finsh_api.h 224 rtthread_stm32 t-thread\include tdef.h") 警告重复出现都是在 rtdef.h中 Error[Li005]: no definition for "list_mem" [referenced from D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32\Debug\Obj\msh_cmd.o] 2. 将finsh代码也从项目中删除,仍然会有5个不兼容的重复定义警告 Warning[Pe047]: incompatible redefinition of macro "FINSH_VAR_EXPORT" (declared at line 224 of "D:\workspace\stm32_rt_thread t_thread_F2\ D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32 t-thread\components\finsh\finsh_api.h 115 rtthread_stm32 t-thread\include tdef.h") Warning[Pe047]: incompatible redefinition of macro "FINSH_FUNCTION_EXPORT" (declared at line 222 of "D:\workspace\stm32_rt_thread t_thread_F2\ D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32 t-thread\components\finsh\finsh_api.h 198 rtthread_stm32 t-thread\include tdef.h") Warning[Pe047]: incompatible redefinition of macro "FINSH_FUNCTION_EXPORT_ALIAS" (declared at line 223 of "D:\workspace\stm32_rt_thread t_thread_F2\ D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32 t-thread\components\finsh\finsh_api.h 210 rtthread_stm32 t-thread\include tdef.h") Warning[Pe047]: incompatible redefinition of macro "MSH_CMD_EXPORT" (declared at line 226 of "D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32\ D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32 t-thread\components\finsh\finsh_api.h 222 rt-thread\include tdef.h") Warning[Pe047]: incompatible redefinition of macro "MSH_CMD_EXPORT_ALIAS" (declared at line 227 of "D:\workspace\stm32_rt_thread t_thread_F2\ D:\workspace\stm32_rt_thread t_thread_F2 tthread_stm32 t-thread\components\finsh\finsh_api.h 224 rtthread_stm32 t-thread\include tdef.h") 目前只能屏蔽完RT_USING_FINSH,后移除代码,才基本上不会影响到工程编译。 rt thread的版本是3.1.0 这里就是希望可以有个比较好处理方式,能通过屏蔽RT_USING_FINSH即可完全移除finsh  
查看更多
4
个回答
默认排序
按发布时间排序
yqiu
2019-01-09
这家伙很懒,什么也没写!
[i=s] 本帖最后由 yqiu 于 2019-1-9 16:42 编辑 [/i] 现在的方法是建议使用 Env 工具,在 menuconfig 中关闭 RT_USING_FINSH,然后重新生成下工程,这样能够完全移除 FinSH。
ziye123456
2019-01-09
这家伙很懒,什么也没写!
>现在的方法是建议使用 Env 工具,在 menuconfig 中关闭 RT_USING_FINSH,然后重新生成下工程,这样能够完全 ... --- 目前没采用Env工具,只是想一步步通过自己的移植来搭建相关环境,并且想掌握的更熟练点。
bernard
2019-01-09
这家伙很懒,什么也没写!
env工具的模式就是,关闭RT_USING_FINSH宏定义,然后从工程中把finsh相关的代码移除掉,最后重新生成工程:)
yqiu
2019-01-09
这家伙很懒,什么也没写!
想玩转 RT-Thread, Env 工具必不可少,不用它,玩内核还可以,其他的需要你自己去趟坑的。
撰写答案
登录
注册新账号
关注者
0
被浏览
3.3k
关于作者
ziye123456
这家伙很懒,什么也没写!
提问
1
回答
1
被采纳
0
关注TA
发私信
相关问题
1
RT-THREAD shell无反应呢?
2
RT-thread2.0beta下用类似linux风格MSH,参数如何输入和导出
3
rt-thread finsh windows下的那个终端软件叫什么来着
4
板子上只有485接口,能把FINSH改造成485的么?
5
finsh最大字符问题
6
finsh命令个数是不是有限制啊
7
finsh支持转义字符吗
8
不用finsh如何知道堆栈使用量
9
强烈建议 RT-Thread下finsh原理深入分析
10
finsh输入命令全部返回null node
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
6
五分钟玩转RT-Thread新社区
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
【睿擎工业平台试用】EtherCAT主站控制从站IO
2
【睿擎工业平台试用】硬件平台上手和Modbus功能使用
3
基于GD32F303从0搭建文件系统,挂载2个块设备到文件系统
4
rt thread 文件系统dfs挂载2个块设备
5
RT Thread 块设备注册
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
Bootloader
AT
Hardfault
CAN总线
ART-Pi
FinSH
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
FAL
RTC
rt-smart
I2C_IIC
UART
cubemx
BSP
ESP8266
PWM
ota在线升级
WIZnet_W5500
packages_软件包
flash
freemodbus
GD32
潘多拉开发板_Pandora
ADC
编译报错
keil_MDK
定时器
flashDB
rt_mq_消息队列_msg_queue
ulog
socket
msh
中断
Debug
SFUD
C++_cpp
at_device
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
加缪
11
个答案
1
次被采纳
三世执戟
6
个答案
1
次被采纳
RTT_逍遥
5
个答案
1
次被采纳
用户名由3_15位
5
个答案
1
次被采纳
本月文章贡献
chejia12
9
篇文章
4
次点赞
纯白酱
2
篇文章
4
次点赞
Hlafklio
2
篇文章
1
次点赞
530china
1
篇文章
7
次点赞
rv666
1
篇文章
7
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部