This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Current state of supporting Apple M1

As mentioned here I installed the Intel versions:

But flashing the sample is not possible due to this error:

-- west flash: using runner nrfjprog
-- runners.nrfjprog: mass erase requested
-- runners.nrfjprog: Flashing file: /opt/nordic/ncs/v1.6.1/zephyr/samples/basic/blinky/build/zephyr/zephyr.hex
ERROR: Unable to connect to a debugger.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
FATAL ERROR: command exited with status 33: nrfjprog --program /opt/nordic/ncs/v1.6.1/zephyr/samples/basic/blinky/build/zephyr/zephyr.hex --chiperase -f NRF52 --snr 685260830
The terminal process terminated with exit code: 33.

{
  "platform": {
    "os": "darwin",
    "osVersion": "Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000",
    "osKernel": "21.1.0",
    "vscode": "1.63.0",
    "electron": "13.5.2",
    "node": "v14.16.0"
  },
  "system": {
    "date": "2021-12-14T11:21:43.740Z",
    "vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "00:00:13",
    "osUptime": "458:27:55",
    "cpu": {
      "model": "Apple M1 Pro",
      "speed": "24 MHz",
      "count": 5
    },
    "memory": {
      "total": "32.00 GB",
      "free": "0.03 GB"
    }
  },
  "workspace": {
    "name": "blinky",
    "workspaceFile": null,
    "folders": [
      "/opt/nordic/ncs/v1.6.1/zephyr/samples/basic/blinky"
    ]
  },
  "extensions": {
    "internal": {
      "nordic-semiconductor.nrf-connect": {
        "version": "2021.11.221",
        "path": "/Users/stuermer/.vscode/extensions/nordic-semiconductor.nrf-connect-2021.11.221",
        "isActive": true
      },
      "nordic-semiconductor.nrf-terminal": null,
      "nordic-semiconductor.devicetree": null,
      "nordic-semiconductor.kconfig": null
    },
    "external": {
      "marus25.cortex-debug": null,
      "ms-vscode.cpptools": "1.7.1",
      "ms-vscode.js-debug": "1.62.0",
      "ms-vscode.js-debug-companion": "1.0.15",
      "ms-vscode.references-view": "0.0.81",
      "ms-vscode.vscode-js-profile-table": "0.0.18",
      "hancel.serialport-helper": "0.0.13"
    }
  },
  "tools": {
    "/Applications/SEGGER/JLink/JLinkExe": "7.58e",
    "/usr/local/bin/nrfjprog": "10.15.1",
    "/opt/nordic/ncs/v1.6.1/toolchain/bin/cmake": "3.21.1",
    "/opt/nordic/ncs/v1.6.1/toolchain/bin/west": "0.11.0",
    "/usr/bin/python": "3.9.6",
    "/opt/nordic/ncs/v1.6.1/toolchain/bin/ninja": "1.10.2",
    "/opt/nordic/ncs/v1.6.1/toolchain/bin/gperf": "3.1",
    "/opt/nordic/ncs/v1.6.1/toolchain/bin/dtc": "1.6.1",
    "/opt/nordic/ncs/v1.6.1/toolchain/bin/arm-none-eabi-gcc": "9-2019-q4-major",
    "/opt/nordic/ncs/v1.6.1/toolchain/bin/gn": "1935"
  },
  "connectedDevices": [],
  "config": {
    "nordic-semiconductor.nrf-connect": {
      "topdir": "${nrf-connect.sdk:1.6.1}",
      "toolchain": {
        "path": "${nrf-connect.toolchain:1.6.1}"
      },
      "ozonePath": "",
      "applications": [
        "${workspaceFolder}"
      ],
      "jlink": {
        "rtosPlugin": ""
      },
      "kconfig": {
        "interface": null
      },
      "welcome": {
        "showOnStartup": false
      },
      "west": {
        "env": {
          "$base": "terminal"
        }
      },
      "boardRoots": [],
      "enableTelemetry": true
    }
  },
  "environment": {
    "westExe": "/opt/nordic/ncs/v1.6.1/toolchain/bin/west",
    "westEnv": {
      "ELECTRON_RUN_AS_NODE": "1",
      "GIT_EXEC_PATH": "/opt/nordic/ncs/v1.6.1/toolchain/Cellar/git/2.32.0_1/libexec/git-core",
      "HOME": "/Users/stuermer",
      "PATH": "/opt/nordic/ncs/v1.6.1/toolchain/bin:......[REMOVED FOR PUBLIC]",
      "ZEPHYR_BASE": "/opt/nordic/ncs/v1.6.1/zephyr",
      "GNUARMEMB_TOOLCHAIN_PATH": "/opt/nordic/ncs/v1.6.1/toolchain",
      "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
      "USER": "stuermer"
    },
    "toolchainPath": "/opt/nordic/ncs/v1.6.1/toolchain",
    "toolchainBinPath": "/opt/nordic/ncs/v1.6.1/toolchain/bin",
    "toolchainVersion": "1.6.1"
  },
  "terminal": {
    "shell": null,
    "defaultProfile": null
  }
}

Parents
  • Using the nRF-Command-Line-Tools 10.15.1 with J-Link V7.58b for M1 will result in the following error:

    ERROR: JLinkARM DLL load failed.
    Try again. If it keeps failing, please ERROR: reinstall latest JLinkARM from Segger webpage.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.

    But it enables flashing via an external command line using the nrfjprog command directly.

  • Hi,

    You need to select the intel variant (x86 / x86_64) when installing the J-link drivers for nrfjprog to work when invoked through West. Please try this and let me know if you still get the same error.

    Thanks,

    Vidar

Reply Children
No Data
Related