Current Setup:
nRF Connect for Desktop v4.1.2
Toolchain Manager v1.2.4
nRF Connect for VS Code v2023.2.56
After numerous reinstalling nrfConnect for vscode, nrfConnectDesktop, Toolchain & CMake I can compile and run (with no red warning "#include" squiggles): blinky, helloworld, ICM42605. I'm confident others would work too.
Except Central_UART won't compile...Below is my output. I can see that there are problems, but I am unsure why there are problems and/or how to fix them... I assume it's something specifically related to BLE that I is misconfigured/missing?
UPDATE: I created a new Central_UART as a Workspace Application Type, instead of Freestanding, and it compiled correctly. I attached images below of the Workspace version in case it helps to indicate why the Freestanding version isn't working.
Is there a problem using Workspace instead of Freestanding? Eventually I would like to combine SPI (IMU42605) and BLE (Central_UART) into one application.
---
* Executing task: nRF Connect: Generate config nrf52840dk_nrf52840 for c:\nordic\myApps\central_uart
Building central_uart
west build --build-dir c:\nordic\myApps\central_uart\build c:\nordic\myApps\central_uart --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE"
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/nordic/myApps/central_uart
-- CMake version: 3.20.5
-- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
-- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/ncs/v2.4.1/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Generated zephyr.dts: C:/nordic/myApps/central_uart/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/nordic/myApps/central_uart/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/nordic/myApps/central_uart/build/zephyr/dts.cmake
C:/nordic/myApps/central_uart/prj.conf:21: warning: attempt to assign the value 'y' to the undefined symbol BT_NUS_CLIENT
C:/nordic/myApps/central_uart/prj.conf:22: warning: attempt to assign the value 'y' to the undefined symbol BT_SCAN
C:/nordic/myApps/central_uart/prj.conf:23: warning: attempt to assign the value 'y' to the undefined symbol BT_SCAN_FILTER_ENABLE
C:/nordic/myApps/central_uart/prj.conf:24: warning: attempt to assign the value '1' to the undefined symbol BT_SCAN_UUID_CNT
C:/nordic/myApps/central_uart/prj.conf:25: warning: attempt to assign the value 'y' to the undefined symbol BT_GATT_DM
error: Aborting due to Kconfig warnings
Parsing C:/ncs/v2.4.1/zephyr/Kconfig
Loaded configuration 'C:/ncs/v2.4.1/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
Merged configuration 'C:/nordic/myApps/central_uart/prj.conf'
CMake Error at C:/ncs/v2.4.1/zephyr/cmake/modules/kconfig.cmake:339 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/ncs/v2.4.1/nrf/cmake/modules/kconfig.cmake:29 (include)
C:/ncs/v2.4.1/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
C:/ncs/v2.4.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/ncs/v2.4.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:8 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE' -DWEST_PYTHON=c:/ncs/toolchains/31f4403e35/opt/bin/python.exe '-Bc:\nordic\myApps\central_uart\build' -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE '-Sc:\nordic\myApps\central_uart'
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
Workspace Version: