Configuring my custom board throws errors

I created a custom board and tried experimenting by changing the following:

prj.conf

customboard_defconf

Now when trying to build again I get:

Parents
  • What are you attempting to build exactly? I just checked the source directory from your build command and that isn't an application it's a CMakeLists.txt template I'm fairly certain. 

    west build --build-dir /NordicTests/testproject/build /home/user/ncs/v2.9.0/zephyr/share/sysbuild/template --pristine --board ZanaBoard_Valve/nrf52833 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/NordicTests/testproject

  • I just created a new app. Not even from a template just a basic main.c that returns 0.

    Created a new board, and build configuration. Confirmed that everything built fine on my new board, then just edited the files above to progressively add some more functionality. When trying to build again I got the message you see above. I'm building through the vscode extension that provides a "pristine build" or "build" button.

  • Yes, but that isn't what is being built or attempting to build, it is attempting to build from the folder I highlighted below. Can you take a screenshot of your build configuration? Did you add your project folder as an application inside the VS Code NCS extension?

Reply
  • Yes, but that isn't what is being built or attempting to build, it is attempting to build from the folder I highlighted below. Can you take a screenshot of your build configuration? Did you add your project folder as an application inside the VS Code NCS extension?

Children
  • Apart from changing to the new board, I didn't do anything special on the build configuration.

    I created a new project through the "create new application" button from the extension, no other files were dropped in.

  • The screenshot you sent is showing the Explorer view instead of the NCS extension view. Can you show me the view from your NSC extension tab? 

    You could also open an nRF Connect terminal from VSC and run

    west build -b ZanaBoard_Valve/nrf52833 -d /NordicTests/testproject/build -p

    Before running this command, I would delete the current build folder and artefacts to prevent it from trying the same thing again. 

  • the command you gave me produces a different error this time:

  • Have you followed the instructions for adding a custom board into your project? I would review the following links to get everything linked and ported in correctly:

    How to work with boards and devices

    Board Porting Guide

  • Hi,

    Yes, as I said in the original question I managed to get to the point where I

    1. generated a board correctly
    2. build the app using that board

    The error happened when I changed those two configuration files, and I pressed build again. The second time I pressed "build" I got the error I originally reported. No other change was done to the project apart from what are in the original question.