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.

CCS6.1.2 *.out file convert to *.bin



I want to generate .bin file from CCS version6.1.2.

I have already configured the build - post-build steps in the right way.

Then I clean and build the project, then the console as follow:

error: File proj_lab10a.out has an incompatible machine id of C2000.

what's the problem? how could i fix it?

Thanks.

  • I am not familiar with that error message.  I need to see it in context.  Please perform the entire build again.  Then capture all of the Console window output in a text file.  Use the Copy Build Log icon.  Use .txt for the file name extension.  Attach that file to your next post.  

    Thanks and regards,

    -George

  • Hi George,

    Thanks for your reply. Could you please give me your email address? Due to some IT restriction of my company, I could not attach any file in the webpage. Perhaps we could use email for further discussion.
    Thanks again for your kindly help.
  • Let me describe my detail step again.

    I'm so sorry that due to my company's IT restriction, I could only use the "print scree" to provide the information.

    Looking forward to your feedback.

    Thanks.

    Claire.Zhang

  • Since you are using a f28020x device, in the post build step try changing from using armofd and armhex to ofd2000 and hex2000.

    From the build output it looks like the armofd program, which expects an .out file from from an ARM family device, reports an error when given a .out file from a  C2000 family device.

  • I confirm that the solution given by Chester Gillon is mostly correct.  The utility armofd does not complain when it sees object files for CPU families other than ARM.  But armhex does.  And tiobj2bin.bat uses both of them.  At any rate, changing over to ofd2000 and hex2000 is the correct solution.

    Thanks and regards,

    -George

  • I changed the post build step to ofd2000 and hex2000, then it really worked.

    It can generate *.bin file now.

    Thanks very much.

    Another question, now the console still has a warning as follow, what's the meaning of it? What should I do to fix it?

  • I'm pretty sure you are experiencing a bug in mkhex4bin which was fixed some time ago.  Please see this post for how to fix it.  Though ignore the details about the cg_xml version.  Just get the latest one.

    Thanks and regards,

    -George