Overview
In this article:
This page covers how to install the minimum tools in order to integrate the HyperPulse library and build the examples. It consists basically of the nRF Util and its sdk-manager plugin, the SDK Toolchain and the SDK Source Code.
nRF Util
This is the Nordic command line tool that manages the installation of the more specific tools, software and libraries needed for the build and programming of the devices.
You can download it from here.
There is no need for installation, but you need to add the tool to the PATH in order to call it from various directories:
For Windows, create a folder for example, in C:\ncs\ and paste the downloaded nrfutil.exe there, this folder is also the default one for the steps below. Also add this folder to the PATH in the Environment Variables:
You can now open a new Command Prompt or PowerShell and test it by running nrfutil.exe --version:
sdk-manager plugin
The plugin can be installed by running nrfutil install sdk-manager:
nRF Connect SDK Toolchain
The version that needs to be installed for HyperPulse library is the 3.0.2, you can install it by running:
nrfutil sdk-manager toolchain install --ncs-version v3.0.2
Inside the NCS directory, a folder toolchains will be created, and inside of it, another one with the hash of the version will be created.
Go to the NCS directory, create a folder env with the command mkdir env and run the command nrfutil sdk-manager toolchain env --ncs-version v3.0.2 --as-script cmd > env/ncs_3.0.2.cmd to create a script that sets the paths of the toolchain:
nRF Connect SDK Source Code
The same version 3.0.2 of the source code needs to be installed. The first thing is to open a terminal with the toolchain version 3.0.2 environment variables set by running:
nrfutil sdk-manager toolchain launch --ncs-version v3.0.2 --terminal
A new terminal will open with the toolchain configured, you can close the other terminal:
To install the code for version 3.0.2, run this command from C:\ncs folder:
west init -m https://github.com/nrfconnect/sdk-nrf --mr v3.0.2 v3.0.2
then, enter the directory of the source code by running cd v3.0.2 then run west update to download all submodules, it will take a while:
Also run west zephyr-export, to ease the creation of Zephyr-based applications:
