This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 编译器/TMS570LS3137:从 hex 或 elf 文件创建 bin 文件

Guru**** 1980945 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/877212/compiler-tms570ls3137-create-bin-file-from-hex-or-elf-file

器件型号:TMS570LS3137

工具/软件:TI C/C++编译器

阅读文档后、我不确定如何使用 ARM CGT 编译器生成 bin 文件。

源文件是*。elf 还是*。hex 文件? 对于两个版本类似的 bin 文件、它似乎都可以使用、或者在 lestI 获取时使用:

  • C:\ti\ccs910\ccs\utils\tiobj2bin\tiobj2bin.bat armhex.exe out.elf out.bin mkhex4bin.exe C:\ti\ccs910\ccs\tools\compiler\ti-cgt-arm_18.12.2.LTS \bin\armofd.exe C:\ti\ccs910\ccs\tools\compiler\ti-cgt-arm_18.12.2.LTS \ti\ccs\cc2bin\tis\tis\cc96\utils\ti\ccs\cc2bin\tis\bin\tis\cc96\tis\bin\cc2bin\tis\tis\
  • C:\ti\ccs910\ccs\utils\tiobj2bin\tiobj2bin.bat armhex.exe out.hex out.bin mkhex4bin.exe C:\ti\ccs910\ccs\tools\compiler\ti-cgt-arm_18.12.2.LTS \bin\armofd.exe C:\ti\ccs910\ccs\tools\compiler\ti-cgt-arm_18.12.2.LTS \ti\ccs\cc2bin\tis\tis\cc96\tis\bin\ccs\cc2bin\tis\cc96\utils\ti\ccs\tis\bin\tis\cc2bin\cc

两个版本是否都可以使用并正确?

此致、

Stefan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    请查看链接器调用。  查找使用选项 --output_file (或等效短整型-o)命名的文件。  这是由链接器创建的最终可执行目标文件。   该文件与 tiobj2bin.bat 所期望的第一个参数相同。

    这种情况下的细节令人困惑...  此文件.out 的最常见扩展名。  但是、在您的示例中、您使用 Out 作为基本文件名。

    谢谢、此致、

    乔治

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢!

    关于令人困惑的细节:在我们的构建工具中、我们将二进制{application-name}.elf 命名为 {application-name}.out

x 出现错误。请重试或与管理员联系。