This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF Connect VS Code extension no connected devices

Hello,

I recently installed the nRF Connect extension for VS Code on my Mac M1. I am unable to see my connected board as part of the nRF Connect extension.

Setup

  • nrfjprog version: 10.14.0 external
  • JLinkARM.dll version: 7.54c
  • M1 Macbook

Something odd I noticed is when I ran the nrfjprog command in the terminal I get:

nrfjprog --version --log
ERROR: [SeggerBackend] - The J-Link library does not support execution inside rosetta 2. Try executing with arch -arch arm64 nrfjprog...
ERROR: An internal error has occurred, please try again.

If I run with the suggested option then it completes successfully:

arch -arch arm64 nrfjprog -v
nrfjprog version: 10.14.0 external
JLinkARM.dll version: 7.54c

I am then also able to see the serial number of the debugger connected:

arch -arch arm64 nrfjprog --ids
683511319

Am I missing something in my VS Code setup? Is there a known issue with the VS Code extension on M1 mac?

Parents
  • I am having the same issue!

    "tools": {
    "jlink": null,
    "nrfjprog": null,
    "cmake": null,
    "west": null,
    "python": "3.8.9",
    "ninja": null,
    "gperf": "3.0.3",
    "dtc": null,
    "gnuarmemb": null,
    "gn": null
    },
    "environment": {
    "westExe": "/opt/nordic/ncs/v1.7.0/toolchain/bin/west",
    "westEnv": {
    "ELECTRON_RUN_AS_NODE": "1",
    "GIT_EXEC_PATH": "/opt/nordic/ncs/v1.7.0/toolchain/Cellar/git/2.32.0_1/libexec/git-core",
    "HOME": "/Users/ndelafuente",
    "PATH": "/opt/nordic/ncs/v1.7.0/toolchain/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
    "ZEPHYR_BASE": "/opt/nordic/ncs/v1.7.0/zephyr",
    "GNUARMEMB_TOOLCHAIN_PATH": "/opt/nordic/ncs/v1.7.0/toolchain",
    "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
    "USER": "ndelafuente"
    },
    "toolchainPath": "/opt/nordic/ncs/v1.7.0/toolchain",
    "toolchainBinPath": "/opt/nordic/ncs/v1.7.0/toolchain/bin",
    "toolchainVersion": "1.7.0"
    },
Reply
  • I am having the same issue!

    "tools": {
    "jlink": null,
    "nrfjprog": null,
    "cmake": null,
    "west": null,
    "python": "3.8.9",
    "ninja": null,
    "gperf": "3.0.3",
    "dtc": null,
    "gnuarmemb": null,
    "gn": null
    },
    "environment": {
    "westExe": "/opt/nordic/ncs/v1.7.0/toolchain/bin/west",
    "westEnv": {
    "ELECTRON_RUN_AS_NODE": "1",
    "GIT_EXEC_PATH": "/opt/nordic/ncs/v1.7.0/toolchain/Cellar/git/2.32.0_1/libexec/git-core",
    "HOME": "/Users/ndelafuente",
    "PATH": "/opt/nordic/ncs/v1.7.0/toolchain/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
    "ZEPHYR_BASE": "/opt/nordic/ncs/v1.7.0/zephyr",
    "GNUARMEMB_TOOLCHAIN_PATH": "/opt/nordic/ncs/v1.7.0/toolchain",
    "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
    "USER": "ndelafuente"
    },
    "toolchainPath": "/opt/nordic/ncs/v1.7.0/toolchain",
    "toolchainBinPath": "/opt/nordic/ncs/v1.7.0/toolchain/bin",
    "toolchainVersion": "1.7.0"
    },
Children
No Data
Related