adafruit-nrfutil not found by Arduino IDE (v 1.8.13)

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
lunch_box
 
Posts: 27
Joined: Thu Aug 08, 2019 4:11 pm

adafruit-nrfutil not found by Arduino IDE (v 1.8.13)

Post by lunch_box »

I'm trying to compile and flash one of the example programs for the ItsyBitsy nRF52840 Express, but I keep getting the following error:

Code: Select all

Arduino: 1.8.13 (Linux), Board: "Adafruit ItsyBitsy nRF52840 Express, 0.2.11 SoftDevice s140 6.1.1, Level 0 (Release)"

Library Adafruit_BANNED has been declared precompiled:
Using precompiled library in /home/lunch_box/snap/arduino/56/.arduino15/packages/adafruit/hardware/nrf52/0.22.1/libraries/Adafruit_BANNED/src/cortex-m4/fpv4-sp-d16-hard
exec: "adafruit-nrfutil": executable file not found in $PATH
Error compiling for board Adafruit ItsyBitsy nRF52840 Express.
I followed the installation instructions here
https://learn.adafruit.com/adafruit-its ... port-setup
and verified that the tool is installed and in the PATH environment variable.

Code: Select all

lunch_box@neptune:~$ adafruit-nrfutil version
adafruit-nrfutil version 0.5.3.post16

lunch_box@neptune:~$ which adafruit-nrfutil 
/home/lunch_box/.local/bin/adafruit-nrfutil
This is pretty frustrating. Any ideas?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: adafruit-nrfutil not found by Arduino IDE (v 1.8.13)

Post by adafruit_support_mike »

That probably means something is messed up in the board support packages.

Try deleting your Arduino15 folder and reinstalling the board support packages from scratch.

User avatar
lunch_box
 
Posts: 27
Joined: Thu Aug 08, 2019 4:11 pm

Re: adafruit-nrfutil not found by Arduino IDE (v 1.8.13)

Post by lunch_box »

adafruit_support_mike wrote:That probably means something is messed up in the board support packages.

Try deleting your Arduino15 folder and reinstalling the board support packages from scratch.
Did that, and tried installing fresh from the github repo. Exact same result, and even duplicated it on a totally different computer. Any suggestions?

User avatar
lunch_box
 
Posts: 27
Joined: Thu Aug 08, 2019 4:11 pm

Re: adafruit-nrfutil not found by Arduino IDE (v 1.8.13)

Post by lunch_box »

No ideas? Can't use this product at all until I get this figured out.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: adafruit-nrfutil not found by Arduino IDE (v 1.8.13)

Post by adafruit_support_mike »

What do you get when you enter:

Code: Select all

echo $PATH

User avatar
lunch_box
 
Posts: 27
Joined: Thu Aug 08, 2019 4:11 pm

Re: adafruit-nrfutil not found by Arduino IDE (v 1.8.13)

Post by lunch_box »

Code: Select all

lunch_box@neptune:~$ which adafruit-nrfutil 
/home/lunch_box/.local/bin/adafruit-nrfutil

lunch_box@neptune:~$ echo $PATH
/home/lunch_box/gems/bin:/home/lunch_box/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: adafruit-nrfutil not found by Arduino IDE (v 1.8.13)

Post by adafruit_support_mike »

Hrm.. it's obviously there from the command line. Assuming you modified $PATH in .profile (or its equivalent), does the line that sets $PATH use the 'export' keyword?

Unfortunately I don't know how to make the Arduino IDE show the $PATH variable it sees. You might want to check with the folks in the Arduino forums about that,

Try dropping a symlink to `adafruit-nrfutil` in one of the directories that's always in $PATH, like /usr/local/bin . See if that has any effect on the IDE's ability to find it.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”