Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adafruit Feather nrF52 build error: adafruit-nrfutil not found on ubuntu 18.04 #47

Closed
neu-rah opened this issue May 22, 2019 · 1 comment

Comments

@neu-rah
Copy link

neu-rah commented May 22, 2019

#26

Have same problem on linux (ubuntu 18.04), on the script it seems that other OS rely on the tool being on path...

from this PR: #27

on ~/.platformio/platforms/nordicnrf52/builder/main.py

nrfutil_path = join(FRAMEWORK_DIR, "tools", "adafruit-nrfutil", os_platform, "adafruit-nrfutil")

would serve both systems "macos" and "linux2"

os_platform="linux2"
created linux2 folder on ~.platformio/packages/framework-arduinoadafruitnrf52/tools/adafruit-nrfutil

linked adafruit-nrfutil to ~/.local/bin/adafruit-nrfutil

ln ~/.local/bin/adafruit-nrfutil

that is the correct path on my system when following install procedures from https://github.com/adafruit/Adafruit_nRF52_nrfutil
pip3 install --user adafruit-nrfutil

I could patch this (not sure if it worth, because it can vary from system to system?), anyway the linux2 folder would be missing along with the link, and i have no idea where in the toolchain install process this can be done... at least the main.py could check file existing before path rely?

@int3ll3ct
Copy link

I think clearer instructions in the Linux section at https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide/arduino-bsp-setup would suffice here, particularly the line about "Add pip3 installation dir to your PATH if it is not added already. Make sure adafruit-nrfutil can be executed in terminal by running..."
For the neophyte, going from "Add pip3 installation dir to your PATH" to the real work required - for example, in Ubuntu 18.04.3 I edited my ~/.profile file and added:

# add pip3 site packages folder to PATH for adafruit-nrfutil PATH="$PATH:$HOME/.local/bin"

Which did the trick. Posting for posterity.

@neu-rah neu-rah closed this as completed Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants