custom_board.h not found

Hi,

I have created a custom board with a nrf52840 on it. I am working with Embedded Studio v5.64 and the Nordic SDK v. 17.1.0. When I use the preprocessor definition BOARD_PCA10056, my code builds and I am able to flash my board.
Then I try to use my custom_board.h. It is placed in the components/boards folder, the same one where the pca10056.h file is located. I changed the preprocessor definition. Now when I try to build and debug i get an error message that the custom_board.h file was not found. The custom_board.h file is not hidden, protected or anything like that. The directory is included in the common project configurations at User Include Directories.
Am I missing something to be able to use my custom board file? How can I further investigate what might cause the problem?

Parents
  • Hi,

    You write you changed the preprocessor definition, so I assume that means you removed BOARD_PCA10056 and used BOARD_CUSTOM instead, as shown below?

    There must be a sensible explanation for this, for instance a typo in the file name or that it is located in the wrong directory etc (perhaps you have downloaded the SDK several times or have several versions, and do changes in different ones?). To narrow down, can you copy-paste the full path of both the project file and the custom_board.h file, so that we see that they are correctly located with respect to one another?

  • You write you changed the preprocessor definition, so I assume that means you removed BOARD_PCA10056 and used BOARD_CUSTOM instead, as shown below?

    Yes, exactly like that.


    The paths are:
    git_repo\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_uart_test\pca10056\s113\ses (project file)
    git_repo\nRF5_SDK_17.1.0_ddde560\components\boards (custom_board.h)

    I placed a stripped down version of the SDK (deleted all unnecessary examples) in a private Git repo, which I have only once on my machine.
    I also:
    - copy pasted the file name from inside the boards.h file and renamed the custom_board.h file with it.
    - right-clicked the boards.h file and opened it in the file explorer. I ended up in the same folder that also contains the pca10056.h and custom_board.h
    - renamed the pca10056.h file to verify that it is indeed the right folder. After renaming it the same "file not found" error occurs as expected, which means that it should be the right folder

  • That is really odd. Can you upload the stripped down SDK  you are using here so I can take a look?

Reply Children
No Data
Related