VS Code nrf-connect support custom boards under west workspace

Hello,

Currently the nrf-connect extension offers board targets under build configuration. These are categorized as "Nordic SoC", "Custom boards", "All".

As I have understood, it is not possible to have custom boards while using west workspace.
For example, I have the following import here, my custom boards under vscode workspace will get clumped under "All" boards.

manifest:
remotes:
- name: ncs
url-base: https://github.com/nrfconnect

projects:
- name: sdk-nrf
remote: ncs
path: nrf
revision: v2.4.2
import: true
clone-depth: 1
self:
path: project

If I take out the sdk here, and restart vscode my custom boards will show under "Custom boards".

It would be nice feature to have custom board roots under custom boards regardless of whether west workspace.

Similar discussion (also possible related topics "vscode not recognizing custom boards" in these forums)
devzone.nordicsemi.com/.../nrf-connect-boardroots-does-not-work-custom-board-are-not-picked-up

Thank you.

Parents Reply
  • I've discussed this with the team now.  Any boards that are *not* part of the west workspace are assumed to be "custom." The extension doesn't have a good way to determine whether a board was added to the workspace by the user or if it came from one of the SDK modules. A workaround could be to define a sample.yaml file in your project root to have your board appear in the "compatible" list.

Children
Related