Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread一般讨论
context_rvds.S编译出错
发布于 2019-11-15 10:16:14 浏览:3400
订阅该版
* 本帖最后由 aozima 于 2019-11-15 10:18 编辑 * > ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:20: Error: bad instruction `scb_vtor EQU 0xE000ED08' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:20: Error: bad instruction `vector Table Offset Register' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:21: Error: bad instruction `nvic_int_ctrl EQU 0xE000ED04' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:21: Error: bad instruction `interrupt control state register' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:22: Error: bad instruction `nvic_syspri2 EQU 0xE000ED20' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:22: Error: bad instruction `system priority register(2)' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:23: Error: bad instruction `nvic_pendsv_pri EQU 0x00FF0000' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:23: Error: bad instruction `pendsv priority value(lowest)' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:24: Error: bad instruction `nvic_pendsvset EQU 0x10000000' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:24: Error: bad instruction `value to trigger PendSV exception' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:26: Error: bad instruction `area |.text|,CODE,READONLY,ALIGN=2' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:27: Error: bad instruction `thumb' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:28: Error: bad instruction `require8' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:29: Error: bad instruction `preserve8' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:31: Error: bad instruction `import rt_thread_switch_interrupt_flag' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:32: Error: bad instruction `import rt_interrupt_from_thread' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:33: Error: bad instruction `import rt_interrupt_to_thread' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:38: Error: bad instruction `rt_hw_interrupt_disable PROC' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:39: Error: bad instruction `export rt_hw_interrupt_disable' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:43: Error: bad instruction `endp' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:48: Error: bad instruction `rt_hw_interrupt_enable PROC' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:49: Error: bad instruction `export rt_hw_interrupt_enable' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:52: Error: bad instruction `endp' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:59: Error: bad instruction `rt_hw_context_switch_interrupt' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:60: Error: bad instruction `export rt_hw_context_switch_interrupt' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:61: Error: bad instruction `rt_hw_context_switch PROC' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:62: Error: bad instruction `export rt_hw_context_switch' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:64: Error: bad instruction `set rt_thread_switch_interrupt_flag to 1' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:72: Error: bad instruction `set rt_interrupt_from_thread' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:75: Error: bad instruction `_reswitch' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:76: Error: bad instruction `set rt_interrupt_to_thread' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:79: Error: bad instruction `trigger the PendSV exception(causes context switch)' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:83: Error: bad instruction `endp' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:85: Error: bad instruction `r0 -->switch from thread stack' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:86: Error: bad instruction `r1 -->switch to thread stack' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:87: Error: bad instruction `psr, pc,lr,r12,r3,r2,r1,r0 are pushed into [from] stack' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:88: Error: bad instruction `pendsv_handler PROC' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:89: Error: bad instruction `export PendSV_Handler' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:91: Error: bad instruction `disable interrupt to protect context switch' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:95: Error: bad instruction `get rt_thread_switch_interrupt_flag' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:98: Error: bad instruction `pendsv already handled' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:100: Error: bad instruction `clear rt_thread_switch_interrupt_flag to 0' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:106: Error: bad instruction `skip register save at the first time' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:108: Error: bad instruction `get from thread stack pointer' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:110: Error: bad instruction `if {FPU}!="SoftVFP"' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:111: Error: unshifted register required -- `tst lr,#0x10' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:111: Error: bad instruction `if(!EXC_RETURN[4])' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:112: Error: bad instruction `vstmfdeq r1!,{d8-d15}' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:112: Error: expression too complex -- `push FPU register s16~s31' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:113: Error: bad instruction `endif' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:115: Error: lo register required -- `stmfd r1!,{r4-r11}' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:115: Error: expression too complex -- `push r4-r11 register' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:117: Error: bad instruction `if {FPU}!="SoftVFP"' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:120: Error: unshifted register required -- `tst lr,#0x10' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:120: Error: bad instruction `if(!EXC_RETURN[4])' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:121: Error: Thumb does not support conditional execution ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:123: Error: Thumb-2 instruction only valid in unified syntax -- `stmfd r1!,{r4}' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:124: Error: bad instruction `endif' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:127: Error: bad instruction `update from thread stack pointer' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:129: Error: bad instruction `switch_to_thread' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:132: Error: bad instruction `load thread stack pointer' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:134: Error: bad instruction `if {FPU}!="SoftVFP"' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:136: Error: bad instruction `endif' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:138: Error: lo register required -- `ldmfd r1!,{r4-r11}' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:138: Error: expression too complex -- `pop r4-r11 register' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:140: Error: bad instruction `if {FPU}!="SoftVFP"' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:141: Error: bad instruction `if(flag_r3 !=0)' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:142: Error: bad instruction `vldmfdne r1!,{d8-d15}' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:142: Error: expression too complex -- `pop FPU register s16~s31' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:143: Error: bad instruction `endif' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:145: Error: bad instruction `update stack pointer' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:147: Error: bad instruction `if {FPU}!="SoftVFP"' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:148: Error: unshifted register required -- `orr lr,lr,#0x10' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:148: Error: bad instruction `lr |=(1<<4),clean FPCA.' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:149: Error: bad instruction `if(flag_r3 !=0)' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:150: Error: Thumb does not support conditional execution ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:150: Error: bad instruction `lr &=~(1<<4),set FPCA.' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:151: Error: bad instruction `endif' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:153: Error: bad instruction `pendsv_exit' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:154: Error: bad instruction `restore interrupt' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:157: Error: unshifted register required -- `orr lr,lr,#0x04' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:159: Error: bad instruction `endp' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:166: Error: bad instruction `rt_hw_context_switch_to PROC' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:167: Error: bad instruction `export rt_hw_context_switch_to' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:168: Error: bad instruction `set to thread' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:172: Error: bad instruction `if {FPU}!="SoftVFP"' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:173: Error: bad instruction `clear CONTROL.FPCA' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:174: Error: bad instruction `read' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:175: Error: unshifted register required -- `bic r2,#0x04' ../RT-Thread/libcpu/arm/cortex-m7/context_rvds.S:175: Error: bad instruction `modify' 求教,这是啥原因?
查看更多
5
个回答
默认排序
按发布时间排序
aozima
2019-11-15
调网络不抓包,调I2C等时序不上逻辑分析仪,就像电工不用万用表!多用整理的好的文字,比截图更省流量,还能在整理过程中思考。
用错编译器了吧? 版本?bsp? gcc/mdk/iar?
小半仙
2019-11-15
这家伙很懒,什么也没写!
>用错编译器了吧? > >版本?bsp? --- 使用的cubeide gcc编译器,该怎么设置? stm32h750vb
小半仙
2019-11-15
这家伙很懒,什么也没写!
>使用的cubeide gcc编译器,该怎么设置? stm32h750vb --- nano 3.1.2
aozima
2019-11-15
调网络不抓包,调I2C等时序不上逻辑分析仪,就像电工不用万用表!多用整理的好的文字,比截图更省流量,还能在整理过程中思考。
建议先用env+scons编译一下,可以使用 scons --verbose 命令获取详细的命令行参数。 然后再你用的工具上面自行配置。 关于不同的文件,可以参考 /libcpu/arm/cortex-m7/SConscript ``` if rtconfig.PLATFORM == 'armcc': src += Glob('*_rvds.S') if rtconfig.PLATFORM == 'gcc': src += Glob('*_init.S') src += Glob('*_gcc.S') if rtconfig.PLATFORM == 'iar': src += Glob('*_iar.S') ```
小半仙
2019-11-15
这家伙很懒,什么也没写!
>建议先用env+scons编译一下,可以使用 scons --verbose 命令获取详细的命令行参数。 >然后再你用的工具上面 ... --- 尝试了几次,还是不行,有没有cubeide成功使用rtt系统的经验?这个软件和keil iar太不一样了
撰写答案
登录
注册新账号
关注者
0
被浏览
3.4k
关于作者
小半仙
这家伙很懒,什么也没写!
提问
11
回答
41
被采纳
2
关注TA
发私信
相关问题
1
有关动态模块加载的一篇论文
2
最近的调程序总结
3
晕掉了,这么久都不见layer2的踪影啊
4
继续K9ii的历程
5
[GUI相关] FreeType 2
6
[GUI相关]嵌入式系统中文输入法的设计
7
20081101 RT-Thread开发者聚会总结
8
嵌入式系统基础
9
linux2.4.19在at91rm9200 上的寄存器设置
10
[转]基于嵌入式Linux的通用触摸屏校准程序
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
2
RT-Thread EtherKit开源以太网硬件正式发布
3
如何在master上的BSP中添加配置yml文件
4
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
5
RT-Thread 发布 EtherKit开源以太网硬件!
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
ulog
C++_cpp
at_device
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
15
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
13
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
5
次点赞
RTT_逍遥
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部