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.

CODECOMPOSER: CCS Theia: Creating and Building Projects from Command Line

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: CCSTUDIO, MSPM0L1306

Hi CCS Team,

When I check CCS Theia user's guide(https://software-dl.ti.com/ccs/esd/documents/users_guide_ccs_theia/)

"6.3 Creating and Building Projects from Command Line" section is connected to eclipse version page.

but it seems like there should be difference between eclipse based CCS and CCS Theia. do you have any explanation for diferences?

and my customer confirmed CCS Theia works in Ubuntu18 but on his Ubuntu20 machine, CCS theia cannot recognize the clang compiler. does he need to install another compiler that supports ubuntu20?

if so please let me know the link.

Regards,

Ted 

  • Hi Ted,

    but it seems like there should be difference between eclipse based CCS and CCS Theia. do you have any explanation for diferences?

    Yes there is. The Theia User's Guide is still under construction and that section is currently being worked on. 

    The usage is mostly the same. However, due to how workspaces functionality changed with CCS Theia, there are some considerations.

    First, lets start with the command.

    The two main things to consider is:

    -replace "eclipsec" with "ccs-serverc" (on Windows) or "eclipse" with "ccs-server" (on Linux).

    -replace "ccstudio" with "ccs"

    For example (on Linux):

    instead of:

    > ./ccs-eclipse -noSplash -data ~/workspace_ccstheia -application com.ti.ccstudio.apps.projectImport -ccs.location ~/workspace_ccstheia/gpio_toggle_output_LP_MSPM0L1306_nortos_ticlang

    Use:

    > ./ccs-server -noSplash -data ~/workspace_ccstheia -application com.ti.ccs.apps.projectImport -ccs.location ~/workspace_ccstheia/gpio_toggle_output_LP_MSPM0L1306_nortos_ticlang
     

    That is basically it from a command syntax standpoint.

    The other consideration is how workspaces work in CCS Theia. I will spare you all the details but the key thing to understand is that even if you already imported the project from the Theia IDE into the workspace, you still must import the project from the command line before you can build it from the command line. This is a known issue and something we are looking to address in CCS Theia 1.1.0. But in the meantime you must use this workaround. Also note that the reverse is true. If you import a project via the command line to the same workspace, the project may appear in the CCS Theia IDE Explorer but it cannot be built until the same project is explicitly imported from the IDE. This may require you to delete the project and reimport it from the IDE. Again, this is a known issue that we are looking to address in CCS Theia 1.1.0.

    and my customer confirmed CCS Theia works in Ubuntu18 but on his Ubuntu20 machine, CCS theia cannot recognize the clang compiler. does he need to install another compiler that supports ubuntu20?

    I have no issue with CCS Theia 1.0.1 or the clang compiler that comes with it on my Ubuntu 20.04 machine.

    I suspect your customer may be running into the below issue:

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1168839/ccstudio-ccs12-linux-not-showing-ti-cgt-armllvm_2-1-0-lts-in-compilers-list/4410474#4410474

    Thanks

    ki

  • UPDATE: I had some typos in the commands I mentioned above. I have fixed them.