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.

how to generate .lib file from an existing project CCS5.4 for C2000

Hi,


in our group we use CCS5.4.0.00091 to program our microcontroller TMS320FF2808. While we all use same functions for regulation/control purpose (like PI-regulator, clark and park transformation, ...) we made in the paste a .lib file with the ar2000, invoked from some batchfiles (CCS3.3)

From some month we migrate to CCS5.4, and I want to be able to rebuild our existing .lib, to add new functionality. Of course I could adapt the batch files to invoke the new ar2000. But I like integrate in CCS5.4 the command lines (or tool chaine) to generates this .lib file directly.

I now that with project wizzard it's possible to create a static library (search "How to Generate Library (.LIB) file" in this forum), but I would like use an existing project and create a new configuration to perform this. On this way, with a configuration "debug" I could check the functionality of my new functions. If the news functions work fine, with a new configuration "make Static Library" I will be able to generate the .lib file.

It is possible to mix the Tool Chain in the same project? If yes how? Are some document available?


Thanks in advance.

  • Blaise Evequoz said:
    It is possible to mix the Tool Chain in the same project?

    When you say Tool Chain I assume you are referring to the compiler build tools. if so, yes you can have a project use different compiler versions during build.
    http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#Changing_Compiler_versions

    Blaise Evequoz said:
    but I would like use an existing project and create a new configuration to perform this.

    You can import an existing CCS 3.3 project into CCS v5 (using Project->Import Legacy CCS v3.3 Project), or create a new library project in CCSv5, and then create multiple build configurations to test out your new functionality. Please see this wiki page for more information on build configurations:
    http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#Build_Configurations

     

  • Hi Aarti,

    Great! Thank you for your link to the wiki.

    AartiG said:
    When you say Tool Chain I assume you are referring to the compiler build tools.

    By Tool Chain I understand compiler-linker or compiler-archiver (not the compiler version)

    With the informations of the wiki I was able to create a new configuration in same project (ram(equivalent to debug), release and a new "archiver" configuration).

    For debug and release I use a "Executable Output type" (Tool Chain Editor with TI Build Tools with used tools C2000 Compiler and C2000 Linker). The properties for my project looks like this picture:

    For the "archiver" configuration I have modified the Tool Chain with used tools C2000 Compiler and C2000 Archiver (instead C2000 Linker). I've made this change in C/C++ Build-->Tool Chain Editor. On this way, I could set in project itself the archiver properties, by changing my configuration. In this case the properties for my project looks like this picture:

    By excluding the source files I don't want add to *.lib, I could generate my own *.lib to share our useful functions in our group.

    Best regards