Updating repositories and tools

After you install the nRF Connect SDK, regularly check for updates to repositories and tools. The west tool is updated regularly, like any other required Python dependency package.

You might also want to switch to a newer release or check out the latest state of development. However, if you work with a specific release of the nRF Connect SDK, you do not need to update your repositories, because the release will not change. For an overview of changes in the latest releases, see Release notes.

Using the correct command line environment

Whenever you update repositories and tools, make sure that you use the command line environment that is configured to work with west and the rest of the nRF Connect Toolchain and nRF Connect SDK environment. This is also valid for commands that must be executed in the nRF Connect SDK toolchain environment or when you get the following error:

west is not recognized as an internal or external command

Depending on your preferred development method, you can start the correct CLI toolchain environment the following way:

Start the nRF Connect terminal profile from the Welcome View (Open terminal action) or the Panel View. See How to use nRF Connect terminal profile in the extension documentation for more information.

Note

Repositories and tools can be updated in the nRF Connect for VS Code using GUI. See Updating the repositories below for details.

Updating the repositories

Use the method corresponding to the way you installed the nRF Connect SDK, as described in the following sections.

nRF Connect for VS Code lets you update the associated nRF Connect SDK repositories within the Source Control View. For detailed instructions, see the west module management page in the extension’s documentation.

You can also change the SDK or toolchain in nRF Connect for VS Code to a new one. Complete the steps listed on the How to change SDK and toolchain versions page in the extension’s documentation.

Migrating your project to a new SDK version

After you updated the nRF Connect SDK repositories to the new version and you need to migrate your nRF Connect SDK project to the new version, check the available Migration guides for information about which components received major breaking changes and what you have to do to keep using them.

Note

While we strive to document all breaking changes, the migration guides might not include the detailed migration steps for your use case. If you need assistance, contact Nordic Semiconductor’s technical support on DevZone.

Updating nRF Connect for VS Code

Visual Studio Code checks for extension updates and automatically installs them when they are available. After an extension is updated, Visual Studio Code prompts you to reload the application.

If you disabled automatic updates:

  1. Open the Extensions tab and locate the nRF Connect for VS Code.

  2. The Update button appears when an update is available. Click the button to install the update.

Sometimes the extension can offer pre-release versions. In such cases, you can switch to the pre-release version of the extension to test the new features before they are released.

Updating west from command line

To update west to the latest available version in the PyPi repository, run the following command in the command window:

pip3 install -U west