Tool/software: Code Composer Studio
I am building a project on CC2650. By default it's taking one the board's Board.h files, but fails to link when i change it from the default board. What i mean is that the following is the contents of the file which i have to edit. And the address of this file is <ti/simplelink/blesdk/src/target/cc2650em/cc2650em_board.c>
/******************************************************************************
@file cc2650em_board.c
@brief This file is a simple gateway to include the appropriate Board.c file
which is located in the following directories relative to this file:
CC2650DK_7ID
CC2650DK_5XD
CC2650DK_4XS
CC1350DK_7XD
The project should set the include path to Board.h to point to the
Board.h in one of these 4 directories. This
Board.h file will then define a symbol which is used in this file to
include the appropriate Board.c file which is found in the same
directory as Board.h
This way the project can look the same (and only include this Board.c)
file, when changing EM user only needs to update include path in the
project options. Alternatively, the device specific board files can
just be included directly in the project.
Group: WCS, LPC, BTS
Target Device: CC2650, CC2640, CC1350
******************************************************************************
******************************************************************************
Release Name: ble_sdk_2_02_01_18
Release Date: 2016-10-26 15:20:04
*****************************************************************************/
/*
* The location of this Board.h file depends on your project include path.
* Set it correctly to point to your CC2650DK_xxx
*/
#if defined(CC2650DK_7ID)
#include <../../boards/CC2650DK_7ID/Board.h>
#include <../../boards/CC2650DK_7ID/CC2650DK_7ID.c>
#elif defined(CC2650DK_5XD)
#include <../../boards/CC2650DK_5XD/Board.h>
#include <../../boards/CC2650DK_5XD/CC2650DK_5XD.c>
#elif defined(CC2650DK_4XS)
#include <../../boards/CC2650DK_4XS/Board.h>
#include <../../boards/CC2650DK_4XS/CC2650DK_4XS.c>
#else
#error "Must define either 'CC2650DK_7ID', 'CC2650DK_5XD', or 'CC2650DK_4XS'. Please set include path to point to appropriate device."
#endifHere in the include part, the first 3 lines have white background and the rest have blue. What does that mean?
And if i right click and open the declaration of <../../boards/CC2650DK_7ID/Board.h> it works fine, but fails to do so for the <../../boards/CC2650DK_5XD/Board.h> which is what i have to use. Also note that these files are located in the address <ti/simplelink/blesdk/src/boards/CC2650DK_5XD>
So naturally i commented the first 3 include lines, changed the "elif" to "if" for the <../../boards/CC2650DK_5XD/Board.h> and tried to compile but i get an error, which is basically the last line "Must define either 'CC2650DK_7ID', 'CC2650DK_5XD', or 'CC2650DK_4XS'. Please set include path to point to appropriate device."
How should i change the line #include <../../boards/CC2650DK_5XD/Board.h> so that it compiles properly ?