Site icon ucdev

How to install nRF Utill on Ubuntu

Nrfutil is a command-line utility developed by Nordic Semiconductor that helps users manage and interact with Nordic’s nRF devices, especially during firmware development, flashing, DFU (Device Firmware Update), and key management operations. In order to use Zephyr to develop firmware for an NRF microcontroller unit (MCU), Zephyr must first be installed. As it is a Python-based tool, it is usually installed using Pip.

pip install nrfutil

You could try doing that, but it would probably cause at least two problems. Firstly, it might not be the latest version. Secondly, to use the Zephyr West tool to flash NRF-based devices, you will need to install additional NRF tools using the latest version of nrfutil. If you don’t do that, it is likely that you will encounter errors similar to this one.

Picture 1. Nrfutil error: no –json option

or something like this:

Picture 2. Nrfutil error no „device” command

This article will show you how to install the latest version of Nordi NRFutil. You can download it from the Nordic website.

https://www.nordicsemi.com/Products/Development-tools/nRF-Util

You will also find a full description and installation manual there, but you can also follow this short step by step instruction that I have prepared to speed up the process.

1 . Download the nrfutil file and save it to a directory which has been added to the PATH environment variable. For example, you could save it to:

/usr/local/bin/

2 . Give the file execute permission by typing

sudo chmod +x /usr/local/bin/nrfutil

3 . Check if nrfutil can be executed.

nrfutil --version

4 . Install nrf5sdk tools:

nrfutil install nrf5sdk-tools 

5 . Install nrf util device command (used for various operations on Nordic devices like list, program, recovery or erase. It supports MCUboot and J-Link).

nrfutil install device

Once you have completed all the steps, you should now be able to flash Nordic devices using the West Flash command without any problems.

Exit mobile version