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: CCS7 Problems with include path or some other links or variables for mpu_9150 example code.

Other Parts Discussed in Thread: TM4C1294NCPDT

Tool/software: Code Composer Studio

Hello, i install new operating system on my computer, and instal new ccs7. Before i had uploeaded mpu_9150  example uploaded on my microcontroler and it was working, but now i flash it again with new instalation of CCS and i can't use sensor mpu_9150. But now i have problem like before with links, i made some changes of install folder, but not sure is it right. I will upload my project for mpu9150 and error which give me  CCS. I don't have problem with pressure example.

compdcm_mpu9150.rar

  • Hi,

    I imported your project with the pre-installed Tivaware version 2.1.3.156 and got the same errors. In this case, I found out the original project had a few issues:

    A missing include path to:

    And duplicate linker CMD and startup files: 

    I excluded the tm4c1294ncpdt* files. That brought some additional errors caused by the non-defined device revision - for example:

    Adding the compiler defined as shown above still showed some additional errors caused probably by the missing custom libraries.

    Problems view said:

    Description Resource Path Location Type
    #10010 errors encountered during linking; "compdcm_mpu9150.out" not built compdcm_mpu9150 C/C++ Problem
    <a href="processors.wiki.ti.com/.../10234"> unresolved symbols remain compdcm_mpu9150 C/C++ Problem
    gmake: *** [all] Error 2 compdcm_mpu9150 C/C++ Problem
    gmake[1]: *** [compdcm_mpu9150.out] Error 1 compdcm_mpu9150 C/C++ Problem
    unresolved symbol CompDCMAccelUpdate, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol CompDCMComputeEulers, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol CompDCMComputeQuaternion, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol CompDCMGyroUpdate, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol CompDCMInit, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol CompDCMMagnetoUpdate, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol CompDCMStart, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol CompDCMUpdate, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol I2CMInit, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol I2CMIntHandler, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol MPU9150DataAccelGetFloat, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol MPU9150DataGyroGetFloat, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol MPU9150DataMagnetoGetFloat, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol MPU9150DataRead, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol MPU9150Init, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol MPU9150Write, first referenced in ./compdcm_mpu9150.obj compdcm_mpu9150 C/C++ Problem
    unresolved symbol UARTStdioIntHandler, first referenced in ./startup_ccs.obj compdcm_mpu9150 C/C++ Problem

    At this point I would check if there are any of your own custom libraries missing from the project. 

    Hope this helps,

    Rafael

  • I remove project from project explorer and from my workplace folder, and import new example of project mpu_9150, after debug it is working, but if i wrote even // for comment in .c file,  after build and debug  i got errors, maybe it is because of compiler?:

    I don't have this problems with other examples - for temp006, light sensor, or humidity. only mpu9150 and only if i edit  .c file

  • bode miller said:
    but if i wrote even // for comment in .c file,  after build and debug  i got errors, maybe it is because of compiler?:

    This specific issue is due to a known compiler bug. Details are in this forum thread.

    To get around this, please follow the steps mentioned in that post to install the older 5.2.6 compiler, then in the Project Properties, set the compiler version to be 5.2.6 and rebuild. That should fix the unresolved symbol error.

  • it is working with compiler 5.2.9

    thanks a lot :)