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: Problem by changing board include files

Other Parts Discussed in Thread: CC2650STK, CC2650

Tool/software: Code Composer Studio

Hi,

I'm using the ble example simple central for smartRF06 Evaluation Board with cc2650em_7id as base for a bigger program and i want to change the "link" or the include to Board.h to use my own Board file, as well as CC2650DK_7ID.c and .h. The problem is that i don't find where I can change/delete the link to use my files in the project folder. Could you tell me what i'm missing?

Thank you,

Miguel Vieira

  • Hello Miguel,
    For linked files, you can simple delete a link to a file in the Project Explorer and then drag and drop your file to the project in the Project Explorer to create a new link to that file. If the header files are being picked up via the include search path list, you can modify the include search path to make sure it picks up your header file.

    For more information, please see:
    processors.wiki.ti.com/.../Projects_and_Build_Handbook_for_CCS

    Specifically note sections 2.4 (adding/linking files to a project), 4.2 (build options like include search path options), 8 (portable project - which covers variables often used by linked files)

    Let me know if this helps or if you need more clarification.

    Thanks
    ki
  • I am not sure which example you are using but I imported the simple_ap example. In that I see a board.c file. It has some conditional #include statements that may be what you are interested in.

    #if defined (CC2650DK_7ID)
    #include "./board_cc2650em/board_cc2650em.c"
    #elif defined (CC2650STK)
    #include "./board_cc2650stk/board_cc2650stk.c"
    #elif defined (CC2650_LAUNCHXL)
    #include "./board_cc2650lp/board_cc2650lp.c"
    #else
    #error "Platform is either not specified or not supported! Pleae define CC2650DK_7ID, CC2650STK or CC2650_LAUNCHXL."
    #endif