Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

can't find nrfjprog after install nrfConnect SDK v1.6.1 on MacOS

After installing nrfConnect SDK v1.6.1 on MacOS (Big Sur 11.5.1) using Toolchain Manager, I can't find nrfjprog.

When I try and run nfrjprog in Terminal, I get:
"zsh: command not found: nrfjprog"

Other command line tools, like nfrutil are available & seem to work OK.

The Toolchain Manager install seemed to have completed without any errors into the following folders:
/opt/nordic/ncs/v1.6.1
/Applications/SEGGER Embedded Studio for ARM 5.50d
/Applications/SEGGER/JLink
/Applications/SEGGER/JLink_V752c

In terminal, $PATH now returns:
zsh: no such file or directory: /Library/Frameworks/Python.framework/Versions/3.9/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin

Does nfrjprog need to be installed manually or should it have been installed automatically by a clean install of nrf Connect by the Toolchain Manager?

How do I get nfrjprog? 
I am worried that there is something incomplete with my nrfConnect SDK Install?

Any help would be appreciated.

Thanks!

  • Hey Gerard! 

    You can get nrfjprog by installing the nRF Command Line Tools.

    Best regards,

    Elfving

  • Thanks Elfving

    I download that zip file you pointed too. BUT it is not clear to me how I install those utility on my Mac!?
    There seem to be no instructions on what to do with the contents of that zip file & INSTALL those utilities in the right place (so that they are accessible in Terminal on Mac). So questions is:

    1. Must they be installed in same folder as nrf Connect (in my case that is: /opt/nordic/ncs/v1.6.1/ )?

    2. How does one install from tha downloaded zip file (on MacOS)!?
        It seems they are python utilities & I am not very familiar with python & how to install from this type of file).

    Thanks!

    Gerard

  • Hi Elfving

    Thanks for the link. I had in fact read that & I couldn't figure it out from there! Reasons:

    1. It states: 
    -----
    "When installing on macOS or Linux, the SEGGER software must be installed in its default location, or the shared library must be placed so that dlopen() can find it. The default location is:

    • On macOS: /Applications/SEGGER/JLink"

    -----

    As I installed everything with the v1.6.1 Toolchain Manager, my Segger Studio is NOT installed in that so-called "default location". So I am not sure if I need to install another copy of Segger Studio into that "default location" (I assume NOT!)? The toolchain manager has installed the Segger Studio in this location on my Mac:
    /Users/<myMacUsername>/Nordic/SEGGER

    So those instructions don't seem, correct for ToolChain v1.6.1?

    2. It further states:
    ----

    1. Download the nRF Command Line Tools.
    2. Run the installer for your operating system.

    ----
     
    OK - step 1 is easy! BUT I don't know which "installer" are they talking about? So I need instructions on:
    a) Into which folder should I unzip the downloaded zip file?
    b) Where do I find this "installer" (I don't see it in the zip file but maybe I am not sure what I am looking for!?) and which file(s) in the zip file do I need to use to install the nrf command line utilities? I see there is a .tar file which contains many files - so I am still confused! 
    Before I started with nrf development I thought I was quite computer savvy (have been using Apple's Xcode & Swift developing iOS & Watch apps for a long time and have developed a couple of projects using Bluetooth and Arduino). But the Nordic tools are a lot more "overwhelming:!  So sorry.... (still need your help!)

    Regards

    Gerard

  • Hey again!

    GerardB said:
    my Segger Studio is NOT installed in that so-called "default location". So I am not sure if I need to install another copy of Segger

     Hmm that is surprising. We'll try once without first and see how much of an issue that is. The installation is supposed to be very straight forward.

    GerardB said:
    a) Into which folder should I unzip the downloaded zip file?

      Try whichever. I dont think it matters.

    GerardB said:
    b) Where do I find this "installer"

    Do you see the two pkg files? Try to click on them. You might have to ctrl-click or something similar to open it with admin privileges.

     

    Best regards,

    Elfving

Related