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

Unable to use nrfconnect SDK with VSCode on Linux

Build fails with the following error when trying to create a new project in VS Code.

[variant] Loaded new set of variants
[kit] Successfully loaded 9 kits from /home/user/.local/share/CMakeTools/cmake-tools-kits.json
[main] Configuring folder: test 
[proc] Executing command: /usr/local/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -H/home/user/src/test -B/home/user/src/test/build -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] Including boilerplate (Freestanding): /home/user/src/ncs/zephyr/cmake/app/boilerplate.cmake
[cmake] -- Application: /home/user/src/test
[cmake] -- Zephyr version: 2.6.99 (/home/user/src/ncs/zephyr), build: v2.6.99-ncs1
[cmake] -- Found Python3: /usr/bin/python3.6 (found suitable exact version "3.6.9") found components: Interpreter 
[cmake] -- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
[cmake] CMake Error at /home/user/src/ncs/zephyr/cmake/extensions.cmake:2164 (message):
[cmake]   BOARD is not being defined on the CMake command-line in the environment or
[cmake]   by the app.
[cmake] Call Stack (most recent call first):
[cmake]   /home/user/src/ncs/zephyr/cmake/app/boilerplate.cmake:217 (zephyr_check_cache)
[cmake]   /home/user/src/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
[cmake]   /home/user/src/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:102 (include_boilerplate)
[cmake]   CMakeLists.txt:5 (find_package)
[cmake] 
[cmake] 
[cmake] -- Configuring incomplete, errors occurred!

I can build projects from the terminal, but not from vscode.

Related