CODECOMPOSER: Request: Template project for static libraries in CCS 20.2.0+

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: TMS320F2800157

Tool/software:

As part of a project I need to create and use multiple static linked libraries.

It is a requirement to use CCS 20.2.0 for the project, which uses a c2000 / F2800157 MCU. The libraries are pure c code, so the MCU should not matter, though.

I have tried making a new project but end up in a project wizard hell, where it appear to be impossible to find a plain and simple static library project.

Can anyone provide a simple working template where the files can just be imported into CCS?

Judging from questions on this fora, and what I've found on the web, this is going to help a lot of people, including me.

Thanks in advance!

  • https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/81/empty_5F00_library_5F00_c2000.projectspechttps://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/81/empty_5F00_library_5F00_arm_5F00_clang.projectspec

    Flemming,

    Ideally our SDKs have library examples in them but currently they do not.  We are going to try to add a way to do this to the wizard without an example from the SDK.

    I tried putting together a couple of generic templates (projectspec) files.  They don't do much other than define that the project is a library and which type of toolchain to use, C2000 or Arm.

    Do these work for you?

    Regards,

    John

  • In addition to the projectspec files provided by JohnS, you can also use the project CLI commands to create a library project from scratch:

    https://software-dl.ti.com/ccs/esd/documents/users_guide_ccs/ccs_project-command-line-createProject-options.html

    Example of a static library project for F2800157 configured for using the TI compiler and the file type for ELF:

    > ccs-server-cli -noSplash -workspace "C:/temp/workspace_cli" -application com.ti.ccs.apps.createProject -ccs.name F2800157_staticLib -ccs.device TMS320C28XX.TMS320F2800157 -ccs.outputType staticLibrary - ccs.toolChain TI -ccs.outputFormat ELF

    Thanks

    ki