Dear ,
I use toolchain Manager to install the whole project.
Would you teach me how to solve this ?
Dear ,
I use toolchain Manager to install the whole project.
Would you teach me how to solve this ?
Dear Øyvind,
of course, I didn't modified.
Attached generate support file for your reference.
[08:56:02] west build --build-dir c:\nRF5340\hello_world\build c:\nRF5340\hello_world
[08:56:04] Failure (code 1).
[08:59:29] west build --build-dir c:\nRF5340\hello_world\build c:\nRF5340\hello_world
[08:59:35] Failure (code 1).
[09:00:35] west build --build-dir c:\nRF5340\hello_world\build c:\nRF5340\hello_world
[09:00:41] Failure (code 1).
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": "win32",
"osVersion": "Windows 10 Home China",
"osKernel": "10.0.19042",
"vscode": "1.65.0",
"electron": "13.5.2",
"node": "v14.16.0"
},
"system": {
"date": "2022-03-08T01:02:55.806Z",
"vscodeRoot": "c:\\Users\\liuji\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
"nrfConnectForDesktopInstalled": true,
"vscodeUptime": "00:07:38",
"osUptime": "00:17:46",
"cpu": {
"model": "Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz",
"speed": "2304 MHz",
"count": 4
},
"memory": {
"total": "31.76 GB",
"free": "26.57 GB"
}
},
"workspace": {
"name": "无标题 (工作区)",
"workspaceFile": "1646697647418",
"folders": [
"c:\\nRF5340\\hello_world"
]
},
"extensions": {
"internal": {
"nordic-semiconductor.nrf-connect": {
"version": "2022.1.192",
"path": "c:\\Users\\liuji\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.1.192",
"isActive": true
},
"nordic-semiconductor.nrf-terminal": {
"version": "2022.1.30",
"path": "c:\\Users\\liuji\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.1.30",
"isActive": true
},
"nordic-semiconductor.devicetree": null,
"nordic-semiconductor.kconfig": null
},
"external": {
"marus25.cortex-debug": "1.2.2",
"ms-vscode.cpptools": "1.8.4",
"ms-vscode-remote.remote-wsl-recommender": "0.0.14",
"ms-vscode.js-debug": "1.65.0",
"ms-vscode.js-debug-companion": "1.0.15",
"ms-vscode.references-view": "0.0.85",
"ms-vscode.vscode-js-profile-table": "0.0.18",
"MS-CEINTL.vscode-language-pack-zh-hans": "1.65.1",
"trond-snekvik.gnu-mapfiles": "1.1.0",
"twxs.cmake": "0.0.17"
}
},
"tools": {
"C:\\Program Files (x86)\\SEGGER\\JLink\\JLink.exe": "7.58b",
"C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.3",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\cmake.exe": "3.17.3",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Scripts\\west.exe": "0.11.0",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\python.exe": "3.8.2",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\ninja.exe": "1.9.0",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\gperf.exe": "3.1",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\dtc.exe": "1.4.7",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\arm-none-eabi-gcc.exe": "9-2019-q4-major",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\gn.exe": "1930",
"c:\\ncs\\v1.6.1\\toolchain\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
},
"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": "kconfig"
},
"welcome": {
"showOnStartup": true
},
"west": {
"env": {
"$base": "terminal"
}
},
"boardRoots": [],
"enableTelemetry": true
},
"nordic-semiconductor.nrf-terminal": {
"terminalMode": "character"
},
"nordic-semiconductor.devicetree": {
"modules": [
"${zephyrBase}",
"${zephyrBase}/../nrf",
"."
],
"zephyr": "",
"ctxFile": "",
"defaultBoard": ""
},
"nordic-semiconductor.kconfig": {
"root": "",
"env": {},
"cfiles": true,
"disable": false,
"zephyr": {
"base": ""
},
"python": "",
"liveValue": true
},
"marus25.cortex-debug": {
"armToolchainPath": null,
"armToolchainPrefix": "arm-none-eabi",
"gdbPath": null,
"objdumpPath": null,
"JLinkGDBServerPath": null,
"openocdPath": null,
"pyocdPath": null,
"PEGDBServerPath": null,
"stutilPath": null,
"stlinkPath": null,
"stm32cubeprogrammer": null,
"enableTelemetry": true,
"flattenAnonymous": false,
"registerUseNaturalFormat": true,
"variableUseNaturalFormat": true,
"dbgServerLogfile": null,
"showDevDebugOutput": "none"
}
},
"environment": {
"westExe": "c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Scripts\\west.exe",
"westEnv": {
"ELECTRON_RUN_AS_NODE": "1",
"HOME": "C:\\Users\\liuji",
"HOMEDRIVE": "C:",
"HOMEPATH": "\\Users\\liuji",
"Path": "c:\\ncs\\v1.6.1\\toolchain\\mingw64\\bin;c:\\ncs\\v1.6.1\\toolchain\\mingw64\\libexec\\git-core;c:\\ncs\\v1.6.1\\toolchain\\opt\\bin;c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Scripts;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\liuji\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\liuji\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
"ZEPHYR_BASE": "c:\\ncs\\v1.6.1\\zephyr",
"GNUARMEMB_TOOLCHAIN_PATH": "c:\\ncs\\v1.6.1\\toolchain\\opt",
"ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
"PYTHONPATH": "c:\\ncs\\v1.6.1\\toolchain\\opt\\bin;c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Lib;c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Lib\\site-packages",
"Python3_ROOT": "c:\\ncs\\v1.6.1\\toolchain\\opt\\bin"
},
"toolchainPath": "c:\\ncs\\v1.6.1\\toolchain",
"toolchainBinPath": "c:\\ncs\\v1.6.1\\toolchain\\opt\\bin",
"toolchainVersion": "1.6.1"
},
"terminal": {
"shell": null,
"defaultProfile": null
}
}
[08:56:02] west build --build-dir c:\nRF5340\hello_world\build c:\nRF5340\hello_world
[08:56:04] Failure (code 1).
[08:59:29] west build --build-dir c:\nRF5340\hello_world\build c:\nRF5340\hello_world
[08:59:35] Failure (code 1).
[09:00:35] west build --build-dir c:\nRF5340\hello_world\build c:\nRF5340\hello_world
[09:00:41] Failure (code 1).
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": "win32",
"osVersion": "Windows 10 Home China",
"osKernel": "10.0.19042",
"vscode": "1.65.0",
"electron": "13.5.2",
"node": "v14.16.0"
},
"system": {
"date": "2022-03-08T01:02:55.806Z",
"vscodeRoot": "c:\\Users\\liuji\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
"nrfConnectForDesktopInstalled": true,
"vscodeUptime": "00:07:38",
"osUptime": "00:17:46",
"cpu": {
"model": "Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz",
"speed": "2304 MHz",
"count": 4
},
"memory": {
"total": "31.76 GB",
"free": "26.57 GB"
}
},
"workspace": {
"name": "无标题 (工作区)",
"workspaceFile": "1646697647418",
"folders": [
"c:\\nRF5340\\hello_world"
]
},
"extensions": {
"internal": {
"nordic-semiconductor.nrf-connect": {
"version": "2022.1.192",
"path": "c:\\Users\\liuji\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.1.192",
"isActive": true
},
"nordic-semiconductor.nrf-terminal": {
"version": "2022.1.30",
"path": "c:\\Users\\liuji\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.1.30",
"isActive": true
},
"nordic-semiconductor.devicetree": null,
"nordic-semiconductor.kconfig": null
},
"external": {
"marus25.cortex-debug": "1.2.2",
"ms-vscode.cpptools": "1.8.4",
"ms-vscode-remote.remote-wsl-recommender": "0.0.14",
"ms-vscode.js-debug": "1.65.0",
"ms-vscode.js-debug-companion": "1.0.15",
"ms-vscode.references-view": "0.0.85",
"ms-vscode.vscode-js-profile-table": "0.0.18",
"MS-CEINTL.vscode-language-pack-zh-hans": "1.65.1",
"trond-snekvik.gnu-mapfiles": "1.1.0",
"twxs.cmake": "0.0.17"
}
},
"tools": {
"C:\\Program Files (x86)\\SEGGER\\JLink\\JLink.exe": "7.58b",
"C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.3",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\cmake.exe": "3.17.3",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Scripts\\west.exe": "0.11.0",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\python.exe": "3.8.2",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\ninja.exe": "1.9.0",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\gperf.exe": "3.1",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\dtc.exe": "1.4.7",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\arm-none-eabi-gcc.exe": "9-2019-q4-major",
"c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\gn.exe": "1930",
"c:\\ncs\\v1.6.1\\toolchain\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
},
"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": "kconfig"
},
"welcome": {
"showOnStartup": true
},
"west": {
"env": {
"$base": "terminal"
}
},
"boardRoots": [],
"enableTelemetry": true
},
"nordic-semiconductor.nrf-terminal": {
"terminalMode": "character"
},
"nordic-semiconductor.devicetree": {
"modules": [
"${zephyrBase}",
"${zephyrBase}/../nrf",
"."
],
"zephyr": "",
"ctxFile": "",
"defaultBoard": ""
},
"nordic-semiconductor.kconfig": {
"root": "",
"env": {},
"cfiles": true,
"disable": false,
"zephyr": {
"base": ""
},
"python": "",
"liveValue": true
},
"marus25.cortex-debug": {
"armToolchainPath": null,
"armToolchainPrefix": "arm-none-eabi",
"gdbPath": null,
"objdumpPath": null,
"JLinkGDBServerPath": null,
"openocdPath": null,
"pyocdPath": null,
"PEGDBServerPath": null,
"stutilPath": null,
"stlinkPath": null,
"stm32cubeprogrammer": null,
"enableTelemetry": true,
"flattenAnonymous": false,
"registerUseNaturalFormat": true,
"variableUseNaturalFormat": true,
"dbgServerLogfile": null,
"showDevDebugOutput": "none"
}
},
"environment": {
"westExe": "c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Scripts\\west.exe",
"westEnv": {
"ELECTRON_RUN_AS_NODE": "1",
"HOME": "C:\\Users\\liuji",
"HOMEDRIVE": "C:",
"HOMEPATH": "\\Users\\liuji",
"Path": "c:\\ncs\\v1.6.1\\toolchain\\mingw64\\bin;c:\\ncs\\v1.6.1\\toolchain\\mingw64\\libexec\\git-core;c:\\ncs\\v1.6.1\\toolchain\\opt\\bin;c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Scripts;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\liuji\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\liuji\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
"ZEPHYR_BASE": "c:\\ncs\\v1.6.1\\zephyr",
"GNUARMEMB_TOOLCHAIN_PATH": "c:\\ncs\\v1.6.1\\toolchain\\opt",
"ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
"PYTHONPATH": "c:\\ncs\\v1.6.1\\toolchain\\opt\\bin;c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Lib;c:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Lib\\site-packages",
"Python3_ROOT": "c:\\ncs\\v1.6.1\\toolchain\\opt\\bin"
},
"toolchainPath": "c:\\ncs\\v1.6.1\\toolchain",
"toolchainBinPath": "c:\\ncs\\v1.6.1\\toolchain\\opt\\bin",
"toolchainVersion": "1.6.1"
},
"terminal": {
"shell": null,
"defaultProfile": null
}
}
[09:06:25] west build --build-dir c:\nRF5340\hello_world1\build c:\nRF5340\hello_world1 --pristine --board nrf52840dk_nrf52840 -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y
[09:06:43] Failure (code 1).
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": "win32",
"osVersion": "Windows 10 Home China",
"osKernel": "10.0.19042",
"vscode": "1.65.0",
"electron": "13.5.2",
"node": "v14.16.0"
},
"system": {
"date": "2022-03-08T01:09:14.660Z",
"vscodeRoot": "c:\\Users\\liuji\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
"nrfConnectForDesktopInstalled": true,
"vscodeUptime": "00:13:57",
"osUptime": "00:24:05",
"cpu": {
"model": "Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz",
"speed": "2304 MHz",
"count": 4
},
"memory": {
"total": "31.76 GB",
"free": "26.61 GB"
}
},
"workspace": {
"name": "无标题 (工作区)",
"workspaceFile": "1646697647418",
"folders": [
"c:\\nRF5340\\hello_world",
"c:\\nRF5340\\hello_world1"
]
},
"extensions": {
"internal": {
"nordic-semiconductor.nrf-connect": {
"version": "2022.1.192",
"path": "c:\\Users\\liuji\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.1.192",
"isActive": true
},
"nordic-semiconductor.nrf-terminal": {
"version": "2022.1.30",
"path": "c:\\Users\\liuji\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.1.30",
"isActive": true
},
"nordic-semiconductor.devicetree": null,
"nordic-semiconductor.kconfig": null
},
"external": {
"marus25.cortex-debug": "1.2.2",
"ms-vscode.cpptools": "1.8.4",
"ms-vscode-remote.remote-wsl-recommender": "0.0.14",
"ms-vscode.js-debug": "1.65.0",
"ms-vscode.js-debug-companion": "1.0.15",
"ms-vscode.references-view": "0.0.85",
"ms-vscode.vscode-js-profile-table": "0.0.18",
"cschlosser.doxdocgen": "1.4.0",
"jeff-hykin.better-cpp-syntax": "1.15.13",
"MS-CEINTL.vscode-language-pack-zh-hans": "1.65.1",
"ms-vscode-remote.remote-containers": "0.224.2",
"ms-vscode-remote.remote-ssh": "0.76.1",
"ms-vscode-remote.remote-ssh-edit": "0.76.1",
"ms-vscode-remote.remote-wsl": "0.64.2",
"ms-vscode.cmake-tools": "1.9.2",
"ms-vscode.cpptools-extension-pack": "1.1.0",
"ms-vscode.cpptools-themes": "1.0.0",
"trond-snekvik.gnu-mapfiles": "1.1.0",
"twxs.cmake": "0.0.17"
}
},
"tools": {
"C:\\Program Files (x86)\\SEGGER\\JLink\\JLink.exe": "7.58b",
"C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.3",
"d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\cmake.exe": "3.17.3",
"d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Scripts\\west.exe": "0.11.0",
"d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\python.exe": "3.8.2",
"d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\ninja.exe": "1.9.0",
"d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\gperf.exe": "3.1",
"d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\dtc.exe": "1.4.7",
"d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\arm-none-eabi-gcc.exe": "9-2019-q4-major",
"d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\gn.exe": "1930",
"d:\\ncs\\v1.6.1\\toolchain\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
},
"connectedDevices": [],
"config": {
"nordic-semiconductor.nrf-connect": {
"topdir": "${nrf-connect.sdk:1.6.1}",
"toolchain": {
"path": "d:\\ncs\\v1.6.1\\toolchain"
},
"ozonePath": "",
"applications": [
"${workspaceFolder}",
"c:\\nRF5340\\hello_world1"
],
"jlink": {
"rtosPlugin": ""
},
"kconfig": {
"interface": "kconfig"
},
"welcome": {
"showOnStartup": true
},
"west": {
"env": {
"$base": "terminal"
}
},
"boardRoots": [],
"enableTelemetry": true
},
"nordic-semiconductor.nrf-terminal": {
"terminalMode": "character"
},
"nordic-semiconductor.devicetree": {
"modules": [
"${zephyrBase}",
"${zephyrBase}/../nrf",
"."
],
"zephyr": "",
"ctxFile": "",
"defaultBoard": ""
},
"nordic-semiconductor.kconfig": {
"root": "",
"env": {},
"cfiles": true,
"disable": false,
"zephyr": {
"base": ""
},
"python": "",
"liveValue": true
},
"marus25.cortex-debug": {
"armToolchainPath": null,
"armToolchainPrefix": "arm-none-eabi",
"gdbPath": null,
"objdumpPath": null,
"JLinkGDBServerPath": null,
"openocdPath": null,
"pyocdPath": null,
"PEGDBServerPath": null,
"stutilPath": null,
"stlinkPath": null,
"stm32cubeprogrammer": null,
"enableTelemetry": true,
"flattenAnonymous": false,
"registerUseNaturalFormat": true,
"variableUseNaturalFormat": true,
"dbgServerLogfile": null,
"showDevDebugOutput": "none"
}
},
"environment": {
"westExe": "d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Scripts\\west.exe",
"westEnv": {
"ELECTRON_RUN_AS_NODE": "1",
"HOME": "C:\\Users\\liuji",
"HOMEDRIVE": "C:",
"HOMEPATH": "\\Users\\liuji",
"Path": "d:\\ncs\\v1.6.1\\toolchain\\mingw64\\bin;d:\\ncs\\v1.6.1\\toolchain\\mingw64\\libexec\\git-core;d:\\ncs\\v1.6.1\\toolchain\\opt\\bin;d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Scripts;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\liuji\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\liuji\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
"ZEPHYR_BASE": "c:\\ncs\\v1.6.1\\zephyr",
"GNUARMEMB_TOOLCHAIN_PATH": "d:\\ncs\\v1.6.1\\toolchain\\opt",
"ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
"PYTHONPATH": "d:\\ncs\\v1.6.1\\toolchain\\opt\\bin;d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Lib;d:\\ncs\\v1.6.1\\toolchain\\opt\\bin\\Lib\\site-packages",
"Python3_ROOT": "d:\\ncs\\v1.6.1\\toolchain\\opt\\bin"
},
"toolchainPath": "d:\\ncs\\v1.6.1\\toolchain",
"toolchainBinPath": "d:\\ncs\\v1.6.1\\toolchain\\opt\\bin",
"toolchainVersion": "1.6.1"
},
"terminal": {
"shell": null,
"defaultProfile": null
}
}
Dear
I re-install the windows10 and tried again using cmd.exe.
it show error below:
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Python310\python.exe' '-BC:\ncs\v1.6.1\zephyr\samples\basic\threads\build' '-SC:\ncs\v1.6.1\zephyr\samples\basic\threads' -GNinja
I also tried to use installing manually,but I found that I can't install GN meta-build system.
Becaues I can't open https://gn.googlesource.com/gn/#getting-a-binary in China.
This maybe the problem.
Hello,
I'm very confused at the moment.
The initial issue is building peripheral_lbs sample for the nRF5340DK. Correct?
In the beginning you were using v1.9.0 of the nRF Connect SDK, but last messages you have reverted to v1.6.1. Please elaborate.
liujirong888 said:I also tried to use installing manually,but I found that I can't install GN meta-build system.
Becaues I can't open https://gn.googlesource.com/gn/#getting-a-binary in China.
This is not needed in the peripheral_lbs sample.
liujirong888 said:FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Python310\python.exe' '-BC:\ncs\v1.6.1\zephyr\samples\basic\threads\build' '-SC:\ncs\v1.6.1\zephyr\samples\basic\threads' -GNinja
What samples did you try to build here? Please provide full build log.
Thanks.
Kind regards,
Øyvind
Dear ,
I found that v1.9.0 and v1.6.0 have same error.
both SDK I need to use.Attached build log for your reference.
C:\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs>west build -b nrf5340dk_nrf5340_cpuapp -- west build: generating a build system Including boilerplate (Zephyr base): C:/ncs/v1.6.1/zephyr/cmake/app/boilerplate.cmake CMake Deprecation Warning at C:/ncs/v1.6.1/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy): The OLD behavior for policy CMP0079 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): C:/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) C:/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) CMakeLists.txt:8 (find_package) -- Application: C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs -- Using NCS Toolchain 1.6.1 for building. (D:/ncs/v1.6.1/toolchain/cmake) -- Zephyr version: 2.6.0-rc1 (C:/ncs/v1.6.1/zephyr), build: v2.6.0-rc1-ncs1 -- Found Python3: D:/ncs/v1.6.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter -- Found west (found suitable version "0.11.0", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpuapp -- Cache files will be written to: C:/ncs/v1.6.1/zephyr/.cache -- Found dtc: D:/ncs/v1.6.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (D:/ncs/v1.6.1/toolchain/opt) -- Found BOARD.dts: C:/ncs/v1.6.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts -- Generated zephyr.dts: C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build/zephyr/include/generated/devicetree_unfixed.h -- Generated device_extern.h: C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build/zephyr/include/generated/device_extern.h warning: the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at C:/ncs/v1.6.1/nrf\lib\nrf_modem_lib/Kconfig:71) has a non-hex default NRF_MODEM_SHMEM_CTRL_SIZE (undefined) warning: MBEDTLS_SHA1_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls.defconfig:9, C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:1) defined without a type warning: MBEDTLS_SHA512_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:4) defined without a type warning: MBEDTLS_TLS_LIBRARY (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:9) defined without a type warning: MBEDTLS_X509_LIBRARY (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:12) defined without a type warning: MBEDTLS_DHM_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:18) defined without a type warning: MBEDTLS_ECP_C (defined at C:Parsing C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/Kconfig Loaded configuration 'C:/ncs/v1.6.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig' Merged configuration 'C:/ncs/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/prj.conf' /ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:21) defined without a type warning: MBEDTLS_HMAC_DRBG_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:24) defined without a type warning: MBEDTLS_CIPHER_MODE_CBC (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:27) defined without a type warning: MBEDTLS_CIPHER_MODE_CTR (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:30) defined without a type warning: MBEDTLS_CMAC_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:33) defined without a type warning: MBEDTLS_CCM_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:36) defined without a type warning: MBEDTLS_GCM_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:39) defined without a type warning: MBEDTLS_CHACHA20_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:42) defined without a type warning: MBEDTLS_POLY1305_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:45) defined without a type warning: MBEDTLS_PSA_CRYPTO_STORAGE_C (defined at C:/ncs/v1.6.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:48) defined without a type warning: <choice CC3XX_LOCK_VARIANT> (defined at C:/ncs/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) defined with type unknown warning: <choice CC3XX_LOCK_VARIANT> (defined at C:/ncs/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) defined without a prompt warning: the default selection CC3XX_ATOMIC_LOCK (undefined) of <choice CC3XX_LOCK_VARIANT> (defined at C:/ncs/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) is not contained in the choice warning: the default selection CC3XX_HW_MUTEX_LOCK (undefined) of <choice CC3XX_LOCK_VARIANT> (defined at C:/ncs/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) is not contained in the choice warning: <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at C:/ncs/v1.6.1/nrf\modules\memfault/Kconfig:160) defined with type unknown warning: <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at C:/ncs/v1.6.1/nrf\modules\memfault/Kconfig:160) defined without a prompt warning: the default selection MEMFAULT_HTTP_PERIODIC_UPLOAD_USE_DEDICATED_WORKQUEUE (undefined) of <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at C:/ncs/v1.6.1/nrf\modules\memfault/Kconfig:160) is not contained in the choice error: Aborting due to Kconfig warnings CMake Error at C:/ncs/v1.6.1/zephyr/cmake/kconfig.cmake:264 (message): command failed with return code: 1 Call Stack (most recent call first): C:/ncs/v1.6.1/zephyr/cmake/app/boilerplate.cmake:555 (include) C:/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) C:/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) CMakeLists.txt:8 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Python310\python.exe' '-BC:\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs\build' '-SC:\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp C:\ncs\v1.6.1\nrf\samples\bluetooth\peripheral_lbs>
Dear Øyvind,
I mean that when I use SES or VS code error will show that create_nordic_project.py failed.
when I change to use cmd.exe to compile,it will show like this below, I use the sample "peripheral_lbs"
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Python310\python.exe' '-BC:\ncs\v1.6.1\zephyr\samples\basic\threads\build' '-SC:\ncs\v1.6.1\zephyr\samples\basic\threads' -GNinja