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/CC2640R2F: Running the SDK on custom board

Part Number: CC2640R2F


Tool/software: Code Composer Studio

Hi everyone,

I am trying to port some of the examples to a custom board with the CC2640R2 chip on board. I managed to succesfully compile and run some of the examples, but now I am trying to make my own board file according to .

I am running in to troubles though, as CCS does not want to compile. I have removed the predefined symbol for CC2640R2_LAUNCHXL and replaced it with my custom board name. I have also changed the board files. The error I get is the following:

Any advice would be greatly appreciated.

Best regards,

Mattia

  • Hi Mattia,

    Did you also modify your board.c file to include your newly created custom board files (Board.h & YourCustomBoard.c)?

    Thanks,
    Gerardo
  • Hi Gerardo,

    Thank you for your message, I managed to solve my issue by editing my \source\ti\blestack\target\board.c file. I was including the custom board header file in stead of the custom board .c file.

    #if defined(CC2640R2DK_CXS) || defined (CC2640R2DK_4XS) \
          || defined (CC2640R2DK_5XD) ||  defined (CC2640R2DK_7ID)
        #include "./cc2640r2em/cc2640r2em_board.c"
    #elif defined(CC2640R2_LAUNCHXL)
        #include "./cc2640r2lp/cc2640r2lp_board.c"
    #elif defined(CC2640R2_RC)
        #include "./cc2640r2rc/cc2640r2rc_board.c"
    #elif defined(CC2640R2_CUSTOM_BOARD)
        #include "../boards/CC2640R2_CUSTOM_BOARD/Board.h"
        #include "../boards/CC2640R2_CUSTOM_BOARD/CC2640R2_CUSTOM_BOARD.c"
    #else // unknown board
        #error "***ERROR*** Invalid Board Specified! Please see board.h for options."
    #endif