0

adafruit-nrfutil not found by Arduino IDE (v 1.8.13)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

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

by lunch_box on Mon May 31, 2021 7:08 pm

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 | TOGGLE FULL SIZE
Arduino: 1.8.13 (Linux), Board: "Adafruit ItsyBitsy nRF52840 Express, 0.2.11 SoftDevice s140 6.1.1, Level 0 (Release)"

Library Adafruit_nRFCrypto has been declared precompiled:
Using precompiled library in /home/lunch_box/snap/arduino/56/.arduino15/packages/adafruit/hardware/nrf52/0.22.1/libraries/Adafruit_nRFCrypto/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 | TOGGLE FULL SIZE
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?

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

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

by adafruit_support_mike on Mon May 31, 2021 11:03 pm

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.

adafruit_support_mike
 
Posts: 63053
Joined: Thu Feb 11, 2010 2:51 pm

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

by lunch_box on Mon Jun 21, 2021 6:06 pm

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?

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

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

by lunch_box on Wed Jun 23, 2021 9:20 pm

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

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

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

by adafruit_support_mike on Sun Jun 27, 2021 12:18 am

What do you get when you enter:

Code: Select all | TOGGLE FULL SIZE
echo $PATH

adafruit_support_mike
 
Posts: 63053
Joined: Thu Feb 11, 2010 2:51 pm

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

by lunch_box on Wed Jun 30, 2021 8:13 pm

Code: Select all | TOGGLE FULL SIZE
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

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

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

by adafruit_support_mike on Thu Jul 01, 2021 3:52 pm

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.

adafruit_support_mike
 
Posts: 63053
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.