nRF Connect Installation on macOS (Manual Installation)

I have not been able to create a stable development environment in macOS Monterey using the automatic installation process. 

In order to better understand and document the issues, I am going to do four separate installations for comparison.

MacBook Pro 1:  Manual Installation

MacBook Pro 2:  Automatic installation

https://devzone.nordicsemi.com/f/nordic-q-a/88566/nrf-connect-installation-on-macos-automatic-installation/editpost?ContentTypeId=0

Linux Ubuntu:     Manual Installation

Windows 11:       Automatic installation

This thread will cover the first case, the manual installation on macOS. I will create separate support tickets for the other cases and provide links.

Parents
  • For the macOS manual installation process, 

    Get the nRF Connect SDK code

    It says create a folder called ncs to hold all nRF Connect SDK repositories, but doesn't specify a location to create this folder

    Where should this folder be created please?

  • Hi,

    Using the toolchain manager to install the nRF Connect SDK should work on macOS Monterey, and works well on my computer. Perhaps you can elaborate on what is not working? One important note though, is that for programming to work directly form VS Code you need to install the universal version of J-Link Software and Documentation Pack (with both Intel and ARM support in the same package).

    alwalker said:
    Where should this folder be created please?

    I do not believe there is any restrictions on that, as long as your user is allowed to read and write to/from the location that is being used.

  • Hi Einar,

    I set Bash as the terminal shell for both manual and automatic installations prior to starting them. For the Mac with the automatic installation, I can’t find either .bashrc or .zshrc files. I can’t see these files on the Mac with the manual installation either.

    Kimd regards,

    Al

  • Hi Al,

    Aha. Did you set ZEPHYR_BASE somewhere else, then?

  • Hi Einar,

    Per the automatic installation thread, I can't find either .bashrc or .bashprofile (or the zsh equivalents) in my Home folder, only .bash_history. In that file I find several of these pairs of statements:

    echo ${ZEPHYR_BASE}
    exit

    But no indication of when they were executed.

    I haven't manually set ZEPHYR_BASE anywhere on either installation, If it's been set somewhere then it's been done by the respective installation process.

    Can I take it that the log entry regarding the J-Link version difference is for information only and can be ignored?

    I understand from the automatic installation thread that the reason why the Open SEGGER J-Link button is not shown for the nRF Connect SDK v2.2.0 release is that SEGGER Embedded Studio has been discontinued (v2.0.0 Release Notes).

    Kind regards,

    Al

  • Hi Einar,

    I installed nRF Connect SDK v2.2.0 via Toolchain Manager and from there opened Terminal and navigated to my workspace folder. I then did:

    $mkdir ncs_audio

    $cd ncs_audio

    $mkdir nrf

    $cd nrf

    $west config manifest.group-filter +nrf5340_audio

    $west update

    This is up to the end of Step 3 of your instructions. What I found is that whilst west update appears to execute ok using my GitHub user name and current valid personal access token as the password, the west config manifest.group-filter +nrf5340_audio instruction didn't appear to do anything. After I executed west update I find that the nrf folder is empty:

    Any ideas please?

    (For security, computer name changed to 'COMPUTER' and user name to 'xxxxxxxx')

    I did the Windows 11 installation which appears to have gone ok with no errors generated (I'll raise a separate ticket if I encounter any). I found that whether I used the Windows Command Prompt or Bash (both launched from SDK Connect SDK v2.0.0) and navigate to my workspace folder and execute west config manifest.group-filter +nrf5340_audio I find that a series of instructions are executed, but fails due to CongfigFile.LOCAL not being found and that I need to set WEST_CONFIG_LOCAL.

    How do I do this please?

    Kind regards,

    Al

  • Hi Al,

    alwalker said:
    After I executed west update I find that the nrf folder is empty:

    It looks like you missed a step. "west config manifest.group-filter +nrf5340_audio" is used to add audio suppor to a SDK you have already checked out. But based on what you wrote you made empty folders and never initialized them (note the command "west init -m github.com/.../sdk-nrf --mr v1.9.99-dev1" in my instructions). So what you saw is expected given this missing step.

    However, now that nRF Connect SDK 2.0.0 is out, you can do this completely differently, as there is no need to check out the 1.9.99-dev1 tag. Simply use the toolchain manger to get 2.0.0, open a terminal from the toolchain manager and that will open a terminal at the location where the SDK is installed (so you see folders like zephyr, nrf, etc). There simply type "west config manifest.group-filter +nrf5340_audio" and then "west update", and you will get the audio repositories downloaded. Note that you will be asked for credentials in order to download the LC3 codec. If you do not have access to it, simply enter dummy user name and password. If you cancel (by ctrl-C), you will abort the update and miss some repositories.

Reply
  • Hi Al,

    alwalker said:
    After I executed west update I find that the nrf folder is empty:

    It looks like you missed a step. "west config manifest.group-filter +nrf5340_audio" is used to add audio suppor to a SDK you have already checked out. But based on what you wrote you made empty folders and never initialized them (note the command "west init -m github.com/.../sdk-nrf --mr v1.9.99-dev1" in my instructions). So what you saw is expected given this missing step.

    However, now that nRF Connect SDK 2.0.0 is out, you can do this completely differently, as there is no need to check out the 1.9.99-dev1 tag. Simply use the toolchain manger to get 2.0.0, open a terminal from the toolchain manager and that will open a terminal at the location where the SDK is installed (so you see folders like zephyr, nrf, etc). There simply type "west config manifest.group-filter +nrf5340_audio" and then "west update", and you will get the audio repositories downloaded. Note that you will be asked for credentials in order to download the LC3 codec. If you do not have access to it, simply enter dummy user name and password. If you cancel (by ctrl-C), you will abort the update and miss some repositories.

Children
Related