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.

TMS320F280033: CCS 12.4 无法正常将out生成为bin文件

Part Number: TMS320F280033


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行:

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1197688/tms320f280039c-post-build-failed-in-ccs12-2#:~:text=The%20following%20command%20is%20used%20as%20post-build%20step%3A,%22%24%20%7BBuildArtifactFileBaseName%7D.bin%22%20%22%24%20%7BCG_TOOL_ROOT%7D%2Fbin%2Fofd2000%22%20%22%24%20%7BCG_TOOL_ROOT%7D%2Fbin%2Fhex2000%22%20%22%24%20%7BCCS_INSTALL_ROOT%7D%2Futils%2Ftiobj2bin%2Fmkhex4bin%22

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.

请版主帮忙看看问题出在哪里