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/CC2640R2F: How to set output hex file path or directory for all compiled and linked files in CCS9

Part Number: CC2640R2F
Other Parts Discussed in Thread: CCSTUDIO

Tool/software: Code Composer Studio

Hello,

I'm using CCS v9.0.0.00018 and having trouble to getting the output files(.hex .out, .map) into customized directory(user defined path). I've been able to get some compiled files (.OUT, .HEX, .MAP, .TXT, and OBJ) into the build directory(workspace). I want to change the path to generate the output directory files.

it is like in IAR (options->General Options->Output)

similarly needed in CCS.

Is there any options like that in CCS?

Thank you!

Best regards,

Harish.

  • Harish,

    The options are spread out in a few different places depending on which tool generates the output file. For example, for the .obj file generated by compiler, you can specify the path under Project Properties->Build->Compiler->Advanced Options->Directory Specifier. Change the Mode to "assisted manual" and specify the path for the --obj_directory.

    For the .out, .map files output by the linker, you can specify the path under Project Properties->Build->Linker->Basic Options, in the --map_file and --output_file options.

    For the .hex file, you can specify it under Hex Utility->General Options, in the --outfile option.

  • Thank you for giving reply AartiG,

    Could you please explain me that how the above options are enable in project spec file.

     script command for Hex Utility->General Options->--outputfile?

  • In a projectspec file you would use the "enableHexTool" and "hexBuildOptions" attributes. Alternately you can also use the "postBuildStep" project attribute.

    Please have a look at some of the projectspec examples that are included in the SimpleLink SDK (under C:\ti\simplelink_cc13x2_26x2_sdk_3_10_00_53\examples\..... for instance). 

    Also for additional information on the attributes, refer to the XML schema file for projectspecs named projectSpec.xsd. The file can be found in the directory 
    <ccs_install_dir>\ccsv<x>\eclipse\plugins\com.ti.ccstudio.project.templates_<version>\schema