SDK v2.5.99-dev1 has many compile errors

Hello,

I am working on a Mac mini, Apple M2 chipset, macOS Sonoma 14.2.1.   I am using Visual Studio Code Version: 1.86.2 (Universal) Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda
Date: 2024-02-13T19:42:13.651Z Electron: 27.2.3 ElectronBuildId: 26908389 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin arm64 23.2.0

I have been developing code on the nRF52840 DK for several months using SDK v2.5.0.   I recently downloaded SDK v2.5.99-dev1

After successfully building with SDK v2.5.0, I remove the build directory, change the active SDK to 2.5.99-dev1, create a new Build configuration (the same way I did for v2.5.0 SDK), and then build.   I get many compile errors like this:

../../../../../../../opt/nordic/ncs/v2.5.99-dev1/modules/lib/matter/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp: In member function 'CHIP_ERROR chip::app::Clusters::UnitTesting::Structs::TestFabricScoped::DecodableType::Decode(chip::TLV::TLVReader&)':
../../../../../../../opt/nordic/ncs/v2.5.99-dev1/modules/lib/matter/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp:20334:37: error: 'class chip::app::Clusters::detail::StructDecodeIterator' has no member named 'Next'
20334 |         auto __element = __iterator.Next();
      |                                     ^~~~
../../../../../../../opt/nordic/ncs/v2.5.99-dev1/modules/lib/matter/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp:20335:18: error: 'holds_alternative' is not a member of 'std'
20335 |         if (std::holds_alternative<CHIP_ERROR>(__element))
      |                  ^~~~~~~~~~~~~~~~~

Parents
  • Hi,

    I will look into this

    However the build error state that the Clusters and structs have changed since you last compiled it. Have you examined the changes from 2.5.99-dev1 and v2.5.0 w.r.t this aspect?

    Is your application custom or is it based on a sample found in the SDK? If so, which sample? Do you see the same thing if you try to take a sample from NCS v2.5.0 and compile it in the 2.5.99-dev tag?

    Kind regards,
    Andreas

  • Andreas,

    Thanks for the reply.  I will look at the release notes for version 2.5.99-dev1 branch and see there are any indications for the issue I am seeing.

    The code that I am building is based on the nrf/samples/matter/template sample code.

    Any other thoughts?

    Best Regards,
    Gene

  • Hi Andreas,

    I am replying to you on behalf of Gene R. as he is away for a few days. I did an experiment with my MacBook (M1) migrated to the Nordic v.2.6.0 toolchain/SDK and I was able to successfully import the Nordic template sample and successfully build it. I wanted to give you that feedback.

    When Gene gets back we'll take a fresh look at his machine setup and then start migrating our PuzL Labs Matter app (similar to the older v2.5.2 template app). We'll glance at the following links along the way:

    Nordic v2.6.0 Release Notes:
     
    Nordic v2.6.0 Migration Quide:
    Thanks much,
    Steve K, PuzL Labs, LLC
  • Hi Steve,

    Thank you for the update and letting me know that you were able to compile the sample in NCS v2.6.0.

    Please let me know if you have any other questions related to this topic when Gene gets back and feel free to open any new cases with questions regarding migration of your firmware from 2.5.2 to 2.6.0. 

    Kind regards,
    Andreas

  • Andreas,

    I went through the Release Notes and the Migration Guide but saw nothing that would explain the Factory Data generation error that I have been seeing.   So, I tried updating a Linux version of the VSCode and nRF Connect system to v2.6.0 and that was able to build the Matter Template sample without any errors.

    I decided to go back to my Mac system and remove the Toolchain and SDK and try to install it again.  Unfortunately, I removed the toolchain directory with a terminal command instead of using the Uninstall or Toolchain Manager Remove function.  I cannot manage to get the v2.6.0 toolchain to install using commands in either the Toolchain Manager or the Visual Studio Code's NRF CONNECT extension.  Is there a way to force the re-installation of the v2.6.0 toolchain tools?

    Thanks,
    Gene

  • Andreas,

    I was looking over my last reply and realized that I neglected to report an important result.  I did try the configuration that you suggested on March 21st before I tried the experiments on my Linux computer and trying to re-install v2.6.0 on my Mac.  The configuration that you suggested did not make any difference in the build.  I still had the Factory Data generation failure that I reported on March 20th.

    Best Regards,
    Gene

  • Greetings all,

    I have a couple of updates.  First of all, I was able to restore my deleted toolchain and SDK file by doing the following (restore the directory from the download file):

    1.  cd /opt/nordic/ncs/toolchains
    2. cp ../downloads/ncs-toolchain-aarch64-macos-580e4ef81c.tar.gz .
    3. gunzip ncs-toolchain-aarch64-macos-580e4ef81c.tar.gz
    4. mkdir 580e4ef81c
    5. cd 580e4ef81c
    6. tar -xvf ../ncs-toolchain-aarch64-macos-580e4ef81c.tar

    I then opened up the "nRF Connect for Desktop v4.4.1" and then opened the Toolchain Manager v1.3.1 and then under the "nRF Connect SDK v2.6.0", I selected the optional action of "Remove".

    After I correctly uninstalled the v2.6.0 toolchain and SDK, I tried to re-install the SDK in Visual Studio Code app using this process:

    a.  click the NRF CONNECT extension tab
    b.  ran WELCOME -> Manage toolchains -> Install Toolchain -> nRF Connect Toolchain v2.6.0
    c.  selected WELCOME -> Manage toolchains -> Set Active Toolchain -> nRF Connect SDF Toolchain v2.6.0
    d.  ran WELCOME -> Manage SDKs -> Install SDK -> v2.6.0
    e.  selected WELCOME ->  Manage SDKs -> Set Active SDK -> nRF Connect SDK v2.6.0

    I also tried the following updates:

    1.  Downloaded and installed nRF Command Line Tools version 10.24.0
    2.  Ran the "West update" link in the build notification box

    However, even with all these steps, building the Matter Template sample still fails at the Factory Data generate operation as before.

    On the other hand, I was able to create a new application -- copying from the OpenThread CLI sample and it builds, flashes, and runs on the DK board as expected.

    Best Regards,
    Gene

Reply
  • Greetings all,

    I have a couple of updates.  First of all, I was able to restore my deleted toolchain and SDK file by doing the following (restore the directory from the download file):

    1.  cd /opt/nordic/ncs/toolchains
    2. cp ../downloads/ncs-toolchain-aarch64-macos-580e4ef81c.tar.gz .
    3. gunzip ncs-toolchain-aarch64-macos-580e4ef81c.tar.gz
    4. mkdir 580e4ef81c
    5. cd 580e4ef81c
    6. tar -xvf ../ncs-toolchain-aarch64-macos-580e4ef81c.tar

    I then opened up the "nRF Connect for Desktop v4.4.1" and then opened the Toolchain Manager v1.3.1 and then under the "nRF Connect SDK v2.6.0", I selected the optional action of "Remove".

    After I correctly uninstalled the v2.6.0 toolchain and SDK, I tried to re-install the SDK in Visual Studio Code app using this process:

    a.  click the NRF CONNECT extension tab
    b.  ran WELCOME -> Manage toolchains -> Install Toolchain -> nRF Connect Toolchain v2.6.0
    c.  selected WELCOME -> Manage toolchains -> Set Active Toolchain -> nRF Connect SDF Toolchain v2.6.0
    d.  ran WELCOME -> Manage SDKs -> Install SDK -> v2.6.0
    e.  selected WELCOME ->  Manage SDKs -> Set Active SDK -> nRF Connect SDK v2.6.0

    I also tried the following updates:

    1.  Downloaded and installed nRF Command Line Tools version 10.24.0
    2.  Ran the "West update" link in the build notification box

    However, even with all these steps, building the Matter Template sample still fails at the Factory Data generate operation as before.

    On the other hand, I was able to create a new application -- copying from the OpenThread CLI sample and it builds, flashes, and runs on the DK board as expected.

    Best Regards,
    Gene

Children
  • Hi Gene

    Apologies for the long response time due to the Easter Holidays period. Thank you for the description. Lets try to close some doors and narrow down what may cause this as it works on my end. What I suspect is that it could be caused by either of these items

    1. Do you have anything in the VS Code workspace? Sometimes the Toolchain and SDK version that is actually used are inherited from projects in the workspace rather than the applications you've loaded into the extension as seen in the image below (which I've forced to showcase this) 



    2. When you perform the new build, do you remove the previous build folder?
    3. Could you open the command palette in VS Code and generate support information for the build that faults and upload it here?


    4. Is the template sample something that you copied from elsewhere or is it the pristine sample (unmodified sample) from the unmodified SDK v2.6.0?

    I find it hard to narrow it down anything further than this when its not reproducable from my end unfortunately, but hopefully this might allow us to see something! 

    Kind regards,
    Andreas

  • Andreas,

    Thanks for getting back to me.  I have been deleting the build directory regularly in my experiments.  However, whatever I seem to try is still failing.  I have had an issue with setting the active SDK to be v2.6.0, then for some reason, find that it had changed to v2.5.2 when I build.  So, I tried this experiment.

    1.  I completely deleted the Matter Template directory that I added as a Copy of Sample code (in case the SDK was set to v2.5.2 when I copied it).

    2.  I made sure that the toolchain and the SDK was set to v2.6.0 when I added the Matter Template application as a Copy from Sample code.

    3.  I made sure that the toolchain and the SDK was still at v2.6.0 after the copy completed.

    4.  I added the build configuration using the defaults for my nRF52840 DK board.

    5.  I built this configuration, but it resulted in the same Factory Data generate failure.

    I generated the support information and uploaded the text file with this information.

    Thanks for your help,

    Gene

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.
    
    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "darwin",
        "osVersion": "Darwin Kernel Version 23.4.0: Fri Mar 15 00:19:22 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8112",
        "osKernel": "23.4.0",
        "vscode": "1.88.0",
        "electron": "28.2.8",
        "node": "v18.18.2"
      },
      "system": {
        "date": "2024-04-05T14:10:12.032Z",
        "vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:04:24",
        "osUptime": "00:33:24",
        "cpu": "Apple M2"
      },
      "workspace": {
        "name": "template",
        "workspaceFile": null,
        "folders": [
          "/Users/puzl/nrf/template"
        ]
      },
      "sdks": [
        {
          "version": "v2.6.0",
          "path": "/opt/nordic/ncs/v2.6.0"
        },
        {
          "version": "v2.5.99-dev1",
          "path": "/opt/nordic/ncs/v2.5.99-dev1"
        },
        {
          "version": "v2.5.2",
          "path": "/opt/nordic/ncs/v2.5.2"
        },
        {
          "version": "v2.5.0",
          "path": "/opt/nordic/ncs/v2.5.0"
        }
      ],
      "activeBuild": "/Users/puzl/nrf/template/build",
      "apps": [
        {
          "workspace": "/Users/puzl/nrf/template",
          "uri": "/Users/puzl/nrf/template",
          "buildConfigurations": [
            {
              "id": "/Users/puzl/nrf/template/build",
              "name": "build",
              "boardId": "nrf52840dk_nrf52840",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        }
      ],
      "topdir": "/opt/nordic/ncs/v2.6.0",
      "workspaceState": "freestanding-ready",
      "toolchains": [
        {
          "version": "2.6.0",
          "path": "/opt/nordic/ncs/toolchains/580e4ef81c"
        },
        {
          "version": "2.5.2",
          "path": "/opt/nordic/ncs/toolchains/20d68df7e5"
        },
        {
          "version": "2.5.0",
          "path": "/opt/nordic/ncs/toolchains/20d68df7e5"
        }
      ],
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "tools": {
        "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.16.5",
        "/Applications/SEGGER/JLink/JLinkExe": "7.94e",
        "/usr/local/bin/nrfjprog": "10.24.1",
        "/Users/puzl/Library/Python/3.9/bin/nrfutil": null,
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/cmake": "3.21.0",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/west": "1.2.0",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/python3": "3.9.6",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/ninja": "1.10.2",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/gperf": "3.1",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/dtc": "1.6.1",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/gn": "2154",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/git": "2.37.3",
        "gdbPath": "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.0.0",
          "binPath": "/Users/puzl/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-darwin-arm64/platform/nrfutil/bin/nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.1",
          "binPath": "/Users/puzl/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-darwin-arm64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "GIT_EXEC_PATH": "/opt/nordic/ncs/toolchains/580e4ef81c/Cellar/git/2.37.3/libexec/git-core",
          "HOME": "/Users/puzl",
          "PATH": "/opt/nordic/ncs/toolchains/580e4ef81c/bin:/opt/nordic/ncs/toolchains/580e4ef81c/usr/bin:/opt/nordic/ncs/toolchains/580e4ef81c/usr/local/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/nanopb/generator-bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/aarch64-zephyr-elf/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/x86_64-zephyr-elf/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/opt/nordic/ncs/toolchains/580e4ef81c/bin:/Users/puzl/Library/Python/3.9/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/opt/nordic/ncs/toolchains/580e4ef81c/bin:/Users/puzl/Library/Python/3.9/bin",
          "ZEPHYR_BASE": "/opt/nordic/ncs/v2.6.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk",
          "USER": "puzl"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/Users/puzl",
          "PATH": "/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/opt/nordic/ncs/toolchains/580e4ef81c/bin:/Users/puzl/Library/Python/3.9/bin",
          "USER": "puzl"
        },
        "toolchainPath": "/opt/nordic/ncs/toolchains/580e4ef81c",
        "toolchainBinPath": "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin",
        "toolchainVersion": "2.6.0"
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.6.0}",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask"
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.3.25",
            "path": "/Users/puzl/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-darwin-arm64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.3.15",
            "path": "/Users/puzl/.vscode/extensions/nordic-semiconductor.nrf-terminal-2024.3.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.3.78",
            "path": "/Users/puzl/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2024.3.78",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.3.21",
            "path": "/Users/puzl/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2024.3.21",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.19.9",
          "ms-vscode.js-debug": "1.88.0",
          "ms-vscode.js-debug-companion": "1.1.2",
          "ms-vscode.vscode-js-profile-table": "1.0.8",
          "eamodio.gitlens": "14.9.0",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      }
    }
    
    
    

  • Hi Andreas,

    If it helps I'd like to offer my support_information.txt for comparison with Gene's. Note: With v2.6.0 SDK/ToolChain I can import the Nordic template sample and successfully build/flash, and run, on the nRF52840DK. Support Info below for my MacBookPro (M1) development machine.

    Note: With v2.6.0 SDK/ToolChain I can import the Nordic template sample and successfully build/flash and run on the nRF52840DK. Support info below for my MacBookPro (M1) development machine.
    
    {
      "platform": {
        "os": "darwin",
        "osVersion": "Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000",
        "osKernel": "23.4.0",
        "vscode": "1.81.0",
        "electron": "22.3.18",
        "node": "v16.17.1"
      },
      "system": {
        "date": "2024-04-05T16:26:20.024Z",
        "vscodeRoot": "/private/var/folders/_j/1y61dvds1pbf1k2q2p1rz8g40000gn/T/AppTranslocation/65839C9E-5691-47C6-8000-A4BDDAAA1B23/d/Visual Studio Code.app/Contents/Resources/app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "38:24:50",
        "osUptime": "72:33:02",
        "cpu": "Apple M1 Pro"
      },
      "workspace": {
        "name": "GitLab (Workspace)",
        "workspaceFile": "/Users/Kranz/puzl/nrf/GitLab.code-workspace",
        "folders": [
          "/Users/Kranz/puzl/nrf/GitLab",
          "/Users/Kranz/puzl/nrf/template2.5.2",
          "/Users/Kranz/puzl/nrf/template",
          "/Users/Kranz/puzl/nrf/blinky2.6.0"
        ]
      },
      "sdks": [
        {
          "version": "v2.6.0",
          "path": "/opt/nordic/ncs/v2.6.0"
        },
        {
          "version": "v2.5.2",
          "path": "/opt/nordic/ncs/v2.5.2"
        },
        {
          "version": "v2.5.0",
          "path": "/opt/nordic/ncs/v2.5.0"
        }
      ],
      "activeBuild": "/Users/Kranz/puzl/nrf/template/build",
      "apps": [
        {
          "workspace": "/Users/Kranz/puzl/nrf/GitLab",
          "uri": "/Users/Kranz/puzl/nrf/GitLab",
          "buildConfigurations": [
            {
              "id": "/Users/Kranz/puzl/nrf/GitLab/build",
              "name": "build",
              "boardId": "nrf52840dk_nrf52840",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        },
        {
          "workspace": "/Users/Kranz/puzl/nrf/template2.5.2",
          "uri": "/Users/Kranz/puzl/nrf/template2.5.2",
          "buildConfigurations": []
        },
        {
          "workspace": "/Users/Kranz/puzl/nrf/template",
          "uri": "/Users/Kranz/puzl/nrf/template",
          "buildConfigurations": [
            {
              "id": "/Users/Kranz/puzl/nrf/template/build",
              "name": "build",
              "boardId": "nrf52840dk_nrf52840",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        },
        {
          "workspace": "/Users/Kranz/puzl/nrf/blinky2.6.0",
          "uri": "/Users/Kranz/puzl/nrf/blinky2.6.0",
          "buildConfigurations": [
            {
              "id": "/Users/Kranz/puzl/nrf/blinky2.6.0/build",
              "name": "build",
              "boardId": "nrf52840dk_nrf52840",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        }
      ],
      "topdir": "/opt/nordic/ncs/v2.6.0",
      "workspaceState": "freestanding-ready",
      "toolchains": [
        {
          "version": "2.6.0",
          "path": "/opt/nordic/ncs/toolchains/580e4ef81c"
        },
        {
          "version": "2.5.2",
          "path": "/opt/nordic/ncs/toolchains/20d68df7e5"
        },
        {
          "version": "2.5.0",
          "path": "/opt/nordic/ncs/toolchains/20d68df7e5"
        },
        {
          "version": "2.4.1",
          "path": "/opt/nordic/ncs/toolchains/4ef6631da0"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "001050258135",
          "boardVersion": "PCA10056",
          "deviceFamily": "NRF52_FAMILY",
          "deviceVersion": "NRF52840_xxAA_REV3",
          "jlinkObFirmwareVersion": "J-Link OB-nRF5340-NordicSemi compiled Oct 30 2023 12:13:06"
        }
      ],
      "deviceProvider": "nrfutil",
      "tools": {
        "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.16.5",
        "/Applications/SEGGER/JLink/JLinkExe": "7.94c",
        "/usr/local/bin/nrfjprog": "10.23.0",
        "nrfutil": "Not found",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/cmake": "3.21.0",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/west": "1.2.0",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/python3": "3.9.6",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/ninja": "1.10.2",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/gperf": "3.1",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/dtc": "1.6.1",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/gn": "2154",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/git": "2.37.3",
        "gdbPath": "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.0.0",
          "binPath": "/Users/Kranz/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-darwin-arm64/platform/nrfutil/bin/nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.1",
          "binPath": "/Users/Kranz/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-darwin-arm64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "GIT_EXEC_PATH": "/opt/nordic/ncs/toolchains/580e4ef81c/Cellar/git/2.37.3/libexec/git-core",
          "HOME": "/Users/Kranz",
          "PATH": "/opt/nordic/ncs/toolchains/580e4ef81c/bin:/opt/nordic/ncs/toolchains/580e4ef81c/usr/bin:/opt/nordic/ncs/toolchains/580e4ef81c/usr/local/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/nanopb/generator-bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/aarch64-zephyr-elf/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/x86_64-zephyr-elf/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Users/Kranz:/Users/Kranz/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/opt/nordic/ncs/toolchains/20d68df7e5/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Users/Kranz:/Users/Kranz/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/opt/nordic/ncs/toolchains/20d68df7e5/bin",
          "ZEPHYR_BASE": "/opt/nordic/ncs/v2.6.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk",
          "USER": "Kranz"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/Users/Kranz",
          "PATH": "/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Users/Kranz:/Users/Kranz/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/opt/nordic/ncs/toolchains/20d68df7e5/bin",
          "USER": "Kranz"
        },
        "toolchainPath": "/opt/nordic/ncs/toolchains/580e4ef81c",
        "toolchainBinPath": "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin",
        "toolchainVersion": "2.6.0"
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.6.0}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.6.0}"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {
              "${workspaceFolder}/build": "Launch GitLab/build"
            },
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "welcome": {
            "showOnStartup": true
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.3.25",
            "path": "/Users/Kranz/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-darwin-arm64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.3.15",
            "path": "/Users/Kranz/.vscode/extensions/nordic-semiconductor.nrf-terminal-2024.3.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.3.78",
            "path": "/Users/Kranz/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2024.3.78",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.3.21",
            "path": "/Users/Kranz/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2024.3.21",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.19.9",
          "ms-vscode.js-debug": "1.81.0",
          "ms-vscode.js-debug-companion": "1.1.2",
          "ms-vscode.vscode-js-profile-table": "1.0.3",
          "eamodio.gitlens": "14.5.2",
          "shd101wyy.markdown-preview-enhanced": "0.8.13",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      }
    }

    Thanks, Steve K. PuzL Labs, LLC

  • Hi,

    Thank you for the comparison Steve

    A couple of thoughts:

    1. Steve's using J Link 7.94c, while Gene uses 7.94e. Could you downgrade and check if this resolves the build error? 
      1. Edit: I see I'm using 7.94e as well, so I don't think thats the issue after all.
    2. I see that Steves path is set while Gene's path is not set under config for toolchain. Could indicate that there's an issue the installation procedure for M2 rather than specifically Genes computer. I assume that both of you have followed the same installation procedure?
    Gene Roylance said:
    v2.6.0, then for some reason, find that it had changed to v2.5.2 when I build. 

    This could happen due to the path not beeing set by the installer or if you've opened something in the workspace thats from 2.5.2. It's annoying, but I find it a good practice to always open a clean workspace when changing toolchains/SDKs to avoid this. 

    In addition, you may find it useful to reload the window when changing to ensure that the toolchains has been set

    Nonetheless, based on your latest replies I think it's either of the two alternatives above. If you could check item 1 (and item 2 if you have additional M2 Macs available) and I'll see if I can reproduce it from my end when I get a hold of someone with a Mac 2. None of my colleagues with M1 has been able to reproduce the faulty build

    Kind regards,
    Andreas

Related