Before building the project using your local system, complete the following steps:
- Prepare your system
- Clone the project and install the dependencies
- Configure the project
Follow the Getting started documentation of the nRF Connect SDK to set up your system for building the project.
Create a folder, for example, ncs
and initialize the project by running the following commands:
cd ./ncs
sudo pip3 install -U --pre west
west init -m https://github.com/NordicSemiconductor/asset-tracker-cloud-firmware-azure \
--mr saga firmware
west update
sudo pip3 install -r zephyr/scripts/requirements.txt
sudo pip3 install pc_ble_driver_py
sudo pip3 install -r nrf/scripts/requirements.txt
sudo pip3 install -r bootloader/mcuboot/scripts/requirements.txt
# this sets $ZEPHYR_TOOLCHAIN_VARIANT and $GNUARMEMB_TOOLCHAIN_PATH
source zephyr/zephyr-env.sh
Follow the configuration instructions for the firmware <azure-firmware-configuration>
and add your settings to the firmware.conf
file.
Navigate to the ./ncs/firmware
directory and build the project for your nRF9160-based device.
west build -p always -b thingy91_nrf9160_ns -- -DOVERLAY_CONFIG="overlay-azure.conf;overlay-debug.conf;asset-tracker-cloud-firmware-azure.conf;firmware.conf"
west build -p always -b nrf9160dk_nrf9160_ns -- -DOVERLAY_CONFIG="overlay-azure.conf;overlay-debug.conf;asset-tracker-cloud-firmware-azure.conf;firmware.conf"
The built HEX file will be located in ./ncs/firmware/build/zephyr/merged.hex
.