How to change a freestanding application SDK version

nRF Connect for VS Code

tags
nRF Connect for VS Code

To change the nRF Connect SDK version used by a freestanding application:

  1. Install the desired nRF Connect SDK version: Welcome View > Manage SDKs Manage SDKs > Install SDK.

    Tip

    If you do not see a specific SDK version for installation, try using the Refresh SDKs 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.

  2. Select the build configuration that you want to upgrade to the new SDK version to make it the active build context.

  3. Open the settings for the build configuration by using the Edit Build Configuration action in the Applications View.
  4. On the Edit Build Configuration page, select the SDK version you want to use from the SDK drop-down menu.

    SDK and toolchain management menu

    Tip

    The asterisk (*) next to the SDK version number indicates that the selected SDK is a fork of the nRF Connect SDK.

    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.

  5. 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.