nRF Connect Installation on macOS (Automatic 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            

https://devzone.nordicsemi.com/f/nordic-q-a/88500/nrf-connect-installation-on-macos-manual-installation

MacBook Pro 2:  Automatic installation

Linux Ubuntu:     Manual Installation

Windows 11:       Automatic installation

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

Parents
  • I have followed the automatic installation process using the above link, issues encountered:

    On first installation of nRF Connect SDK v2.0.0, the installation hung on updating the memfault repository:

    Log file ('xxxxxxxx' is user name):

    2022-06-02T23:40:51.345Z DEBUG Application data folder: /Users/xxxxxxxx/Library/Application Support/nrfconnect/pc-nrfconnect-toolchain-manager
    2022-06-02T23:40:51.990Z DEBUG App pc-nrfconnect-toolchain-manager v1.0.0 official
    2022-06-02T23:40:51.990Z DEBUG App path: /Users/xxxxxxxx/.nrfconnect-apps/node_modules/pc-nrfconnect-toolchain-manager
    2022-06-02T23:40:51.990Z DEBUG nRFConnect 3.11.1, required by the app is (^3.11.1)
    2022-06-02T23:40:51.990Z DEBUG nRFConnect path: /Applications/nRF Connect for Desktop.app/Contents/Resources/app.asar
    2022-06-02T23:40:51.991Z DEBUG HomeDir: /Users/xxxxxxxx
    2022-06-02T23:40:51.991Z DEBUG TmpDir: /var/folders/ch/lwpq3r3n791c3z4lhflkp0640000gn/T/
    2022-06-02T23:40:51.992Z DEBUG Downloading index json with buffer length: 7347
    2022-06-02T23:40:51.993Z DEBUG Index json has been downloaded with result: [
        {
            "version": "v1.4.99-dev1",xxxxxxxx
            "toolchains": [
                {
                    "version": "20201207",
                    "name": "ncs-toolchain-v1.4.99-dev1-20201207-43d4695.dmg",
                    "sha512": "9eab039a75e8b2003e896b1a5832b642524fd225eb8b4d03fda4593e610785401e7600ac3f63533ea2bfee51bdd52eece0bb52073f79d20978ad3a01e5803d18"
                }
            ]
        },
        {
            "version": "v1.4.1",
            "toolchains": [
                {
                    "version": "20201215",
                    "name": "ncs-toolchain-v1.4.1-20201215-7ecf886.dmg",
                    "sha512": "9f8b07e1074177a3f821dc5b5eeccdf3af6cf7e38531db809ee5e185aeab12e5e7e92bf9ae7096ff2ec5be3d112bfacac90dea17ed02354c416d4404a1981d56"
                }
            ]
        },
        {
            "version": "v1.4.0",
            "toolchains": [
                {
                    "version": "20201030",
                    "name": "ncs-toolchain-v1.4.0-20201030-2750604.dmg",
                    "sha512": "b856df471eb8c05eef6bcadb1df0c8569d68b5da1f2e9f6bd5a7aaf80e35d4d02f615bba7bc10767abb88274d6d65e0e5565ea775831c0228170102d03c943fb"
                }
            ]
        },
        {
            "version": "v1.3.2",
            "toolchains": [
                {
                    "version": "20201012",
                    "name": "ncs-toolchain-v1.3.2-20201012-09b2ade.dmg",
                    "sha512": "2ba77cb1ab4e3f43c44214d653e78efb2b567d95faead5804aebaafeb7bba4691adc432d57f368aad2b8105b489e21cd640a9bd8af98a8697ed53d653f3b9dc1"
                }
            ]
        },
        {
            "version": "v1.3.1",
            "toolchains": [
                {
                    "version": "20200921",
                    "name": "ncs-toolchain-v1.3.1-20200921-509f057.dmg",
                    "sha512": "d02566fcd719b44db2985068e0d190d93876d8d867d53a8e0119de0a6060522a608305f2cf1bc61e3c89c7eb999e4cdfbad5654424e7cda746ff7cbf21438bb6"
                }
            ]
        },
        {
            "version": "v1.3.0",
            "toolchains": [
                {
                    "version": "20200618",
                    "name": "ncs-toolchain-v1.3.0-20200618-509f057.dmg",
                    "sha512": "a17558612678b33afd1b710a96e1ff68c56b7a75e52d63cd48f8781f8b9a8bca700e05e9a855d305d501a080ee930ebbda225df7f1b5575b1a0a8c5bef5f3621"
                }
            ]
        },
        {
            "version": "v1.3.0-rc1",
            "toolchains": [
                {
                    "version": "20200602",
                    "name": "ncs-toolchain-v1.3.0-rc1-20200602-dbcfd6c.dmg",
                    "sha512": "6d43ac2808ba3ba6a17e3f1c31eeb679886aa8a16fca6f3ad4b82077c66c3210e3c46581fc852da5fce07d098f170cc780cc05a41148ddf6a7032a0ff315307d"
                },
                {
                    "version": "20200609",
                    "name": "ncs-toolchain-v1.3.0-rc1-20200609-590da70.dmg",
                    "sha512": "2c58b3b2b4773da95ca95a2cea5e03ed48144b0d2dc0e03e00b06d8f65c56e5091d6b6410d78251ef5aa3bd03c8718cf5a04b5e8c7f3f08eadf1b518129dc708"
                }
            ]
        },
        {
            "version": "v1.4.2",
            "toolchains": [
                {
                    "version": "20210113",
                    "name": "ncs-toolchain-v1.4.2-20210113-7ecf886.dmg",
                    "sha512": "e4b9f8cac9e77305be89e3ea8b90dbcc22415e87379ff34c7c0cb0100c5109498167e22829e8bad5c01a84a84309467f970d7b4b8ecc46bf8b6724ef6f70e8cb"
                }
            ]
        },
        {
            "version": "v1.5.0-rc1",
            "toolchains": [
                {
                    "version": "20210215",
                    "name": "ncs-toolchain-v1.5.0-rc1-20210215-2c30941.dmg",
                    "sha512": "4c8c127c27ca67ac555f6d02c4bee3c50fc53d32fc6989a7158c2c95be87c2fb5b86b0953a8eb99342c6145b3fbfea035cda2e7e13d0b921868c63c7f1f4388f"
                }
            ]
        },
        {
            "version": "v1.5.0",
            "toolchains": [
                {
                    "version": "20210225",
                    "name": "ncs-toolchain-v1.5.0-20210225-607a0e0.dmg",
                    "sha512": "40d395b683c1b7680db30ba167a7d7742d2b756d7f7f8c2b4780091339f8141779b6e2d5f236b6e4ff13eba0ccf67a3240108ec76180950fbe2346a60220d404"
                }
            ]
        },
        {
            "version": "v1.5.1-rc1",
            "toolchains": [
                {
                    "version": "20210409",
                    "name": "ncs-toolchain-v1.5.1-rc1-20210409-96ab6aa.dmg",
                    "sha512": "c4b22656ce6e08b6881cd07fe446e75bb4400582f6dcf9d93e53feb116a1e3819a5d08dc0e87abaaf230054c8a396d5972b3573ad653f9bc5cdf479df336e5bc"
                }
            ]
        },
        {
            "version": "v1.5.1",
            "toolchains": [
                {
                    "version": "20210416",
                    "name": "ncs-toolchain-v1.5.1-20210416-96ab6aa.dmg",
                    "sha512": "b853cb30f76601ea9edefa2faade433280517b2262b1126efacf030c9c5582629b25974dfde4038327a5ffccc5a17a801597aee6e43f43767038abd3b8a89714"
                }
            ]
        },
        {
            "version": "v1.6.0",
            "toolchains": [
                {
                    "version": "20210701",
                    "name": "ncs-toolchain-v1.6.0-20210701-de414c8.dmg",
                    "sha512": "8aab26ffb89ff250882e272b262ddacc38fc1dc4cbec39f4e76468a0bfd899bc571caa1cb60b467e396422765fd207e8b48aaf48b25b0741ea375b39bd52d691"
                }
            ]
        },
        {
            "version": "v1.6.1",
            "toolchains": [
                {
                    "version": "20210907",
                    "name": "ncs-toolchain-v1.6.1-20210907-80db958.dmg",
                    "sha512": "b2e5c2da037e8ce577a799427b4a4bcc4a5d2608126bd152da4c52664e16cd2443528c040426163b7938f65c0c62dc80038ae76d74f72cb7b2e66fe9f254f6db"
                }
            ]
        },
        {
            "version": "v1.7.0",
            "toolchains": [
                {
                    "version": "20210923",
                    "name": "ncs-toolchain-v1.7.0-20210923-4c380d0.dmg",
                    "sha512": "6691fee7190f940e6adfa8fd2881ca14bae2a299671a58e21b8a1727944bf31542f62b97adb8c81c32d1baed03badfb96247de5d71f24052f00fc0f62124d5ec"
                }
            ]
        },
        {
            "version": "v1.7.1",
            "toolchains": [
                {
                    "version": "20211028",
                    "name": "ncs-toolchain-v1.7.1-20211028-4c380d0.dmg",
                    "sha512": "6d567b869613d8722cf542e3d7bea883987958e70dd2e6ba69ac846ad68ff002c676c9b1647bd7dc1197af3ac6c75d56945a8de8f93655dc1656d19391df992a"
                }
            ]
        },
        {
            "version": "v1.8.0",
            "toolchains": [
                {
                    "version": "20220103",
                    "name": "ncs-toolchain-v1.8.0-20220103-7d41729.dmg",
                    "sha512": "fb931ed3773c6745c1eeca4963d30aebe2f1a1b41a4340121fc7999ccb0340a76d671defa50b5bdae1b4317d9e49bd7a08583cc6d210fe30c16b0e0bbcfc736b"
                }
            ]
        },
        {
            "version": "v1.9.0",
            "toolchains": [
                {
                    "version": "20220217",
                    "name": "ncs-toolchain-v1.9.0-20220217-728bbd5.dmg",
                    "sha512": "bcaa5697112032effac35ccfa9a9a111fbf832e85e5f9d3e5b64ca05ddaa0fcfaf02a119f37b36c5bc17e4633642bde3cd55118c61c1a0b6c3106c25b942e144"
                }
            ]
        },
        {
            "version": "v1.9.1",
            "toolchains": [
                {
                    "version": "20220304",
                    "name": "ncs-toolchain-v1.9.1-20220304-728bbd5.dmg",
                    "sha512": "5475252a21ee6c378550bf0824f581e32f03edf4d6b072ce2e54feee062cd6b8a80ed0de332393c667c7be54417fb14a8814b49a6c5382a994867240ab07a69d"
                }
            ]
        }
    ]
    2022-06-02T23:40:52.030Z INFO Toolchain v1.4.99-dev1 has been added to the list
    2022-06-02T23:40:52.039Z INFO Toolchain v1.4.1 has been added to the list
    2022-06-02T23:40:52.067Z INFO Toolchain v1.4.0 has been added to the list
    2022-06-02T23:40:52.072Z INFO Toolchain v1.3.2 has been added to the list
    2022-06-02T23:40:52.089Z INFO Toolchain v1.3.1 has been added to the list
    2022-06-02T23:40:52.103Z INFO Toolchain v1.3.0 has been added to the list
    2022-06-02T23:40:52.195Z INFO Toolchain v1.3.0-rc1 has been added to the list
    2022-06-02T23:40:52.203Z INFO Toolchain v1.4.2 has been added to the list
    2022-06-02T23:40:52.223Z INFO Toolchain v1.5.0-rc1 has been added to the list
    2022-06-02T23:40:52.229Z INFO Toolchain v1.5.0 has been added to the list
    2022-06-02T23:40:52.264Z INFO Toolchain v1.5.1-rc1 has been added to the list
    2022-06-02T23:40:52.269Z INFO Toolchain v1.5.1 has been added to the list
    2022-06-02T23:40:52.300Z INFO Toolchain v1.6.0 has been added to the list
    2022-06-02T23:40:52.305Z INFO Toolchain v1.6.1 has been added to the list
    2022-06-02T23:40:52.338Z INFO Toolchain v1.7.0 has been added to the list
    2022-06-02T23:40:52.408Z INFO Toolchain v1.7.1 has been added to the list
    2022-06-02T23:40:52.484Z INFO Toolchain v1.8.0 has been added to the list
    2022-06-02T23:40:52.488Z INFO Toolchain v1.9.0 has been added to the list
    2022-06-02T23:40:52.538Z INFO Toolchain v1.9.1 has been added to the list
    2022-06-02T23:40:52.552Z INFO Using nrf-device-lib-js version: 0.4.11
    2022-06-02T23:40:52.552Z INFO Using nrf-device-lib version: 0.11.8
    2022-06-02T23:40:52.552Z INFO Using nrfjprog DLL version: 10.15.4
    2022-06-02T23:40:52.553Z INFO Using JLink version: JLink_V7.66b
    2022-06-02T23:40:52.553Z INFO Installed JLink version does not match the provided version (V7.58b)
    2022-06-02T23:41:04.235Z DEBUG iface: en0
    2022-06-02T23:41:04.242Z DEBUG IP4: 192.168.1.77
    2022-06-02T23:41:04.242Z DEBUG IP6: fe80::10b0:98cf:3700:dce7
    2022-06-02T23:41:04.242Z DEBUG MAC: 98:01:a7:8c:9b:05
    2022-06-02T23:41:04.244Z DEBUG Client Id: 38d1daca76b359a16d48e93f0cf2fd1a51960730
    2022-06-02T23:41:06.156Z DEBUG Google Analytics for category pc-nrfconnect-toolchain-manager has initialized
    2022-06-02T23:41:18.759Z INFO Start to install toolchain v2.0.0
    2022-06-02T23:41:18.759Z INFO Installing ncs-toolchain-macos-x86_64-v2.0.0-20220602T093604-9389261.tar.gz at /opt/nordic/ncs/toolchains/v2.0.0
    2022-06-02T23:41:18.759Z DEBUG Install with toolchain version 20220602T093604
    2022-06-02T23:41:18.759Z DEBUG Install with sha512 80a4cdeefef510669409fde93d7978ca138a787df93a071b4f24a3754bfbd38f7039b0e6a09bea0f15aa19f2a09ceba0c3daaee6d16b2710799733897f65e9e7
    2022-06-02T23:41:18.760Z DEBUG Sending usage data {"category":"pc-nrfconnect-toolchain-manager","action":"Status of VS Code installation","label":"VS Code installed"}
    2022-06-02T23:41:18.762Z DEBUG Sending usage data {"category":"pc-nrfconnect-toolchain-manager","action":"Status of nrfjprog installation","label":"Installed"}
    2022-06-02T23:41:18.763Z DEBUG Sending usage data {"category":"pc-nrfconnect-toolchain-manager","action":"architecture","label":"x64"}
    2022-06-02T23:41:18.765Z DEBUG Sending usage data {"category":"pc-nrfconnect-toolchain-manager","action":"Install toolchain from nrfutil","label":"v2.0.0; ncs-toolchain-macos-x86_64-v2.0.0-20220602T093604-9389261.tar.gz"}
    2022-06-02T23:45:14.126Z INFO Cloning nRF Connect SDK v2.0.0
    2022-06-02T23:45:14.126Z DEBUG Sending usage data {"category":"pc-nrfconnect-toolchain-manager","action":"Clone nRF Connect SDK","label":"v2.0.0; darwin; x64"}
    2022-06-02T23:45:14.136Z INFO Initializing environment for v2.0.0
    2022-06-02T23:46:04.855Z INFO Updating zephyr repository for v2.0.0
    2022-06-02T23:58:05.454Z INFO Updating mcuboot repository for v2.0.0
    2022-06-02T23:58:14.570Z INFO Updating mbedtls repository for v2.0.0
    2022-06-02T23:59:25.820Z INFO Updating nrfxlib repository for v2.0.0
    2022-06-03T00:03:39.164Z INFO Updating trusted repository for v2.0.0
    2022-06-03T00:04:32.570Z INFO Updating tfm repository for v2.0.0
    2022-06-03T00:04:39.466Z INFO Updating matter repository for v2.0.0
    2022-06-03T00:07:42.184Z INFO Updating cjson repository for v2.0.0
    2022-06-03T00:07:48.403Z INFO Updating cmock repository for v2.0.0
    2022-06-03T00:07:58.050Z INFO Updating unity repository for v2.0.0
    2022-06-03T00:08:12.585Z INFO Updating zcbor repository for v2.0.0
    2022-06-03T00:08:14.749Z INFO Updating memfault repository for v2.0.0
    

     

    Subsequently updating both the SDK and toolchain seems to fix the issue as the installations complete.

    I have installed the universal version of the J-Link software as advised in the manual installation thread. I note that the v2.0.0 SDK does not have the button for opening the SEGGER J-Link that I've seen for previous SDK versions, is this expected please?

    Launching VS Code and selected V2.0.0 for both nRF Select SDK and nRF Connect Toolchain, I get an error saying Shell initialization conflicts nRF Connect terminal profile with a link to the following information:

    This issue may occur when opening the internal terminal with the nRF Connect profile, which sets the shell environment for the configured SDK and toolchain, but the shell initialization script (e.g. .bashrc) overrides the environment. This can happen if the ZEPHYR_BASE environment variable is set in .bashrc. If there is no need for external terminals to use this variable, we suggest removing this from .bashrc, otherwise it can be moved to .bash_profile or an equivalent script that is only loaded by login shells.

    https://nrfconnect.github.io/vscode-nrf-connect/connect/troubleshooting.html#shell-initialization-conflicts-nrf-connect-terminal-profile

    I can't find files (with hidden files enabled) called either .bashrc or .bashprofile, what should I be looking for please? I have Bash enabled as the shell in macOS Terminal.

    Update: This issue did not occur with the manual installation process.

    Kind regards,

    Al

  • I'm just doing the nRF Connect install for the manual installation process, I also had the same issue with the v2.2.0 install hanging on the memfault registry stage.

    I notice this line in the nRF Connect log file when updating the toolchain after restarting Toolchain Manager:

    2022-06-03T09:55:41.967Z INFO Installed JLink version does not match the provided version (V7.58b)

    As with the automatic installation, I installed universal version of the J-Link software which is v7.66b. Is this the reason why the Open SEGGER J-Link button is not shown for the nRF Connect SDK v2.2.0 release please?

    Kind regards,

    Al

  • Hi Al,

    alwalker said:
    I note that the v2.0.0 SDK does not have the button for opening the SEGGER J-Link that I've seen for previous SDK versions, is this expected please?

    Yes, as of v2.0.0 SEGGER Embedded Studio has been discontinued, v2.0.0 Release Notes.

    alwalker said:
    I can't find files (with hidden files enabled) called either .bashrc or .bashprofile, what should I be looking for please?

    On macOS .bashrc and .bash_profile should be in your home directory, ~/.

    Best regards,

    Marte

  • Hi Marte,

    Thanks very much, the only similarly named file I have in my Home directory is .bash_history

    It includes several of these pairs of statements, but no indication of when they were executed:

    echo ${ZEPHYR_BASE}
    exit

    Any suggestions please?

    Kind regards,

    Al

  • Hi Al,

    Have you set the ZEPHYR_BASE environment variable somewhere yourself?

    Can you generate support information and upload it here? Open command palette in VS Code and write nRF Connect: Generate Support Information. When you select this the information will be generated in the output terminal. Copy that and upload it here using Insert > Code.

    Best regards,

    Marte

Reply Children
No Data
Related