Initialize the workspace

Asset Tracker Template

tags
Asset Tracker Template

Before initializing, start the toolchain environment:

nrfutil sdk-manager toolchain launch --ncs-version v3.4.0 --shell

You can also run a single command within a specific nRF Connect SDK toolchain. For example:

nrfutil sdk-manager toolchain launch --ncs-version v3.4.0 -- <your command>

This form is useful for running a single west command with a specific toolchain, for example. You can create an alias or a shell function for this command to avoid typing it in full every time.

This guide uses the nrfutil sdk-manager toolchain launch --shell variant to launch the toolchain environment in the shell.

To initialize the asset-tracker-template workspace folder, which is where west clones the firmware project and all nRF Connect SDK modules, run the following commands:

# Initialize asset-tracker-template workspace
west init -m https://github.com/nrfconnect/Asset-Tracker-Template.git --mr main asset-tracker-template

cd asset-tracker-template

# Update nRF Connect SDK modules. This may take a while.
west update

The template repository is now cloned into the asset-tracker-template folder, the west modules are downloaded, and you are ready to build the project.