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.

Hex2000 v3.xx upgrade to Hex2000 v6.1.0 translate commandline arguments

Other Parts Discussed in Thread: TMS320F28069

Hello,

I'm reusing old code and came across a problem when generating a binary for this old applicaton (for a F2833x)
in previous versions of code generation tools (the old project) the following command is used to generate a binary
i'm porting this code to the F28069 and came across a problem when generating a binary for use with our firmware upload code (via the Flash API)

1. hex2000 myprog.out -m -byte -romwidth 16 -o myprog.mot

we then use a custom tool (code from the internet) that translates a motorola s format to binary and applies an offset

2. srec2bin myprog.mot myprog.bin -o <offset>

to create a binary from it which we program using the Flash API in which the <offset> is the start address of the program code
e.g. for the TMS320F28069  --> 3D8000

---------------

Question:

The commandline arguments to the hex2000 tool have changed, and so the -byte option is not present in current hex2000 releases.
what is the way and the commandline arguments for it to achieve the same binary generation with the hex2000 tool v6.1.0
can the srec2bin part be omitted? Can i generate a binary that can be programmed in flash directly?

--------------

Thanks in advance

Rob

 

 

  • Rob van de Voort said:
    The commandline arguments to the hex2000 tool have changed, and so the -byte option is not present in current hex2000 releases.

    Do you get an error for the -byte option? It still apepars to be supported in the latest version and the hex2000 help shows the option:

    >hex2000 --help
    TMS320C2000 Hex Converter               v6.1.0
    Tools Copyright (c) 1996-2012 Texas Instruments Incorporated

    Usage: hex2000 [-options] filename

    Use 'hex2000 -h <option>' for more information on a particular option.  Use
    'hex2000 -h <text>' to search options for information regarding <text>.

    Option arguments surrounded by [] declare they are optional.  Option arguments
    separated by commas specify that the option's argument must be chosen from
    those arguments listed.

    When shown, option arguments and defaults apply to the usage of both long and
    short option forms.

    General Options:
      --byte,-byte                 Output as bytes rather than target addressing
      --entrypoint,-e=addr         Specify entrypoint address or symbol name
     ...
     ...

  • Thanks, i have a working solution now with an old Hex2000 tool, i'll look at the exact problem and error i get when building my final code (deadline is near)
    I will first make sure that my implemenation  is finished. 

    I'll post follow-up information and error messages within a few weeks.

  • I solved this issue by creating a hex command file to accomplish this see the following post:

    http://e2e.ti.com/support/microcontrollers/tms320c2000_32-bit_real-time_mcus/f/171/p/228101/820836.aspx#820836

    Hope this helps others,

    Regards,

    Rob