英文:
Error in Tivaware Migration for ARM Compiler
问题
我一直在尝试将Tivaware SDK从ARM Compiler 5迁移到6,但出现了一个问题,当我尝试构建Blinky示例时,它给我这个错误:
汇编startup_rvmdk.S...
链接...
.\rvmdk\blinky.axf: 错误: L6002U: 无法打开文件.\rvmdk\startup_rvmdk.o: 没有该文件或目录
没有足够的信息列出映像符号。
没有足够的信息列出映像映射中的加载地址。
完成: 2 条信息,0 条警告,0 条错误和1 条致命错误消息。
".\rvmdk\blinky.axf" - 1 个错误,0 个警告。
未创建目标。
我尝试使用"Migrate Pack"选项,但似乎没有解决任何问题。
英文:
I have been trying to migrate The Tivaware SDK from ARM Compiler5 to 6, for some reason when I try to build the Blinky example, it gives me this error:
assembling startup_rvmdk.S...
linking...
.\rvmdk\blinky.axf: error: L6002U: Could not open file .\rvmdk\startup_rvmdk.o: No such file or directory
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning, 0 error and 1 fatal error messages.
".\rvmdk\blinky.axf" - 1 Error(s), 0 Warning(s).
Target not created.
I tried using the "Migrate Pack" Option, but it doesn't seem to solve anything.
答案1
得分: 1
对象文件startup_rvmdk.o是从汇编源码startup_rvmdk.s构建的。很可能你的构建日志中有早期的错误,显示这个源码构建失败了?
问题在于ARMASM汇编语法与ARM Compiler V6使用的clang/LLVM工具链所使用的gasm语法不同。
这个文件是用于你的目标MCU和C运行时启动代码。要么使用/修改为你的目标提供的启动代码,要么将旧的启动代码迁移到clang汇编。有一个迁移指南可以参考:https://developer.arm.com/documentation/100068/0612/migrating-from-armasm-to-the-armclang-integrated-assembler
英文:
The object file startup_rvmdk.o is built from the assembly source startup_rvmdk.s. it is likely that your build log has earlier errors showing that this source failed to build?
The problem is that the ARMASM assembly syntax differs from the gasm syntax used by the clang/LLVM toolchain used by ARM Compiler V6.
The file is the MCU and C runtime startup code for your target. Either use/modify whatever startup code is provided for your target or migrate the old startup to clang assembly. There is a migration guide for that: https://developer.arm.com/documentation/100068/0612/migrating-from-armasm-to-the-armclang-integrated-assembler
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论