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.

CC2640R2F: Custom board files not picked up during compilation

Part Number: CC2640R2F

I have a custom board with the CC2640R2F on it. I'm using SDK 1.50 with the SBP OAD on-chip example.

I followed this guide -  - to add custom board files to my project. I've added a new folder with a new Board.h, MyBoard.c and MyBoard.h. I've replaced the compile time board type CC2640R2_LAUNCHXL with MYBOARD but yet I observe compile time errors finding my board defines in my application files. What could be going wrong?

  • To add more context
    I have a define for BOARD_LED in Myboard.h, and it is used in myapplication.c which includes Board.h
    Introducing a syntax error in Myboard.h shows me that it is being compiled.
    The error is "identifier "BOARD_LED" is undefined"
  • Hello,

    Depending on how you imported the board files, you may need to the path to your files to your include options.
    If you are using CCS, the files are likely copied into the workspace. You can find the location of the files by right clicking them and clicking properties which show the resolved location. Make sure this location is in your include path.

    Also make sure the file is included in the application from which you intend to reference its definitions using the C #include statement.

  • Thank you for the insight. I was missing an include path in my project. I think it will be a useful addition to the guide at this step 2 as well -
    "Replace CC2640R2_LAUNCHXL by MYBOARD in your project’s application predefined symbols (See Accessing Preprocessor Symbols or Accessing Preprocessor Symbols)"