1.Post-build steps 中设置如下:
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd2000" "${CG_TOOL_ROOT}/bin/hex2000" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"
此脚本在CCS 11.1的版本上一直都能够正常生成 bin文件
2.CCS升级到 Version: 12.4.0.00007 后,编译的时候出现如下提示:
"C:/ti/ccs1240/ccs/utils/tiobj2bin/tiobj2bin" "app1_f280025.out" "app1_f280025.bin" "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/ofd2000" "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/hex2000" "C:/ti/ccs1240/ccs/utils/tiobj2bin/mkhex4bin" makefile:210: recipe for target 'post-build' failed 'C:' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 gmake[2]: [post-build] Error 255 (ignored)
3.根据Ti英文论坛的帖子,将C:\ti\ccs1240\ccs\utils\tiobj2bin\tiobj2bin.bat文件第109行拆分成2行:
rem 拆分前 %ofdcmd% --obj_display=none,header %outfile% | findstr/c:" ELF " > nul 2>&1 rem 拆分后 %ofdcmd% --obj_display=none,header %outfile% findstr/c:" ELF " > nul 2>&1
编译时出现如下提示:
"C:/ti/ccs1240/ccs/utils/tiobj2bin/tiobj2bin" "app1_f280033.out" "app1_f280033.bin" "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/ofd2000" "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/hex2000" "C:/ti/ccs1240/ccs/utils/tiobj2bin/mkhex4bin"
OBJECT FILE: app1_f280025.out
Object File Information
File Name: app1_f280033.out
Format: ELF Version 1
File Type: executable file
Machine: TI C2000
Machine Endian: little endian
Entry Point: 0x0008a000
Vendor: Texas Instruments, Inc.
Producer: Linker
Linker Version: 22.6.0
Number of Sections: 152
File Length: 689060
ELF Class: 32-bit objects
ELF e_flags: 0
C:/ti/ccs1240/ccs/utils/tiobj2bin/mkhex4bin failure occurred. Giving up.
not well-formed (invalid token) at line 1, column 0, byte 0 at XML/Parser.pm line 187.
请版主帮忙看看问题出在哪里