各种问题解决
2017-01-08 20:44
295 查看
linker–control
–entry Reset_Handler
scopy.s(13): warning: A1608W: MOV pc, instruction used, but BX is preferred
warning: A1876W: Use of ‘|’ as a synonym for the :OR: operator is deprecated.
部分源代码:
MSR CPSR_c, #(NoInt|IRQ32Mode) ;进入IRQ模式。
解决方法:把”|”修改为 “:OR:”, 如下
MSR CPSR_c, #NoInt:OR:IRQ32Mode ;进入IRQ模式。
warning: A1608W: MOV pc, instruction used, but BX is preferred
解决方法:把MOV pc, 替换为 BX
Error: L6238E: os_cpu_a.o(subr) contains invalid call from ‘~PRES8 (The user did not require code to preserve 8-byte aligment of 8-byte data objects)’ function to ‘REQ8 (Code was permitted to depend on the 8-byte aligment of 8-byte data items)’ function OSIntExit.
解决方法:在汇编程序前面加上 PRESERVE8
PRESERVE8
AREA |subr|, CODE, READONLY
IMPORT OSIntNesting
IMPORT OSTCBCur
IMPORT IsrIRQ
…………
warning: A1085W: Forced user-mode LDM/STM must not be followed by use of banked R8-R14
部分源代码:
STMFD SP,{R3,SP,LR}^ ;系统模式SP→|R0 |
解决方法:在两行语句中间加nop,即可解决warning
STMFD SP,{R3,SP,LR}^ ;系统模式SP→|R0 |
nop
SUB SP,SP,#12 ;系统模式SP→|SPSR|
error: L6236E: No section matches selector - no section to be FIRST/LAST.
部分源代码:
RuninFlash.sct
LR_ROM1 0x00000000
{ ; load region
ER_ROM1 0x00000000 0x0200000
{ ; load address = execution address
*.o (RESET, +First) ;报错的地方
*(InRoot$$Sections)
.ANY (+RO)
}
RW_RAM1 0x0C000000 0x800000
{ ; RW data
.ANY (+RW +ZI)
}
}
解决方法:
在启动文件,我的是44binit.s 中找到
AREA Init,CODE,READONLY
改为
AREA RESET,CODE,READONLY
–entry Reset_Handler
scopy.s(13): warning: A1608W: MOV pc, instruction used, but BX is preferred
warning: A1876W: Use of ‘|’ as a synonym for the :OR: operator is deprecated.
部分源代码:
MSR CPSR_c, #(NoInt|IRQ32Mode) ;进入IRQ模式。
解决方法:把”|”修改为 “:OR:”, 如下
MSR CPSR_c, #NoInt:OR:IRQ32Mode ;进入IRQ模式。
warning: A1608W: MOV pc, instruction used, but BX is preferred
解决方法:把MOV pc, 替换为 BX
Error: L6238E: os_cpu_a.o(subr) contains invalid call from ‘~PRES8 (The user did not require code to preserve 8-byte aligment of 8-byte data objects)’ function to ‘REQ8 (Code was permitted to depend on the 8-byte aligment of 8-byte data items)’ function OSIntExit.
解决方法:在汇编程序前面加上 PRESERVE8
PRESERVE8
AREA |subr|, CODE, READONLY
IMPORT OSIntNesting
IMPORT OSTCBCur
IMPORT IsrIRQ
…………
warning: A1085W: Forced user-mode LDM/STM must not be followed by use of banked R8-R14
部分源代码:
STMFD SP,{R3,SP,LR}^ ;系统模式SP→|R0 |
SUB SP,SP,#12 ;系统模式SP→|SPSR|
解决方法:在两行语句中间加nop,即可解决warning
STMFD SP,{R3,SP,LR}^ ;系统模式SP→|R0 |
nop
SUB SP,SP,#12 ;系统模式SP→|SPSR|
error: L6236E: No section matches selector - no section to be FIRST/LAST.
部分源代码:
RuninFlash.sct
LR_ROM1 0x00000000
{ ; load region
ER_ROM1 0x00000000 0x0200000
{ ; load address = execution address
*.o (RESET, +First) ;报错的地方
*(InRoot$$Sections)
.ANY (+RO)
}
RW_RAM1 0x0C000000 0x800000
{ ; RW data
.ANY (+RW +ZI)
}
}
解决方法:
在启动文件,我的是44binit.s 中找到
AREA Init,CODE,READONLY
改为
AREA RESET,CODE,READONLY
相关文章推荐
- Mybatis入门实例
- LOAD DATA LOCAL INFILE(导入1684472条数据用时42.87s)
- engine中调整Element的上下显示顺序(遮盖)
- 反射——类(Class)
- Android学习35
- 文章标题
- Android学习34
- 预处理
- 识别MNIST数据集之(一):读取数据
- 61. Rotate List**
- Android学习33
- 用户房源推荐—基于内容的推荐算法(CB)
- redis3.0.7源码阅读(七)redis跳跃表
- CentOS 7 忘记root密码的解决之道
- Android学习32
- soundex算法
- centOS6.3 安装redis make报错 zmalloc.h:50:31: 错误:jemalloc/jemalloc.h:没有那个文件或目录
- 服务器端口冲突必杀技
- 寒假04:前缀表达式、最小乘积(基本型)、Torry的困惑(基本型)
- 讯飞语音听写Demo