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.

Generating TI-TXT file with CCSV6 and GCC

HI all,

I am trying to set up a build environment to get CCSV6 with GCC to generate a TI-TXT output file to program my devices.

In the project properties I have found the "GNU Objcopy Utility / General Options" tab. This seems to allow me to convert the standard "elf32-msp430" generated by the linker to a number of formats, and I can generate "ihex" but there is no option in the drop-down for TI-TXT. Does this mean it is not possible, or am I just looking in the wrong place?

Regards

Roy 

  • 1.Select Project >>> properties 

    2.Build.

    3. Then click OK to close the Properties window.

    4. Next select Project -> Clean.. and Build Project to generate the binary file. In this case, the .txt file that is generated can be found under the “Debug” folder of the project. The file can be located under the folder path: ….Project Folder\Debug\

    cheers.

  • Hi Sri,

    I believe your screenshot is from CCS V5 rather than V6.

    With CCS V6 You get this with the TI compiler

    And this with the GCC Compiler:

    There is not a built-in option here for TI-TXT. I have used this to generate a "srec" file that looks like it may be correct, but I now need to convert from the "srec" format to TI-TXT.

    I am currently investigating using srec_cat to do this conversion, and then setting it up as a post build step, if no one comes up with a better solution.

    Roy 

  • HI,

    I have managed to solve this problem, but thought I would post results to help anyone else with a similar problem.

    Enabling the Objcopy utility as described in the above post, and adding the srec_cat command to the Post-Build commands does not quite work, as the post build commands get executed after the linker runs, but before the Objcopy runs. Hence the srec_cat command does not have the input file created by Objcopy.

    I solved this by disabling Objcopy, and putting both commands into the post build steps as follows

    "${CG_TOOL_OBJCOPY}" -I elf32-msp430 -O srec  "${BuildArtifactFileBaseName}.out"  "${BuildArtifactFileBaseName}.hex
    C:\utilities\srec_cat "${BuildArtifactFileBaseName}.hex" -o "${BuildArtifactFileBaseName}.txt" -Texas_Instruments_TeXT

  • Hello Roy,

    I have this problem about generate file TI-TXT.
    I do your manipulate but I don't know if the file has create or no.

    In workspace_v6_0 and in my project, I don't see the file .txt.

    Where is file create ?

**Attention** This is a public forum