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.

[参考译文] CODECOMPOSER:尝试生成 bin 文件时出错

Guru**** 2524460 points


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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1045007/codecomposer-getting-error-when-trying-to-generate-bin-file

器件型号:CODECOMPOSER

大家好、

我支持我的客户使用以下方法(C2000)在 CCS 中生成.bin 文件。

修改 C:\ti\ccs1040\ccs\utils\tiobj2bin\tiobj2bin.bat

  将所有 hex470和 ofd470更改为 HEX2000和 OFD2000。

2.在 CCS 中添加以下 post-build 命令:  

  "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat ""${BuildArtiftFileName}""${BuildArtifactFileBaseName}.bin""${CG_TOOL_ROOT}/bin/ofd2000.exe ""${CG_TOOL_ROOT}/bin/hex2000.exe ""${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe

它在大多数计算机上都可以正常工作、但在一台计算机上、它报告:

聽:/ti/ccs1010/ccs/utils/tiobj2bin/tiobj2bin.bat 聽"DH.out"聽"DH.bin"聽:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/ofd2000.exe:聽"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/hex2000.exe ""C:/ti/ccs1010/ccs/utils/tiobj2bin/mkhex4bin.exe

Makefile:207:目标'post-build'的配方失败

Process_begin:CreateProcess (/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/hex2000.exe聽C、C:/ti/ccs1010/ccs/utils/tiobj2bin/tiobj2bin.bat聽DH μ es.out聽DH μ bin聽C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/ofd2000.exe聽C μ A:μ A:/ti/ccs1010/ccs/utils/tiobj2bin/mkhex4bin.exe、...) 失败。

制造(e=2):  

聽:/ti/ccs1010/ccs/utils/tiobj2bin/tiobj2bin.bat 聽"DH.out"聽"DH.bin"聽:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/ofd2000.exe:聽"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/hex2000.exe ""C:/ti/ccs1010/ccs/utils/tiobj2bin/mkhex4bin.exe

Makefile:207:目标'post-build'的配方失败

Process_begin:CreateProcess (/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/hex2000.exe聽C、C:/ti/ccs1010/ccs/utils/tiobj2bin/tiobj2bin.bat聽DH μ es.out聽DH μ bin聽C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/ofd2000.exe聽C μ A:μ A:/ti/ccs1010/ccs/utils/tiobj2bin/mkhex4bin.exe、...) 失败。

make (e=2):系统找不到指定的文件(找不到文件)

您能帮您检查这里有什么问题吗? 或者、是否有独立的方法从.out 文件生成.bin、因为转换.out 文件总是成功的。

此致、

Brian

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

    您好 Brian、

    我想知道命令字符串中的聽字符是否导致了失败。 在 PC 上运行 post-build 命令时不会出现问题、它们是否在字符串中也具有相同的字符?

    谢谢

    Ki

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

    在 CCS 配置中、它肯定不包含字符 聽。

    由于转换.out 文件始终成功、是否有独立的方法从.out 文件生成.bin。 我们可以在另一台计算机上将.out 转换为.bin。

    此致、

    Brian

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引用 userid="3205100" URL"~/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1045007/codecomposer-getting-error-when-trying-to-generate-bin-file/3866874 #3866874"]是否有一种从.out 文件生成.bin 的独立方法、因为转换.out 文件始终是成功的。 我们可以在另一台计算机上将.out 转换为.bin。

    您所需要的只是 独立安装 TI ARM 编译器工具 、然后安装 .\ccs\utils\tiobj2bin 中的批处理文件和 exe 文件