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.

CCS/TM4C123GH6PM: CCS generator a binary file fail after windows 10 update.

Part Number: TM4C123GH6PM

Tool/software: Code Composer Studio

Dear sir,

After execute windows update to Windows 10 Version 2004

CCS convert bin file function is fail..

Error message as below

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

......

<Linking>

Finished building target: "ABC.out"

C:/ti/ccs1011/ccs/utils/tiobj2bin/tiobj2bin "ABC.out" "ABC.bin" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armofd" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armhex" "C:/ti/ccs1011/ccs/utils/tiobj2bin/mkhex4bin"
C:/ti/ccs1011/ccs/utils/tiobj2bin/mkhex4bin failure occurred.  Giving up.
 
 
junk after document element at line 636, column 0, byte 13545 at XML/Parser.pm line 187.

**** Build Finished ****

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Post-buld steps command setting as below:

${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Reinstall the CCS was not work

Any help is appreciated.

Best regards,

Aska

  • Aska,

    Our expert on those utilities will be in on Monday and can take a look.

    One thing to check would be to see if this will run outside of CCS by opening a command prompt and going to your project folder

    Then running:

    C:/ti/ccs1011/ccs/utils/tiobj2bin/tiobj2bin "ABC.out" "ABC.bin" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armofd" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armhex" "C:/ti/ccs1011/ccs/utils/tiobj2bin/mkhex4bin"

    Regards,

    John

  • My Windows 10 PC pro updated to the later build 20H2 but I can't repeat the failure using the same post build command:

    "C:/ti/ccs1011/ccs/utils/tiobj2bin/tiobj2bin" "tm4c_pwm_test.out" "tm4c_pwm_test.bin" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armofd" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armhex" "C:/ti/ccs1011/ccs/utils/tiobj2bin/mkhex4bin"
     
    
    **** Build Finished ****

    While there are some other forum threads which mention an error at "XML/Parser.pm line 187", it wasn't clear what the cause was.

  • So I can reproduce this behavior ...

    Aska Tseng said:
    C:/ti/ccs1011/ccs/utils/tiobj2bin/tiobj2bin "ABC.out" "ABC.bin" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armofd" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armhex" "C:/ti/ccs1011/ccs/utils/tiobj2bin/mkhex4bin"
    C:/ti/ccs1011/ccs/utils/tiobj2bin/mkhex4bin failure occurred.  Giving up.
     
     
    junk after document element at line 636, column 0, byte 13545 at XML/Parser.pm line 187.

    ... please put the file ABC.out in a zip file, then attach that zip file to your next post.

    Thanks and regards,

    -George

  • Hi George,

    thanks for your reply, the attached file is the ABC.out.

    ABC.zip

  • Hi John,

    thanks for your information,

    I try to execute the command in windows command line :

    1.cmd.exe

    2.goto project folder

    3.execute command:

    C:/ti/ccs1011/ccs/utils/tiobj2bin/tiobj2bin "ABC.out" "ABC.bin" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armofd" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armhex" "C:/ti/ccs1011/ccs/utils/tiobj2bin/mkhex4bin"

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    d:\Aska_Project\CCS\Debug>C:/ti/ccs1011/ccs/utils/tiobj2bin/tiobj2bin "ABC.out" "ABC.bin" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armofd" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armhex" "C:/ti/ccs1011/ccs/utils/tiobj2bin/mkhex4bin"

    junk after document element at line 636, column 0, byte 13545 at XML/Parser.pm line 187.
    "C:/ti/ccs1011/ccs/utils/tiobj2bin/mkhex4bin" failure occurred.  Giving up.

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    I got the same message.

    best regards,

    Aska

  • Thank you for ...

    Aska Tseng said:
    the attached file is the ABC.out

    Unfortunately, I am unable to reproduce the same behavior.  This means the the file ABC.out is not the problem.

    Instead of using tiobj2bin.bat use armobjcopy instead.  It is a recent addition to the TI ARM compiler installation.  Change the tiobj2bin.bat command to ...

    C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armobjcopy -I elf32-little -O binary ABC.out ABC.bin

    Please let me know if this resolves the problem.

    Thanks and regards,

    -George

  • Hi George,

    Thanks for your reply.

    I Modify the Post-build command

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    Post-buld steps command setting as below:

    ${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"

    ↓↓↓↓↓↓

    ${CG_TOOL_ROOT}/bin/armobjcopy -I elf32-little -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    Finished building target: "ABC.out"
     
    C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armobjcopy -I elf32-little -O binary "ABC.out" "ABC.bin" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armofd" "C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armhex" "C:/ti/ccs1011/ccs/utils/tiobj2bin/mkhex4bin"
    [0x7FFC217FE0A4] ANOMALY: use of REX.w is meaningless (default operand size is 64)
    makefile:179: recipe for target 'post-build' failed
    C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin\armobjcopy.exe: error: too many positional arguments
    gmake[2]: [post-build] Error 1 (ignored)
     
    **** Build Finished ****

  • The arguments after naming the .bin file should not be present.  Change the post-build step to ...

    ${CG_TOOL_ROOT}/bin/armobjcopy -I elf32-little -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin"

    Thanks and regards,

    -George

  • Hi George,

    It is work, thank you very much.

    I modify the post-build setting as you suggested, error message is clear and got a bin file.

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    Finished building target: "ABC.out"
     
    C:/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armobjcopy -I elf32-little -O binary "ABC.out" "ABC.bin"
    [0x7FFAF9DCE0A4] ANOMALY: use of REX.w is meaningless (default operand size is 64)
     

    **** Build Finished ****

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////