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/TMS320F28335: TMS320F28335

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hello,

How to generate .out file and .hex file from some of  .obj files and some .c files using Code Composer Studio   Version: 9.2.0.00013 . for some reasons, some .c file should be deleted from a project, but the corresponding .obj files are supported.

Thanks!

  • Hello,

    If I understand correctly, you wish to create an *.out file from just the object files (since some *.c source files are missing)? If so, then you can use the linker to generate the executable out file. Please refer to chapter 4 of the below user's guide:

    http://dev.ti.com/tirex/explore/node?node=APrU60ITeJcy-f1L4BfYJA__FUz-xrs__LATEST

    To generate a *.hex file, please refer to chapter 12 of the below guide:

    http://dev.ti.com/tirex/explore/node?node=ABVjhMWrxnFMiuAQchQdbQ__FUz-xrs__LATEST

    Thanks

    ki

  • Hello Ki,

    You  understand correctly.Can you give me setting details in ccs,I can not find in chapter 4. for example ,show me some picture

    thanks

  • hello,

    I show you an example, There are 5 .c files in this project, after compile, it generates 5 .obj files. And now I want to delete file0.c and file0.obj is in the prj. I want to know how to create .out file,how to configure the ccs linker. I read the link you provided, But can not find the answer. Can you show me details or give me snapshot of configuration.

    if there are many global variables in my .c file, How to create a lib file. I try to do it, but there are some variable can not be visited. Can you give me some advices.

    THANKSexample.zip

  • Victor123 said:
    I want to know how to create .out file,how to configure the ccs linker. I read the link you provided, But can not find the answer. Can you show me details or give me snapshot of configuration.

    One trick: When you build the project, look at the build output. The linker command needed will be output to the build console:

  • Hello Ki,

    Thanks for your reply.

    But I can not solve this problem.

    I describe my issue in detail.

    for example:I have create a project,it includes five source files: file0.c, file1.c, file2.c,file3.c,main.c

    this project can be built successfully,It generates  file0.obj, file01.obj, file2.obj,file3.obj,main.obj,and .out file be generated too.

    if in this project, some source files be lost, but the correspongding .obj file be in this project, and I modifed some source files(of course this source file should be in this project) ,how to generated .out file. the attached is an example project,I delete two source files,but the obj is leftexample(file0 and file1 lost).zip

  • Victor123 said:
    if in this project, some source files be lost, but the correspongding .obj file be in this project, and I modifed some source files(of course this source file should be in this project) ,how to generated .out file. the attached is an example project,I delete two source files,but the obj is leftexample(file0 and file1 lost).zip

    So you still want to build source files file2.c, file3.c, and, main.c to generate the respective object files. Then you want to link all the object files to build the out file.

    If that is the case, then here are you steps:

    1) compile each remaining source file individually to generate the obj for it

    2) link all the object files to create the out file

    See my example where I individually built file2.c, file3.c, main.c, and then linked all the object files to create the out file