Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

How to change from BOARD_PCA10040 to BOARD_CUSTOM

I have an example for board PCA10040 that I want to use on a custom board. It is described on 
nRF5_SDK_v17.1.0/nrf5/sdk_for_custom_boards.html that I have to
(1) create a file custom_board.h, and
(2) define BOARD_CUSTOM.
It is however not described how I remove the definition of BOARD_PCA10040. 

So, where and how do I remove the definition of BOARD_PCA10040 and add the definition of BOARD_CUSTOM?

Parents
  • OK, so I have to 
    1. In the Project Explorer, mark line "Project '...' ".
    2. In top menu, open Project and select Options...
    3. In the Options window, select Common.
    4. In the Code section, select Preprocessor, and then double-click on Processor Definitions.
    to get to the desired Property Editor and be able to modify the preprocessor definitions.

    If I just have another item marked in the Project Explorer or just don't select Common in the Options window, then the Property Editor is completely different. That was a bit far fetched ...

  • Jan Kinander said:
    OK, so I have to 
    1. In the Project Explorer, mark line "Project '...' ".
    2. In top menu, open Project and select Options...
    3. In the Options window, select Common.
    4. In the Code section, select Preprocessor, and then double-click on Processor Definitions.
    to get to the desired Property Editor and be able to modify the preprocessor definitions.

    This is correct - alternatively you could also just right click on the project in the project explorer, and select options.

    Jan Kinander said:
    If I just have another item marked in the Project Explorer or just don't select Common in the Options window, then the Property Editor is completely different. That was a bit far fetched ...

    I can see how the highlighting of files in the project explorer affecting which options are opened might be a bit confusing. The property editor will be different for each file, since they all inherit from the project configuration - this is a good thing though, so you do not have to modify each file's configuration on their own.

    Best regards,
    Karl

Reply
  • Jan Kinander said:
    OK, so I have to 
    1. In the Project Explorer, mark line "Project '...' ".
    2. In top menu, open Project and select Options...
    3. In the Options window, select Common.
    4. In the Code section, select Preprocessor, and then double-click on Processor Definitions.
    to get to the desired Property Editor and be able to modify the preprocessor definitions.

    This is correct - alternatively you could also just right click on the project in the project explorer, and select options.

    Jan Kinander said:
    If I just have another item marked in the Project Explorer or just don't select Common in the Options window, then the Property Editor is completely different. That was a bit far fetched ...

    I can see how the highlighting of files in the project explorer affecting which options are opened might be a bit confusing. The property editor will be different for each file, since they all inherit from the project configuration - this is a good thing though, so you do not have to modify each file's configuration on their own.

    Best regards,
    Karl

Children
No Data
Related