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.

MSPM0L1306: Installing MSPM0 SDK on Linux using command-line so that it can be found by CCS

Part Number: MSPM0L1306

I'm trying to build a Docker image that contains CCS, GCC and MSPM0 SDK for building a project targeting the MSPM0L1306. I have CCS installed into /opt/ti/ccs, GCC installed into /opt/ti/ccs/tools/compiler, and the MSPM0 SDK installer into /opt/ti/mspm0_sdk_2_00_01_00.

However, when I run a CCS build with a project that uses the SDK, it complains that the SDK is not installed:

Product MSPM0-SDK v2.0.1.00 is not currently installed and no compatible version is available. Please install this product or a compatible version.

How can I tell CCS where the MSPM0 SDK has been installed?

  • Hi Tyler 

    Please try CCS --> Project --> Import CCS project.

    May I know if project can be imported by this way?

    Thanks!

  • I am unable to do that within the Docker container since it has no GUI capabilities. However, this project is already imported into my CCS workspace on the Windows computer hosting the Docker engine, and I can build it successfully there.

    Basically, I'm unsure how CCS detects that the MSPM0 SDK is installed on Linux. What is it looking for?

  • I can run the command-line import in the Docker container successfully:

    root@9893bbbf1222:/# eclipse -noSplash -data /work/ccs12_workspace -application com.ti.ccstudio.apps.projectImport -ccs.location /work/motionlogiccontroller 
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See www.slf4j.org/codes.html for further details.

    --------------------------------------------------------------------------------
    Importing project from '/work/motionlogiccontroller'...


    Done!

    But when I build that workspace, it fails:

    root@9893bbbf1222:/# eclipse -noSplash -data /work/ccs12_workspace -application com.ti.ccstudio.apps.projectBuild -ccs.workspace 
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See www.slf4j.org/codes.html for further details.

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    CCS headless build starting... [Thu May 16 13:48:13 GMT 2024]
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    ================================================================================
    Pre processing...


    ================================================================================
    Building...


    **** Clean-only build of configuration Debug for project MotionLogicController ****

    /opt/ti/ccs/utils/bin/gmake -k -j 8 clean -O

    rm -rf "error.h" "MotionLogicController.out"
    rm -rf "main.o" "time.o"
    rm -rf "main.d" "time.d"
    Finished clean


    **** Build Finished ****
    Buildfile generation error occurred..
    Product MSPM0-SDK v2.0.1.00 is not currently installed and no compatible version is available. Please install this product or a compatible version.
    Build stopped..


    ================================================================================
    CCS headless build complete! 1 out of 1 projects have errors.

    I have the MSPM0 SDK installed in /opt/ti:

    root@9893bbbf1222:/# ls /opt/ti/mspm0_sdk_2_00_01_00/
    docs imports.mak known_issues_FAQ.html manifest_mspm0_sdk_2_00_01_00.html release_notes_mspm0_sdk_2_00_01_00.html tools uninstall.dat
    examples kernel license_mspm0_sdk_2_00_01_00.txt mspm0sdk_2_00_01_00.log source uninstall
  • Hi Tyler 

    I will check with the expert and reply to you later

    Thanks

  • Hi, any update on this?

  • Hi Tyler

    I discussed with the expert, your question is "install SDK" or "find SDK directory" using command line.

    I will check with CCS team. Thanks!

  • So I worked out a solution to this. I had to run the following command in the Docker container so that CCS could discover the SDK:

    ccs-server-cli.sh -workspace /workspace -application initialize -ccs.productDiscoveryPath ${MSPM0_SDK_ROOT}