野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8490|回复: 6

关于更换编译器导致编译失败的问题

[复制链接]
发表于 2019-6-7 13:18:13 | 显示全部楼层 |阅读模式
最近开始学1052的部分,于是又回到了keil,火哥的例程里面的编译器版本用的5的开了索引会很慢,所以换到6.9来编译,但是经常会出现这个问题:

*** Using Compiler 'V6.9', folder: 'D:\Program Files (x86)\Keil_v5\ARM\ARMCLANG\Bin'
Build target 'itcm_txt_sdram_debug'
compiling main.c...
linking...
.\itcm_txt_sdram_debug\RT1052-Template.axf: Error: L6079E: Subtool invocation error: Error executing armcc. 2??|?3¨à¡ê
.\itcm_txt_sdram_debug\RT1052-Template.axf: Error: L6636E: Pre-processor step failed for '.\MIMXRT1052xxxxx_itcm_txt_sdram.scf'
.\itcm_txt_sdram_debug\RT1052-Template.axf: Error: L6372E: Image needs at least one load region.
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 3 error messages.
".\itcm_txt_sdram_debug\RT1052-Template.axf" - 3 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01

如果换回5编译一遍后再换回6.9就能编译成功了,不知道是什么原因引起的,网上也没有看到相关的
回复

使用道具 举报

发表于 2019-6-8 19:15:56 | 显示全部楼层
帮顶
回复

使用道具 举报

 楼主| 发表于 2019-6-10 17:13:18 | 显示全部楼层
没有人碰到过嘛
回复 支持 反对

使用道具 举报

发表于 2019-8-14 21:15:02 | 显示全部楼层
我也遇到过,没找到解决办法,只好换回AC5
回复 支持 反对

使用道具 举报

发表于 2019-11-2 14:11:23 | 显示全部楼层
6.9是指Keil的版本吗
回复 支持 反对

使用道具 举报

发表于 2020-7-13 10:41:02 | 显示全部楼层
我也遇到了同样的问题,网上找到了解决方法
https://www.baidu.com/link?url=H ... 4e8000000045f0bc581
回复 支持 反对

使用道具 举报

发表于 2020-7-15 04:50:36 | 显示全部楼层
应该是这个问题
#!armclang --target=arm-arm-none-eabi -mcpu=cortex-m0 -E -x c

sct文件支持用 C编译器举行预处理——这就是为啥sct文件里面可以用 #include甚至是 #ifdef 之类的东西的原因。
如果你的sct文件建立的时候是用ac5做的,然后你切换为ac6的时候,你会发现,之前预留在sct文件顶部的那命令行仍然用的是armcc(正确的应该是用armclang)。所以,直接替换为上面这个命令行就行了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-2 21:48 , Processed in 0.031134 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表