test.axf: Error: L6238E: cpu_asm.o(test) contains invalid call from '~PRES8
来源:互联网 发布:降龙990数据恢复 编辑:程序博客网 时间:2024/05/25 23:57
从周立功网站下载的“Keil uVision3在EasyARM系列开发板上的工程模板”包含两个文件夹,分别是EasyARM2100和EasyARM2200。该两个模板对应的开发板分别是EasyARM2100和EasyARM2200。
将EasyARM2100模板复制到相应目录后,根据模板内的使用说明设置好编译器环境,编译提示出现以下错误:
1、 .\debug_in_RAM\Project.axf: Error: L6238E: startup.o(vectors) contains invalid call from '~PRES8' function to 'REQ8' function FIQ_Exception.
2、 .\debug_in_RAM\Project.axf: Error: L6238E: startup.o(vectors) contains invalid call from '~PRES8' function to 'REQ8' function TargetResetInit.
不知道使用了周立功模板的朋友是否碰到了这个问题,如果碰到,可以和我一起探讨!目前该问题已经被我解决,但不知道大家是怎么解决的,欢迎大家各抒己见!
解决方法:
建议1、
在startup.s中顶部加个
PRESERVE8
就行了.
没有什么要修改了.
建议2、
从ads到rv,基本上要修改下列参数
1>.汇编模块前面加 PORESERVE8
2>.连接器选项中的 -first 改为 --first
3>.fromelf 的参数都要变成 -- ,
比如fromelf --bin --outoput a.bin a.axf 即可从axf文件生成bin文件,用于下载
具体点,就是在
; PRESERVE8//添加的一个标号
CO
AREA Init,CO
ENTRY
注释处将“;”去掉,就可在MDK中编译通过,不拿掉就会出现
.\Debug_in_ChipFlash\Project.axf: Error: L6238E: startup.o(vectors) contains invalid call from '~PRES8' function to 'REQ8' function FIQ_Exception.
.\Debug_in_ChipFlash\Project.axf: Error: L6238E: startup.o(vectors) contains invalid call from '~PRES8' function to 'REQ8' function TargetResetInit.
我验证的加在此处:
CO
AREA Init,CO
ENTRY
PRESERVE8
;interrupt vectors
;中断向量表
Reset
- test.axf: Error: L6238E: cpu_asm.o(test) contains invalid call from '~PRES8
- Error armlink L6238 Startup.o(Start) contains invalid call from '~PRES8' function to 'REQ8' functio
- contains invalid call from '~PRES8 (The user did n......
- 用MDK:test.axf: Error: L6630E: Invalid token start expected number or ( but found
- MDK:test.axf: Error: L6630E: Invalid token start expected number or ( but found n at position 5 on l
- ADS转Keil中 invalid call from '~PRES8' function to 'REQ8' 错误解决之道
- ADS转RVDS invalid call from '~PRES8' function to 'REQ8' function
- ADS转RVDS invalid call from '~PRES8' function to 'REQ8' function
- ADS 转Keil, ADS升级至MDK常见错误 invalid call from '~PRES8' function to 'REQ8' 解决方法
- XXX.axf: Error: L6218E: Undefined symbol xxx (referred from xxxx.o).
- ..\OBJ\ucgui_ucos.axf: Error: L6218E: Undefined symbol ff_convert (referred from ff.o). ..\OBJ\ucgui
- .\output\ucosII.axf: Error: L6218E: Undefined symbol OS_StrLen (referred from os_task.o).
- .\ethercat.axf: Error: L6218E: Undefined symbol appState (referred from stm32appl.o).
- XXX.axf: Error: L6218E: Undefined symbol xxx (referred from xxxx.o).
- XXX.axf: Error: L6218E: Undefined symbol xxx (referred from xxxx.o).
- STM32_TEST.axf: Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f10x_md.o).
- .\output\stm32f103.axf: Error: L6218E: Undefined symbol __aeabi_assert (referred from mqtt.o).
- 编译错误:XXX.axf: Error: L6218E: Undefined symbol xxx (referred from xxxx.o).
- 静态库和共享库
- 2012九月3号阿里巴巴笔试题目
- 系统托盘编程完全指南
- android 中bimap转mat例程
- MFC中的DDX和DDV
- test.axf: Error: L6238E: cpu_asm.o(test) contains invalid call from '~PRES8
- 阿里巴巴2013笔试题
- 九九乘法表的各种输出形式(C)
- 程序员求职之道(《程序员面试笔试宝典》)之看着别人手拿大把的offer,不淡定了怎么办?
- 程序地址重定位和模块绑定
- hdu1210Eddy's 洗牌问题 和 hdu 1209 Ignatius and the Princess IV 和hdu 1273漫步森林
- C++ 回调函数学习笔记
- 怎样安装Ruby development kit
- 2013.9.10 反射的实际应用