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.

Creating a hex file into CCSv5 of the *.cmd-file

Hello.

I work with dsk6713. I need to convert OUT-file (output file CCS) in the hex file by calling the hex6x from *.Cmd file. Similarly as in the attached example.1462.BlinkDSK6713.rar

What do I need to do?

 

 

  • I'm not sure if I understand your question but the example project you attached shows how to invoke hex6x as a post-build step in CCS. If you go to Project Properties->Build->Steps tab, you can see the hex6x command there. The argument passed to hex6x is a hex command file with options to be passed to the hex utility. You can add a similar command to your own project to invoke the hex utility as a post-build step.

    http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#Pre_and_Post_Build_Steps

     

  • AartiG, do you understand my question correctly.

    I just wonder how to call hex6x as a post-build step in CCSv5 (5.0.0; 5.3.0 etc.)?

     

  • I asked it in project post-build step. I got the following: the hex file and 3 files with the extension *.i1, *.i2 *.i3.
    How to make a hex-file suitable for what would be downloaded to an external flash memory? Then upload a program from flash memory, 8-bit bus, little endian?

  • The hex converter is capable of converting to a few different hex formats. See the C6000 Assembly Language Tools Users Guide chapter on Hex conversion utility for details. What format you choose for the conversion would depend on what is required by the hex programmer or whatever tool you use to program to external flash.

  • Hello.

    I like the work, then what I wanted, but there is one problem. Attached image of the console with a report on the build. There is a mistake, but what she is, I do not understand.

     

  • **** Build of configuration Debug for project DSK6713_INIT ****

    "C:\\Program Files (x86)\\TI\\ccsv5\\utils\\bin\\gmake" -k all
    'Building file: ../main.c'
    'Invoking: C6000 Compiler'
    "C:/Program Files (x86)/TI/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" --abi=coffabi -g --include_path="C:/Program Files (x86)/TI/ccsv5/tools/compiler/c6000_7.4.1/include" --include_path="C:/TI/C6xCSL/include" --include_path="C:/TI/DSK6713/c6000/dsk6713/include" --include_path="C:/TI/DSK6713/c6000/bios/include" --define=CHIP_6713 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
    "../main.c", line 62: warning #179-D: variable "uiCount" was declared but never referenced
    'Finished building: ../main.c'
    ' '
    'Building target: DSK6713_INIT.out'
    'Invoking: C6000 Linker'
    "C:/Program Files (x86)/TI/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" --abi=coffabi -g --define=CHIP_6713 --display_error_number --diag_warning=225 -z --stack_size=0x400 -m"DSK6713_INIT.map" --heap_size=0x400 -i"C:/Program Files (x86)/TI/ccsv5/tools/compiler/c6000_7.4.1/lib" -i"C:/Program Files (x86)/TI/ccsv5/tools/compiler/c6000_7.4.1/include" --reread_libs --warn_sections --display_error_number --rom_model -o "DSK6713_INIT.out" "./main.obj" "./dsk6713.obj" "./cpld.obj" "./bootDSK6713.obj" "./boot.obj" "./FLASH.obj" -l"C:\TI\DSK6713\c6000\bios\lib\csl6713.lib" -l"C:\TI\DSK6713\c6000\dsk6713\lib\dsk6713bsl.lib" -l"C:\Program Files (x86)\TI\ccsv5\tools\compiler\c6000_7.4.1\lib\rts6700.lib" -l"rts6700.lib" "../C6713.cmd"
    <Linking>
    warning #16002-D: build attribute vendor section TI missing in
    "C:\TI\DSK6713\c6000\bios\lib\csl6713.lib<csl.obj>": compatibility cannot be
    determined
    warning #16002-D: build attribute vendor section TI missing in
    "C:\TI\DSK6713\c6000\bios\lib\csl6713.lib<csl_emif.obj>": compatibility
    cannot be determined
    warning #16002-D: build attribute vendor section TI missing in
    "C:\TI\DSK6713\c6000\bios\lib\csl6713.lib<csl_irq.obj>": compatibility
    cannot be determined
    warning #16002-D: build attribute vendor section TI missing in
    "C:\TI\DSK6713\c6000\bios\lib\csl6713.lib<csl_pll.obj>": compatibility
    cannot be determined
    warning #16002-D: build attribute vendor section TI missing in
    "C:\TI\DSK6713\c6000\bios\lib\csl6713.lib<csl_timer.obj>": compatibility
    cannot be determined
    'Finished building target: DSK6713_INIT.out'
    ' '
    C:/Program Files (x86)/TI/ccsv5/utils/bin/gmake --no-print-directory post-build
    'Create flash image: Intel-HEX'
    "C:/Program Files (x86)/TI/ccsv5/tools/compiler/c6000_7.4.1/bin/hex6x" ../DSK6713_INIT_hex.cmd && copy C6713.hex ..\..
    Translating to Motorola-S3 format...
    "DSK6713_INIT.out" ==> vectors
    "DSK6713_INIT.out" ==> bootload
    "DSK6713_INIT.out" ==> .text
    "DSK6713_INIT.out" ==> .cinit
    "DSK6713_INIT.out" ==> .const
    ЌҐ г¤ Ґвбп ­ ©вЁ гЄ § ­­л© д ©«.
    gmake[1]: [post-build] Error 1 (ignored)
    ' '

    **** Build Finished ****

  • Looks like it is having a problem with the "copy" part of the command. Can you try a "&" separator between the command instead of "&&", or add the multiple commands to a batch file as noted in the section "Running Multiple commands" in this article: http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#Pre_and_Post_Build_Steps