Cannot see custom boards in nRF Connect for VS Code using a Mac

Custom boards are not getting picked up using nrf Connect for VS Code on a Macbook Pro. I have the settings.json set:


And there is a boards directory:

I've stopped and restarted VS Code, but the board I'm looking for won't show:

I even added the directory which has the /boards folder in it to the nrf settings:

Parents
  • Hi,

    I am not able to reproduce this on my end. Can you share the path you blured out in VS code (you blured everything so I am not able to see if it makse sense or not), and also the path to your boards file and all the files liste to see that you have all the requiered files there?

  • Let's say my project has a path which is:

    /Users/me/Projects/GitHub/lvgl_gc9a01_pr

    and I have a boards in it.

  • Can you show the actual paths, but just remove what you want to hide? As this should work and I don't see anything wrong in what you have described, I would like to see that as well. Also, how the board is defined (at least the list of files), ref my previous reply.

  • Let's use this as the path:

    /Users/me/Projects/GitHub/lvgl_gc9a01_pr

    But I can't get the board to appear through any method:

    1. There is a boards directory in my project which has a boards directory in it: /Users/me/Projects/GitHub/lvgl_gc9a01_pr/boards/arm/zswatch_nrf5340
    2. The settings.json has:
      "nrf-connect.boardRoots": [
      "${workspaceFolder}",
      "${workspaceFolder}"
      ]
    3. `Settings -> Extensions -> nRF Connect -> Board Roots` has: /Users/me/Projects/GitHub/lvgl_gc9a01_pr

     

    The files are here if it helps.

  • It seems you are missing at least the defconfig file which is mandatory. This is a list of mandatory files (for a 52 series device in this example, so you don't have multiple cores in this list, there are also no board revisions in this list):

    Fullscreen
    1
    2
    3
    4
    5
    6
    boards/<ARCH>/my_board_nrf52833
    ├── Kconfig.board
    ├── Kconfig.defconfig
    ├── my_board_nrf52833_defconfig
    ├── my_board_nrf52833.dts
    └── my_board_nrf52833-pinctrl.dtsi
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • That's it. I don't know how I missed it. I thought I copied everything over.

  • That is good news. Thanks for letting me know!

Reply Children
No Data