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 5.5 6.x Project Import failure

Other Parts Discussed in Thread: CCSTUDIO

 CCS v 6.0 don't link nor compile some code...

 Adding manually code on same directory code generate obj and get linked.

 Launching make GCC compile and link fine, is TI compiler is unable to find reference? Compiler find ""include"" reference but not source code to generate necessary obj.

 No original project file compile fine, fail on import!!!

 this is .project file no source code is referenced to and never can generate OBJ!!

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>sd_card</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
            <triggers>full,incremental,</triggers>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>com.ti.ccstudio.core.ccsNature</nature>
        <nature>org.eclipse.cdt.core.cnature</nature>
        <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
        <nature>org.eclipse.cdt.core.ccnature</nature>
        <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
    </natures>
    <variableList>
        <variable>
            <name>ORIGINAL_PROJECT_ROOT</name>
            <value>file:/opt/ti/TIVAWare_2_1/examples/boards/ek-lm4f232/sd_card/ccs/</value>
        </variable>
        <variable>
            <name>SW_ROOT</name>
            <value>$%7BPARENT-5-ORIGINAL_PROJECT_ROOT%7D</value>
        </variable>
    </variableList>
</projectDescription>

 THIS is the one from TIVAWare directory, reference to source code are in place, so CCS fail on import, on version older than 5.5 there where two "import" menu entry now just one and this one seems the non working one.

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>sd_card</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
            <triggers>full,incremental,</triggers>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>com.ti.ccstudio.core.ccsNature</nature>
        <nature>org.eclipse.cdt.core.cnature</nature>
        <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
        <nature>org.eclipse.cdt.core.ccnature</nature>
        <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
    </natures>
    <linkedResources>
        <link>
            <name>sd_card.c</name>
            <type>1</type>
            <locationURI>SW_ROOT/examples/boards/ek-lm4f232/sd_card/sd_card.c</locationURI>
        </link>
        <link>
            <name>sd_card_ccs.cmd</name>
            <type>1</type>
            <locationURI>SW_ROOT/examples/boards/ek-lm4f232/sd_card/sd_card_ccs.cmd</locationURI>
        </link>
        <link>
            <name>startup_ccs.c</name>
            <type>1</type>
            <locationURI>SW_ROOT/examples/boards/ek-lm4f232/sd_card/startup_ccs.c</locationURI>
        </link>
        <link>
            <name>drivers/cfal96x64x16.c</name>
            <type>1</type>
            <locationURI>SW_ROOT/examples/boards/ek-lm4f232/drivers/cfal96x64x16.c</locationURI>
        </link>
        <link>
            <name>utils/cmdline.c</name>
            <type>1</type>
            <locationURI>SW_ROOT/utils/cmdline.c</locationURI>
        </link>
        <link>
            <name>utils/uartstdio.c</name>
            <type>1</type>
            <locationURI>SW_ROOT/utils/uartstdio.c</locationURI>
        </link>
        <link>
            <name>third_party/fatfs/port/mmc-ek-lm4f232.c</name>
            <type>1</type>
            <locationURI>SW_ROOT/third_party/fatfs/port/mmc-ek-lm4f232.c</locationURI>
        </link>
        <link>
            <name>third_party/fatfs/src/ff.c</name>
            <type>1</type>
            <locationURI>SW_ROOT/third_party/fatfs/src/ff.c</locationURI>
        </link>
        <link>
            <name>third_party/fatfs/src/option/cc932.c</name>
            <type>1</type>
            <locationURI>SW_ROOT/third_party/fatfs/src/option/cc932.c</locationURI>
        </link>
    </linkedResources>
    <variableList>
        <variable>
            <name>SW_ROOT</name>
            <value>$%7BPARENT-5-PROJECT_LOC%7D</value>
        </variable>
    </variableList>
</projectDescription>

 

  •  The yellow marked part disappear on import, so patching .project with what is missing you get code compiled!!

     QS_weather got compiled and linked and these are the last lines .. so TI please cure again this old threat on import filter....

    l"/opt/ti/TIVAWare_2_1/examples/boards/dk-tm4c129x/qs_weather/ccs/../../../../../driverlib/ccs/Debug/driverlib.lib" -l"/opt/ti/TIVAWare_2_1/examples/boards/dk-tm4c129x/qs_weather/ccs/../../../../../grlib/ccs/Debug/grlib.lib"
    <Linking>
    Finished building target: qs_weather.out
     
    "/opt/ti/ccsv6/utils/tiobj2bin/tiobj2bin" "qs_weather.out" "qs_weather.bin" "/opt/ti/ccsv6/tools/compiler/arm_5.1.5/bin/armofd" "/opt/ti/ccsv6/tools/compiler/arm_5.1.5/bin/armhex" "/opt/ti/ccsv6/utils/tiobj2bin/mkhex4bin"
    /opt/ti/ccsv6/utils/tiobj2bin/tiobj2bin: 52: /opt/ti/ccsv6/utils/tiobj2bin/tiobj2bin: Syntax error: "(" unexpected
     
    gmake[1]: [post-build] Error 2 (ignored)

    **** Build Finished ****

     Also on SD project where all files are on building directory same error

    lm4f232.obj" "./ff.obj" "./cmdline.obj" "./cfal96x64x16.obj" "./cc932.obj" "../sd_card_ccs.cmd" -l"libc.a" -l"/opt/ti/TIVAWare_2_1/examples/boards/ek-lm4f232/sd_card/ccs/../../../../../driverlib/ccs/Debug/driverlib.lib" -l"/opt/ti/TIVAWare_2_1/examples/boards/ek-lm4f232/sd_card/ccs/../../../../../grlib/ccs/Debug/grlib.lib"
    <Linking>
    Finished building target: sd_card.out
     
    "/opt/ti/ccsv6/utils/tiobj2bin/tiobj2bin" "sd_card.out" "sd_card.bin" "/opt/ti/ccsv6/tools/compiler/arm_5.1.5/bin/armofd" "/opt/ti/ccsv6/tools/compiler/arm_5.1.5/bin/armhex" "/opt/ti/ccsv6/utils/tiobj2bin/mkhex4bin"
    /opt/ti/ccsv6/utils/tiobj2bin/tiobj2bin: 52: /opt/ti/ccsv6/utils/tiobj2bin/tiobj2bin: Syntax error: "(" unexpected
    gmake[1]: [post-build] Error 2 (ignored)
     

    **** Build Finished ****

     

  • # ==========================================================================
    function make_exe_work()
    {

    Syntax error: "(" unexpected
    gmake[1]: [post-build] Error 2 (ignored)

    ---------------------------------------------------------------------------------------------------------------

     ????? Why ???? Also shell get crazy there?

    root@robertomint-SVS1511C5E:/opt/ti/ccsv6/utils/tiobj2bin# sh
    # function xxx()       
    sh: 1: Syntax error: "(" unexpected
    #

     Is import  shell script based too?

  • Hi Roberto,

    For whatever reason, importing the project on a Linux host causes the copied .project file to lose all the linked file information (as you already noticed). On Windows, everything is fine. I'll keep looking into this and keep you posted.

    ki

  • Ki-Soo Lee said:
    For whatever reason, importing the project on a Linux host causes the copied .project file to lose all the linked file information (as you already noticed). On Windows, everything is fine. I'll keep looking into this and keep you posted.

     HI Ki, thank for answer, I don't know why, but I just replay'd to Johns suffering similar trouble too.
     My version is Linux Mint 15 64 bit installed as root. Also version beta 6.0 was not functional in a similar way.

     If you need more information or some test to pinpoint where problem is I can try for.

     

  • John, Aarti and I were looking into this this morning. We can reproduce this pretty easily. I filed a bug, tracking ID: SDSCM00050110

    Thanks

    ki

  • Ki-Soo Lee said:

    I filed a bug, tracking ID: SDSCM00050110

     Hi Ki, what about shell function? I am not using shell from long time but I read man pages and function still follow that syntax...

     On another thread I reported all error I got before pointing to .project file, now I cannot access debugger for TIVA nor C2000, MSP430 refuse to compile, there is one empty include specifier in command line, this one is less important I know processor and tool in dept and I can wait to unify IDE.

  • Is there any update on this? I am having this same issue and It seems to fail when running the 5.2.8 compiler with the assembly flag on Linux 64-bit ubuntu.
    I don't see it when I compile the same code on Ubuntu 32-bit.
  • Bug SDSCM00050110 should have been fixed in CCSv6.1.0. What version are you using?