Tivaware迁移至ARM编译器时出现错误。

huangapple go评论102阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年8月5日 15:03:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/76840495.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定