Both freestanding and workspace application types use the nRF Connect SDK Toolchain setting to resolve the toolchain path for building the application.
To change the nRF Connect SDK Toolchain version:
-
Install the desired nRF Connect SDK Toolchain version: Welcome View >
Manage toolchains > Install toolchain.
Tip
If you do not see a specific SDK version for installation, try using the Refresh Toolchains button or disabling the filter for showing only the stable versions. Check also the build configuration settings (see the next steps), because you might have already installed the given version. The installed versions are not listed among versions available for installation.
-
In case of a workspace application, open the VS Code workspace that contains the application.
- Select the build configuration that you want to upgrade to the new SDK version to make it the active build context.
- Open the settings for the build configuration by using the Edit Build Configuration action in the Applications View.
-
Select the toolchain version you want to use from the Toolchain drop-down menu.
If you change the SDK or the toolchain (or both), the extension runs a validation check, which you can also run manually (Manage toolchains > Validate toolchain). This will check for incompatibility issues, which will be listed in a notification.
-
Click the Generate button at the bottom of the Edit Build Configuration page.
The build configuration is rebuilt pristinely with the updated settings. During this process, most of the views are unavailable.