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 v.5.5.0.00077 Intel-HEX image build error

Good day!

I'm using CCS v.5.5.0.00077 at Windows 7 Ultimate PC and working with TMDSEVM6678L evaluation board.

I'm using c6000 v.7.4.6 code generation tools to build my projects.

When I tried to generate Intel-HEX flash image using CCS GUI: Project Properties->Build->Steps->Post-build steps->Apply Predefined Step->Create flash image: Intel-HEX, I got a build error: "bad argument to option -order: should be one of {L,M}".

The following screenshot illustrates the problem.

And another question:

if I create Intel-HEX flash image, how can I define entry point to start the execution of the program?

I don't find anything about it in created Intel-HEX flash image.

Best regards,

Miloserdin Oleg

  • Oleg Miloserdin said:

    When I tried to generate Intel-HEX flash image using CCS GUI: Project Properties->Build->Steps->Post-build steps->Apply Predefined Step->Create flash image: Intel-HEX, I got a build error: "bad argument to option -order: should be one of {L,M}".

    Please see this related thread. The parameter passed to the -order option is different for C6000 devices compared to C2000, MSP430 etc. For C6000 it is L or M while for the others it is LS or MS. So the predefined step works ok for those other devices, but not for C6000. We are tracking this in a bug report as mentioned in the other thread. For now you can change the paramater manually to avoid the error.

    Oleg Miloserdin said:

    if I create Intel-HEX flash image, how can I define entry point to start the execution of the program?

    There is a --entry_point option supported by the hex conversion utility that you can use. Please see the chapter on Hex Conversion Utility in the Assembly Language Tools Users Guide for more information.

  • Thanks AartiG!

    Is an --entry_point option mandatory to create Intel-HEX flash image and why this option isn't included in makefile by default?

    Best regards,

    Miloserdin Oleg

  • Dear AartiG!

    Assembly Language Tools Users Guide has a mistake: TMS320C6x Hex Converter v7.4.6 has option --entrypoint,-e=addr to specify entrypoint address or symbol name.

    Best regards,

    Miloserdin Oleg

  • Oleg Miloserdin said:

    Is an --entry_point option mandatory to create Intel-HEX flash image and why this option isn't included in makefile by default?

    It is not a required option to create a hex file. The default command line is just a basic command that was added to simplify the process for users to add a hex conversion step as a post-build step. Users can then add or remove options per their application requirements.

    Oleg Miloserdin said:

    Assembly Language Tools Users Guide has a mistake: TMS320C6x Hex Converter v7.4.6 has option --entrypoint,-e=addr to specify entrypoint address or symbol name.

    You are correct. The documentation is wrong, and there is already a bug report for that. The tracking # is SDSCM00043931 which you can track using the SDOWP link in my signature. Although the bug is submitted against the C2000 Users Guide, the mistake seems to be in the Users Guides for other processors as well.