Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
gcc编译
nano移植
5
nano版本context_gcc编译失败
发布于 2021-12-06 14:19:52 浏览:667
订阅该版
[tocm] # 环境配置 GCC版本:10.3.1 > gcc version 10.3.1 20210824 (release) (GNU Arm Embedded Toolchain 10.3-2021.10) nano版本: > github master分支(https://github.com/RT-Thread/rtthread-nano) > (好像里面没有版本号的概念) # 问题描述 执行编译命令: ``` arm-none-eabi-gcc -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 rtthread-nano-master/rt-thread/libcpu/arm/cortex-m4/context_gcc.s ``` 报错如下: ``` rtthread-nano-master/rt-thread/libcpu/arm/cortex-m4/context_gcc.s: Assembler messages: rtthread-nano-master/rt-thread/libcpu/arm/cortex-m4/context_gcc.s:110: Error: thumb conditional instruction should be in IT block -- `vstmdbeq r1!,{d8-d15}' rtthread-nano-master/rt-thread/libcpu/arm/cortex-m4/context_gcc.s:119: Error: thumb conditional instruction should be in IT block -- `moveq r4,#0x01' rtthread-nano-master/rt-thread/libcpu/arm/cortex-m4/context_gcc.s:140: Error: thumb conditional instruction should be in IT block -- `vldmiane r1!,{d8-d15}' rtthread-nano-master/rt-thread/libcpu/arm/cortex-m4/context_gcc.s:148: Error: thumb conditional instruction should be in IT block -- `bicne lr,lr,#0x10' ``` #类似问题参考 参考问题:[context_gcc.S文件编译问题:](https://club.rt-thread.org/ask/question/4188.html)(https://club.rt-thread.org/ask/question/4188.html) 按照问题描述,增加选项: ``` -mimplicit-it=thumb ``` 增加后gcc不识别此选项: ``` arm-none-eabi-gcc.exe: error: unrecognized command-line option '-mimplicit-it=thumb' ```
查看更多
3
个回答
默认排序
按发布时间排序
yangjie
认证专家
2021-12-06
yangjiexaut@126.com
> github master分支(https://github.com/RT-Thread/rtthread-nano) (好像里面没有版本号的概念) nano目前只有发布版本
出出啊
2021-12-06
致男人们:劝说是不会有成果的。 —— 《单向街》
``` arm-none-eabi-gcc -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 rtthread-nano-master/rt-thread/libcpu/arm/cortex-m4/context_gcc.s ``` 你这个编译选项里有句 `-mfloat-abi=hard` 这个是不是要改成 soft `-mfloat-abi=soft` aozima 说的可能是添加 `-Wa,-mimplicit-it=thumb` 这个是完整的选项
recan
认证专家
2021-12-07
公众号【架构师李肯】主理人,每周赠送10本IT书籍,正在 挑战100+最佳答案,有疑难问题请邀请我回答@_@
难道你的gcc版本不支持-mimplicit-it=thumb选项?手上有其他版本的gcc可以一试,就测这个选项支持不支持。
撰写答案
登录
注册新账号
关注者
0
被浏览
667
关于作者
jiladahe1997
这家伙很懒,什么也没写!
提问
1
回答
3
被采纳
0
关注TA
发私信
相关问题
1
gcc交叉编译器编译stm32项目代码,bin文件比keil编译的大很多。
2
rt-thread内核的libc_signal.h头文件没有gcc编译器的宏定义
3
关于编译器重命名不报错
4
RTTstudio使用的GCC编译器遇见问题?求助
5
studio加载makfile
6
CM4 context_gcc.s 编译出错
7
RT-THREAD STUDIO建立的工程为什么ENV编译不了?
8
求助,关于X86编译
9
【求助】请问-DRT_USING_NEWLIB 是在哪里定义的?
10
代码编译是出现寄存器问题
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
机器人操作系统 (ROS2) 和 RT-Thread 通信
4
五分钟玩转RT-Thread新社区
5
国产MCU移植系列教程汇总,欢迎查看!
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
如何用Ubuntu qemu跑zephyr_polling的蓝牙
2
分享一种很简单的不阻塞TCP发送方法
3
stm32c86使用串口3时无法正常读到中断的数据
4
如何用ART-PI跑zephyr_polling的蓝牙
5
掌上单片机实验室 – 基于 RTT 框架的第一个应用
热门标签
RT-Thread Studio
串口
LWIP
Env
SPI
AT
FinSH
Bootloader
CAN总线
ART-Pi
Hardfault
文件系统
USB
DMA
RT-Thread
线程
SCons
RT-Thread Nano
stm32
MQTT
ESP8266
ota
UART
RTC
freemodbus
rtthread
rt-smart
packages_软件包
I2C
WIZnet_W5500
flash
cubemx
FAL
定时器
BSP
AB32VG1
PWM
ADC
SDIO
msh
socket
LVGL
keil
Debug
C++_cpp
中断
编译报错
SFUD
SMP
MicroPython
本月问答贡献
出出啊
1431
个答案
317
次被采纳
小小李sunny
1342
个答案
267
次被采纳
crystal266
505
个答案
149
次被采纳
whj467467222
1212
个答案
142
次被采纳
张世争
590
个答案
135
次被采纳
本月文章贡献
出出啊
3
篇文章
5
次点赞
小小李sunny
1
篇文章
1
次点赞
crystal266
1
篇文章
3
次点赞
whj467467222
2
篇文章
4
次点赞
张世争
6
篇文章
14
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部