Various tools around the nRF Connect SDK, such as the nRF Connect for VS Code extension, rely on the SDK being registered with CMake in order for it to be discoverable.
If you installed an SDK with nrfutil sdk-manager sdk install or directly via a tarball, it has not been registered with CMake. In order to register the SDK, run the following command:
nrfutil sdk-manager sdk register <SDK_version>
For example, for the nRF Connect SDK v3.2.0:
nrfutil sdk-manager sdk register v3.2.0
This registration command uses the toolchain associated with the stated SDK version to run the west zephyr-export command, which registers the SDK version with CMake. You can influence this process in the following ways:
- You can specify a different toolchain using the
--toolchain-ncs-versionor--toolchain-bundle-idflags. - You can use the
--use-current-environmentto avoid using a toolchain and instead use thewestcommand from your current environment, if available.