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/CC2640: for ble stack

Part Number: CC2640
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hii All

i build program in ccsv7 for cc2640 ble.

but i got below error in ccsv7

i have BLE stack 2.2.

-l"C:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272/driverlib/bin/ccs/driverlib.lib"
<Linking>

undefined first referenced
symbol in file
--------- ----------------
PIN_init ./main.obj

please give me solution ASAP.

  • Which example in BLE Stack 2.2 do you build with CCS7? Do you install BLE Stack to default folder which is c:\ti?
  • yes, i installed BLE Stack

    this is my main code

    #include <xdc/runtime/Error.h>
    #include <ti/drivers/Power.h>
    #include <ti/drivers/power/PowerCC26XX.h>
    #include <ti/sysbios/BIOS.h>
    #include <ti/drivers/PIN.h>

    #include <ti/boards/CC2640/BoardCC2640.h>



    //#include <pin_config.h>
    //#include <CC2640_5XD.h>


    //PIN_Config BoardGpioInitTable[] ;

    const PIN_Config BoardGpioInitTable[] = {

    Board_LED | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* LED initially off

    };
    int main(void) {

    PIN_Handle hEtagPins;
    PIN_State EtagPins;
    PIN_init(BoardGpioInitTable);

    return 0;
    }

    i got below error

    undefined first referenced
    symbol in file
    --------- ----------------
    PIN_init ./main.obj

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "S1_Bond.out" not built

    >> Compilation failure
    makefile:142: recipe for target 'S1_Bond.out' failed
    gmake[1]: *** [S1_Bond.out] Error 1
    makefile:138: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

    please give me solution

    thanks
    Nitin Kanani
  • If you intend to create a basic program, I suggest to use empty project at dev.ti.com/.../