Adding custom board to Zephyr

Hello.

I try to add my own board to Zephyr. I made copy/paste nrf52833dk_nrf52833 and change file names and keywords. New folder is in: "C:/ncs/zephyr/boards/arm" . Unforunatelly, I can't choose my board in "Add Build Configuratrion" list. My new board doesn't exist there. I tried to restart VSC ofc. I can build  project with another configuration and it works fine. Environment: Windows, VSC, nRF Connect extension. My board config in attachement.

Best regards

PW

5277.rea_nrf52833.zip

Parents
  • Hi Piotr,

    Section 2.2 in this getting started guide for nRF Connect SDK - Part 3 covers how to create a custom board.

    Have you verified that you have updated all instances of the old board name?

    When I searched for 'nrf52833dk_nrf52833' in VS Code I find 14 results in 6 files for nRF Connect SDK v1.9.1(it might be a different number for you, depending on which version you are using).

    Best regards,

    Håkon

  • Hi again,

    I just realized that you have already attached your board files. I had a brief look and did not see something obvious missing.

    Anyways, have you verified that VS Code is configured for the same nRF Connect SDK version as you have added the board to? For example, if I add a new board to in the board folder for nRF Connect SDK v1.9.1, it will not be discoverable if VS Code is currently configured for nRF Connect SDK v2.0.2(and vice versa). Here is how to change the nRF Connect SDK version in VS Code:

    1. Go to the startup screen and expand "Quick Setup"
    2. Select the nRF Connect SDK version corresponding to where you added the custom board files.
Reply
  • Hi again,

    I just realized that you have already attached your board files. I had a brief look and did not see something obvious missing.

    Anyways, have you verified that VS Code is configured for the same nRF Connect SDK version as you have added the board to? For example, if I add a new board to in the board folder for nRF Connect SDK v1.9.1, it will not be discoverable if VS Code is currently configured for nRF Connect SDK v2.0.2(and vice versa). Here is how to change the nRF Connect SDK version in VS Code:

    1. Go to the startup screen and expand "Quick Setup"
    2. Select the nRF Connect SDK version corresponding to where you added the custom board files.
Children
No Data
Related