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.

LAUNCHXL-F28379D: How to run the codes given in C2000 driverlib

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Hello,

I was trying to run the i2c codes given in c2000->driverlib->cpu1->examples folder. 

for 1st example code I am receiving an error that couldn't find board.h file and regarding some functions. board.h is not provided in any folder.

when I am trying to run the example 3 code I am receiving lots of errors that these functions are undefined. How to run those codes ?

When I am trying to run the code from device support-> examples they are working fine. e.g. i2c_eeprom

Nisha

  • hello,

    now it is not showing error of board.h file but it is showing following error for example1:


    gmake: *** [build-444689119] Error 1 i2c_ex1_loopback C/C++ Problem
    gmake: Target 'all' not remade because of errors. i2c_ex1_loopback C/C++ Problem

    for Example 3 it is showing following error:

    Description Resource Path Location Type
    #10010 errors encountered during linking; "i2c_ex3_external_loopback.out" not built i2c_ex3_external_loopback C/C++ Problem
    <a href="file:/C:/ti/ccs1020/ccs/tools/compiler/dmed/HTML/10234.html">#10234-D</a> unresolved symbols remain i2c_ex3_external_loopback C/C++ Problem
    gmake: *** [all] Error 2 i2c_ex3_external_loopback C/C++ Problem
    gmake[1]: *** [i2c_ex3_external_loopback.out] Error 1 i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol __error__, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol code_start i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol Device_init, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol Device_initGPIO, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol Example_Fail, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol Example_PassCount, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol GPIO_setDirectionMode, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol GPIO_setPadConfig, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol GPIO_setPinConfig, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol GPIO_setQualificationMode, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol I2C_clearInterruptStatus, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol I2C_enableInterrupt, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol I2C_getInterruptStatus, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol I2C_initMaster, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol Interrupt_enable, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol Interrupt_initModule, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem
    unresolved symbol Interrupt_initVectorTable, first referenced in ./i2c_ex3_external_loopback.obj i2c_ex3_external_loopback C/C++ Problem

    Nisha

  • Hi Nisha,

    Loos like the device.c file and the drivelib.lib is not properly linked in the CCS project. Do you see any warning symbols on the files listed in the CCS project?

    Are you using the standalone C2000ware package or TI Explorer?

    Regards,

    Veena

  • Hii Veena,

    Yes I am using Standalone c2000ware.

    I have excluded driverlib.lib file from project. If I include it is showing following error:

    Errors:

    Description Resource Path Location Type
    gmake: *** No rule to make target 'E:/driverlib/ccs/Debug/driverlib.lib', needed by 'all'. i2c_ex3_external_loopback C/C++ Problem
    gmake: Target 'all' not remade because of errors. i2c_ex3_external_loopback C/C++ Problem

    warnings :
    Invalid project path: Include path not found (C:\ti\c2000\C2000Ware_3_03_00_00\driverlib\f2837xd\examples\driverlib). i2c_ex3_external_loopback pathentry Path Entry Problem
    Invalid project path: Include path not found (E:\Workspaces\CCS_Workspaces\CCS_1\i2c_ex3_external_loopback\device). i2c_ex3_external_loopback pathentry Path Entry Problem
    This project contains 1 unresolved buildable linked resource(s). The project may not build as expected. i2c_ex3_external_loopback project Problem

    Nisha

  • Hi Nisha,

    Can you confirm whether the paths mentioned above are valid?

    To correctly build the project the driverlib.lib and the contents in device folder should be linked.

    To make sure it is not an issue with the CCS workspace, recommend you to open a new workspace.

    Regards,

    Veena

  • Hi Nisha,

    Since we haven't heard from you since last 2 week, we assume the issue has been resolved. I am marking this thread as resolved. If you are still facing issues, please reject the resolution and reply to the thread with more details.

    Regards,

    Veena