Missing adafruit-nrfutil whil compiling for NINA B306 board

after installing libraries listed in the NINA 306 hookup guide

I got the following error messages while compiling:

Multiple libraries were found for “Adafruit_TinyUSB.h”

Used: /home/dave/Arduino/libraries/Adafruit_TinyUSB_Library
Not used: /home/dave/.arduino15/packages/SparkFun/hardware/nrf52/1.0.0/libraries/Adafruit_TinyUSB_Arduino
exec: “adafruit-nrfutil”: executable file not found in $PATH

Compilation error: exec: “adafruit-nrfutil”: executable file not found in $PATH

searching for adafruit-nrfutil

find ./ -iname “adafruit-nrfutil*”
./.arduino15/packages/SparkFun/hardware/nrf52/1.0.0/tools/adafruit-nrfutil
./.arduino15/packages/SparkFun/hardware/nrf52/1.0.0/tools/adafruit-nrfutil/macos/adafruit-nrfutil
./.arduino15/packages/SparkFun/hardware/nrf52/1.0.0/tools/adafruit-nrfutil/win32/adafruit-nrfutil.exe

It appears there is a macos and win32 rfutil, but no linux one, and the ide is trying to use libraries from a different directory tree.

I tried removing and reinstalling the adafruit tinyUSB library, with no improvement.

my application only needs the ARM CPU, battery charger, USB serial, pressure and acceleration sensors, not the radios.

The code I’m compiling at this point uses the Serial (USB) and digital I/O pins.

I’m running arduino on Slackware linux with the 2.3.7 arduino ide from the AppImage. The libraries and boards are up to date in the ide.

Any ideas?

Dave B

Yea, our version only covers Mac and Win…you can workaround a few ways

1. Install adafruit-nrfutil manually via pip (Recommended)

# Install using pip (Python 3)
pip3 install --user adafruit-nrfutil

# Verify it's in your PATH
which adafruit-nrfutil

# If not in PATH, add ~/.local/bin to your PATH in ~/.bashrc or ~/.bash_profile
export PATH=$PATH:~/.local/bin

After installation, restart the Arduino IDE and try compiling again.

2. Switch to Adafruit’s nRF52 Board Package

The Adafruit nRF52 board package may have better Linux support:

  1. In Arduino IDE, go to File → Preferences
  2. Add this URL to “Additional Board Manager URLs”:
   https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
  1. Go to Tools → Board → Boards Manager
  2. Search for “Adafruit nRF52” and install
  3. Select your board under Tools → Board → Adafruit nRF52 Boards

Let me know if you need more!

I installed adafruit-nrfutil using pip3

per your instructions.

then ran arduino using:

env PATH $PATH:/home//.local/bin arduino

and my sketch compiled just fine.

I may end up adding something like:

~/.local/bin

to my PATH

Thanks for the help.

1 Like