Using VS Code and the nRF Connect extension, with a nRF5340 DK, I can build and flash the blinky example. However, if I click on "Debug" in the "Actions" section of the nRF Connect extension, the flash is successful but the debug session never starts, showing the following error.
spawn Unknown system error -86
The blinky build configuration uses the "Optimize for debugging (-Og)" option for the "Optimize level (size, speed, or debugging)" setting. I am on macOS Sequoia 15.1.1.
Any suggestions for troubleshooting this problem?
Below is the output from the "nRF Connect: Generate Support Information" command.
{
"platform": {
"os": "darwin",
"osVersion": "Darwin Kernel Version 24.1.0: Thu Nov 14 18:19:02 PST 2024; root:xnu-11215.41.3~13/RELEASE_ARM64_T8132",
"osKernel": "24.1.0",
"vscode": "1.95.3",
"electron": "32.2.1",
"node": "v20.18.0"
},
"system": {
"date": "2024-12-05T18:52:03.648Z",
"vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
"nrfConnectForDesktopInstalled": false,
"vscodeUptime": "00:04:57",
"osUptime": "49:38:22",
"cpu": "Apple M4"
},
"workspace": {
"name": "blinky",
"workspaceFile": null,
"folders": [
"/Users/se10/blinky"
]
},
"sdks": [
{
"version": "v2.8.0",
"path": "/opt/nordic/ncs/v2.8.0"
}
],
"activeBuild": "/Users/se10/blinky/build",
"apps": [
{
"workspace": "/Users/se10/blinky",
"uri": "/Users/se10/blinky",
"buildConfigurations": [
{
"id": "/Users/se10/blinky/build",
"name": "build",
"boardId": "nrf5340dk/nrf5340/cpuapp",
"type": "Sysbuild",
"isChild": false,
"isStale": false,
"taskBindings": {
"build": [],
"pristineBuild": [],
"flash": [],
"eraseAndFlash": []
}
}
]
}
],
"topdir": "/opt/nordic/ncs/v2.8.0",
"workspaceState": "freestanding-ready",
"toolchains": [
{
"version": "2.8.0",
"path": "/opt/nordic/ncs/toolchains/15b490767d"
}
],
"activeToolchain": {
"type": "installation",
"path": "/opt/nordic/ncs/toolchains/15b490767d",
"version": "2.8.0",
"displayName": "nRF Connect SDK Toolchain v2.8.0"
},
"connectedDevices": [
{
"serialNumber": "001050079497",
"boardVersion": "PCA10095",
"deviceFamily": "NRF53_FAMILY",
"deviceVersion": "NRF5340_xxAA_ENGD",
"jlinkObFirmwareVersion": "J-Link OB-nRF5340-NordicSemi compiled Oct 9 2024 11:01:34",
"protectionStatus": "NRFDL_PROTECTION_STATUS_NONE"
}
],
"tools": {
"/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.16.8 (arm64)",
"/Applications/SEGGER/JLink/JLinkExe": "8.10j (x64,arm64)",
"/usr/local/bin/nrfjprog": "10.24.2 (x64,arm64)",
"/usr/local/bin/nrfutil": "7.12.0 (arm64)",
"/opt/nordic/ncs/toolchains/15b490767d/bin/cmake": "3.21.0 (arm64)",
"/opt/nordic/ncs/toolchains/15b490767d/bin/west": "1.2.0",
"/opt/nordic/ncs/toolchains/15b490767d/bin/python3": "3.12.4 (arm64)",
"/opt/nordic/ncs/toolchains/15b490767d/bin/ninja": "1.10.2 (arm64)",
"/opt/nordic/ncs/toolchains/15b490767d/bin/gperf": "3.1 (arm64)",
"/opt/nordic/ncs/toolchains/15b490767d/bin/dtc": "1.6.1 (arm64)",
"/opt/nordic/ncs/toolchains/15b490767d/bin/gn": "2201 (arm64)",
"/opt/nordic/ncs/toolchains/15b490767d/bin/git": "2.37.3 (arm64)",
"arm-gdbPath": "/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
"riscv-gdbPath": "/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gdb"
},
"nrfutil": {
"nrfutil-device": {
"version": "2.7.2",
"binPath": "/Users/se10/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.11.75-darwin-arm64/platform/nrfutil/bin/nrfutil-device",
"jlinkInfo": {
"description": "This version of SEGGER J-Link is different from the J-Link version that was used to test nrfutil device commands",
"expectedVersion": {
"version": "JLink_V7.94i",
"versionFormat": "string"
},
"name": "JlinkARM",
"version": "JLink_V8.10j",
"versionFormat": "string"
}
},
"nrfutil-toolchain-manager": {
"version": "0.14.4",
"binPath": "/Users/se10/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.11.75-darwin-arm64/platform/nrfutil/bin/nrfutil-toolchain-manager"
}
},
"environment": {
"westEnv": {
"GIT_EXEC_PATH": "/opt/nordic/ncs/toolchains/15b490767d/Cellar/git/2.37.3/libexec/git-core",
"HOME": "/Users/se10",
"PATH": "/opt/nordic/ncs/toolchains/15b490767d/bin:/opt/nordic/ncs/toolchains/15b490767d/usr/bin:/opt/nordic/ncs/toolchains/15b490767d/usr/local/bin:/opt/nordic/ncs/toolchains/15b490767d/opt/bin:/opt/nordic/ncs/toolchains/15b490767d/opt/nanopb/generator-bin:/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/nordic/ncs/toolchains/15b490767d/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:/usr/local/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:/usr/local/bin:/usr/local/bin",
"ZEPHYR_BASE": "/opt/nordic/ncs/v2.8.0/zephyr",
"ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
"ZEPHYR_SDK_INSTALL_DIR": "/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk",
"USER": "se10"
},
"inherited": {
"ELECTRON_RUN_AS_NODE": "1",
"HOME": "/Users/se10",
"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:/usr/local/bin",
"USER": "se10"
}
},
"terminal": {
"defaultProfile": null
},
"config": {
"nordic-semiconductor.nrf-connect": {
"topdir": "${nrf-connect.sdk:2.1.2}",
"toolchain": {
"path": "${nrf-connect.toolchain:2.1.2}"
},
"ozonePath": "",
"applications": [],
"applicationOptions": {},
"kconfig": {
"interface": "kconfig"
},
"west": {
"env": {
"$base": "terminal"
}
},
"boardRoots": [],
"taskBindings": {},
"buildTerminal": {
"condensedProgress": true
},
"debugging": {
"flash": true,
"bindings": {},
"justMyCode": false
},
"activeAppFollowActiveEditor": true,
"flash": {
"softreset": false,
"erase": false,
"recover": false
},
"enableTelemetry": false,
"thirdpartyIntegration": {},
"toolchainManager": {
"indexURL": null,
"installDirectory": null
},
"nrfutil": {
"home": null
},
"defaultOpenAction": "ask",
"terminalProfile": {
"shell": null
},
"welcome": {
"showOnStartup": true
}
},
"nordic-semiconductor.nrf-terminal": {
"terminalMode": "character"
}
},
"extensions": {
"internal": {
"nordic-semiconductor.nrf-connect": {
"version": "2024.11.75",
"path": "/Users/se10/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.11.75-darwin-arm64",
"isActive": true
},
"nordic-semiconductor.nrf-terminal": {
"version": "2024.9.14",
"path": "/Users/se10/.vscode/extensions/nordic-semiconductor.nrf-terminal-2024.9.14",
"isActive": true
},
"nordic-semiconductor.nrf-devicetree": {
"version": "2024.11.36",
"path": "/Users/se10/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2024.11.36",
"isActive": true
},
"nordic-semiconductor.nrf-kconfig": {
"version": "2024.11.16",
"path": "/Users/se10/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2024.11.16",
"isActive": true
}
},
"external": {
"marus25.cortex-debug": null,
"ms-vscode.cpptools": "1.22.11",
"ms-vscode.js-debug": "1.95.3",
"ms-vscode.js-debug-companion": "1.1.3",
"ms-vscode.vscode-js-profile-table": "1.0.10",
"ms-vscode.cpptools-extension-pack": "1.3.0",
"ms-vscode.cpptools-themes": "2.0.0",
"ms-vscode.hexeditor": "1.11.1",
"trond-snekvik.gnu-mapfiles": "1.1.0"
}
}
}