Matter Lock example

Hi - I am using the  /nrf/samples/matter/lock sample as a reference template to develop my own app. Thank you for providing it!

I am able to build and flash the basic build (without DFU enabled) and it seems to work fine on the NRF5340 DK board.

  1. Despite building, flashing and seemingly working fine, there are 39 “Problems” reported in VS Code. 38 are warnings, and 1 error: “CMake Error at /opt/nordic/ncs/v1.8.0/zephyr/cmake/extensions.cmake:2413 (message):BOARD is not being defined on the CMake command-line in the environment or by the app.” I am not sure how to get rid of this error - I did specify my board in the VS build configuration dialog correctly as nrf5340dk_nrf5340_cpuapp. I would also welcome feedback/guidance on the 38 warnings to better understand how to fix them. I enclose below the errors and warnings.
  2. I would like to be able to use a mainstream, commercially available thread border router to connect my NRF5340 DK to the internet. I have the latest Apple Homepod mini, however it appears (e.g. https://devzone.nordicsemi.com/f/nordic-q-a/79587/do-matter-samples-from-nrf-connect-sdk-support-homekit) that Apple is not yet supporting the commissioning of Matter accessories. Do you know of any other mainstream (i.e. Google, Amazon, Apple), commercially available thread border routers that would currently work for this? How can we best develop and test an end-user flow for a consumer using our Matter accessory?
  3. Currently, Nordic recommends using the Android CHIPTool app to commission and control a Matter accessory. Is there any plan for providing a reference example/app for iOS, and if so, what is the expected timing of such?
  4.  When I try to build a multi-image DFU version, using prj_multi_image_dfu.conf as the project configuration file and specifying -DBUILD_WITH_DFU=MATTER as a CMake argument in the VS Code build configuration dialog’s “Extra CMake arguments” as specified in the instructions, the build fails with the following error: “ ValueError: ('invalid bool MATTER', 'on line 35: BUILD_WITH_DFU:BOOL=MATTER\n'). Instead, if I try using -DBUILD_WITH_DFU=1 it seems to build fine. The CMakeLists.txt checks “if(BUILD_WITH_DFU)”... is there an error with the documentation/instructions, or am I doing something wrong here?

Thanks! Dan.

My setup:

Apple Macbook Pro - M1 Max chip

OS: macOS Monterey - 12.0.1

VS Code

Generate Support output:

 
{
 "platform": {
   "os": "darwin",
   "osVersion": "Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000",
   "osKernel": "21.1.0",
   "vscode": "1.64.2",
   "electron": "13.5.2",
   "node": "v14.16.0"
 },
 "system": {
   "date": "2022-02-14T01:30:59.300Z",
   "vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
   "nrfConnectForDesktopInstalled": true,
   "vscodeUptime": "29:56:20",
   "osUptime": "117:41:28",
   "cpu": {
     "model": "Apple M1 Max",
     "speed": "24 MHz",
     "count": 5
   },
   "memory": {
     "total": "32.00 GB",
     "free": "0.10 GB"
   }
 },
 "workspace": {
   "name": "Untitled (Workspace)",
   "workspaceFile": "1644443889898",
   "folders": [
     "/Users/me/dev/nordic/blinky",
     "/Users/me/dev/nordic/lock"
   ]
 },
 "extensions": {
   "internal": {
     "nordic-semiconductor.nrf-connect": {
       "version": "2022.1.192",
       "path": "/Users/me/.vscode/extensions/nordic-semiconductor.nrf-connect-2022.1.192",
       "isActive": true
     },
     "nordic-semiconductor.nrf-terminal": {
       "version": "2022.1.30",
       "path": "/Users/me/.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.js-debug": "1.64.3",
     "ms-vscode.js-debug-companion": "1.0.15",
     "ms-vscode.references-view": "0.0.81",
     "ms-vscode.vscode-js-profile-table": "0.0.18",
     "cschlosser.doxdocgen": "1.3.2",
     "jeff-hykin.better-cpp-syntax": "1.15.13",
     "ms-vscode-remote.remote-containers": "0.217.4",
     "ms-vscode-remote.remote-ssh": "0.70.0",
     "ms-vscode-remote.remote-ssh-edit": "0.70.0",
     "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": {
   "/Applications/SEGGER/JLink/JLinkExe": "7.58b",
   "/usr/local/bin/nrfjprog": "10.15.1",
   "/opt/nordic/ncs/v1.8.0/toolchain/bin/cmake": "3.21.1",
   "/opt/nordic/ncs/v1.8.0/toolchain/bin/west": "0.12.0",
   "/opt/nordic/ncs/v1.8.0/toolchain/bin/python3": "3.9.6",
   "/opt/nordic/ncs/v1.8.0/toolchain/bin/ninja": "1.10.2",
   "/opt/nordic/ncs/v1.8.0/toolchain/bin/gperf": "3.1",
   "/opt/nordic/ncs/v1.8.0/toolchain/bin/dtc": "1.6.1",
   "/opt/nordic/ncs/v1.8.0/toolchain/bin/arm-none-eabi-gcc": "9-2019-q4-major",
   "/opt/nordic/ncs/v1.8.0/toolchain/bin/gn": "1961",
   "/opt/nordic/ncs/v1.8.0/toolchain/bin/git": "2.32.0"
 },
 "connectedDevices": [
   {
     "id": "1050007787"
   }
 ],
 "config": {
   "nordic-semiconductor.nrf-connect": {
     "topdir": "${nrf-connect.sdk:1.8.0}",
     "toolchain": {
       "path": "${nrf-connect.toolchain:1.8.0}"
     },
     "ozonePath": "",
     "applications": [
       "${workspaceFolder:lock}"
     ],
     "jlink": {
       "rtosPlugin": ""
     },
     "kconfig": {
       "interface": "kconfig"
     },
     "welcome": {
       "showOnStartup": false
     },
     "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": "/opt/nordic/ncs/v1.8.0/toolchain/bin/west",
   "westEnv": {
     "ELECTRON_RUN_AS_NODE": "1",
     "GIT_EXEC_PATH": "/opt/nordic/ncs/v1.8.0/toolchain/Cellar/git/2.32.0_1/libexec/git-core",
     "HOME": "/Users/me",
     "PATH": "/opt/nordic/ncs/v1.8.0/toolchain/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin",
     "ZEPHYR_BASE": "/opt/nordic/ncs/v1.8.0/zephyr",
     "GNUARMEMB_TOOLCHAIN_PATH": "/opt/nordic/ncs/v1.8.0/toolchain",
     "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
     "USER": "me"
   },
   "toolchainPath": "/opt/nordic/ncs/v1.8.0/toolchain",
   "toolchainBinPath": "/opt/nordic/ncs/v1.8.0/toolchain/bin",
   "toolchainVersion": "1.8.0"
 },
 "terminal": {
   "shell": null,
   "defaultProfile": null
 }
}

Warnings & Errors provided by VS Code build of simple (non-DFU) version:

[{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/cmake/extensions.cmake",
	"owner": "cmake-configure-diags",
	"severity": 8,
	"message": "CMake Error at /opt/nordic/ncs/v1.8.0/zephyr/cmake/extensions.cmake:2413 (message):BOARD is not being defined on the CMake command-line in the environment or\nby the app.",
	"source": "CMake (message)",
	"startLineNumber": 2413,
	"startColumn": 1,
	"endLineNumber": 2413,
	"endColumn": 10000,
	"relatedInformation": [
		{
			"startLineNumber": 212,
			"startColumn": 1,
			"endLineNumber": 212,
			"endColumn": 1000,
			"message": "In call to 'zephyr_check_cache' here",
			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/cmake/app/boilerplate.cmake"
		},
		{
			"startLineNumber": 24,
			"startColumn": 1,
			"endLineNumber": 24,
			"endColumn": 1000,
			"message": "In call to 'include' here",
			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"
		},
		{
			"startLineNumber": 102,
			"startColumn": 1,
			"endLineNumber": 102,
			"endColumn": 1000,
			"message": "In call to 'include_boilerplate' here",
			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"
		},
		{
			"startLineNumber": 24,
			"startColumn": 1,
			"endLineNumber": 24,
			"endColumn": 1000,
			"message": "In call to 'find_package' here",
			"resource": "/Users/me/dev/nordic/lock/CMakeLists.txt"
		}
	]
},{
	"resource": "/opt/nordic/ncs/v1.8.0/modules/lib/matter/src/lib/core/Optional.h",
	"owner": "cpptools",
	"severity": 4,
	"message": "'*((void*)(&<anonymous>)+16).chip::Optional<unsigned int>::mValue.chip::Optional<unsigned int>::Value::mData' may be used uninitialized in this function [-Wmaybe-uninitialized]",
	"source": "gcc",
	"startLineNumber": 70,
	"startColumn": 48,
	"endLineNumber": 70,
	"endColumn": 48
},{
	"resource": "/opt/nordic/ncs/v1.8.0/nrf/subsys/partition_manager/partition_manager_enabled.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "MBEDTLS has direct dependencies (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT) || (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT6XX) || 0 with value n, but is currently being y-selected by the following symbols:\n - BOOT_SIGNATURE_TYPE_RSA , with value y, direct dependencies <choice BOOT_SIGNATURE_TYPE> (value: y), and select condition <choice BOOT_SIGNATURE_TYPE> (value: y)",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
},{
	"resource": "/opt/nordic/ncs/v1.8.0/nrf/subsys/partition_manager/partition_manager_enabled.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "FLASH_MAP has direct dependencies FLASH_HAS_DRIVER_ENABLED with value n, but is currently being y-selected by the following symbols:\n - MCUBOOT_DEVICE_SETTINGS , with value y, direct dependencies y (value: y)",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
},{
	"resource": "/opt/nordic/ncs/v1.8.0/nrf/subsys/partition_manager/partition_manager_enabled.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "MBEDTLS has direct dependencies (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT) || (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT6XX) || 0 with value n, but is currently being y-selected by the following symbols:\n - BOOT_SIGNATURE_TYPE_RSA , with value y, direct dependencies <choice BOOT_SIGNATURE_TYPE> (value: y), and select condition <choice BOOT_SIGNATURE_TYPE> (value: y)",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
},{
	"resource": "/opt/nordic/ncs/v1.8.0/nrf/subsys/partition_manager/partition_manager_enabled.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "MBEDTLS has direct dependencies (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT) || (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT6XX) || 0 with value n, but is currently being y-selected by the following symbols:\n - BOOT_SIGNATURE_TYPE_RSA , with value y, direct dependencies <choice BOOT_SIGNATURE_TYPE> (value: y), and select condition <choice BOOT_SIGNATURE_TYPE> (value: y)",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
},{
	"resource": "/opt/nordic/ncs/v1.8.0/nrfxlib/nrf_802154/sl/sl/CMakeLists.txt",
	"owner": "nrf-connect",
	"severity": 4,
	"message": "This combination of SoC and floating point ABI is not supported by the",
	"source": "cmake",
	"startLineNumber": 14,
	"startColumn": 1,
	"endLineNumber": 14,
	"endColumn": 2147483647
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Unknown node type \"nordic,nrf5340-dk-nrf5340-cpunet\"",
	"startLineNumber": 12,
	"startColumn": 15,
	"endLineNumber": 12,
	"endColumn": 49
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Partition starts outside flash area",
	"startLineNumber": 172,
	"startColumn": 11,
	"endLineNumber": 172,
	"endColumn": 21,
	"relatedInformation": [
		{
			"startLineNumber": 11,
			"startColumn": 9,
			"endLineNumber": 11,
			"endColumn": 19,
			"message": "Flash area defined here",
			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/nordic/nrf5340_cpunet_qkaa.dtsi"
		}
	]
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Partition starts outside flash area",
	"startLineNumber": 176,
	"startColumn": 11,
	"endLineNumber": 176,
	"endColumn": 21,
	"relatedInformation": [
		{
			"startLineNumber": 11,
			"startColumn": 9,
			"endLineNumber": 11,
			"endColumn": 19,
			"message": "Flash area defined here",
			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/nordic/nrf5340_cpunet_qkaa.dtsi"
		}
	]
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Partition starts outside flash area",
	"startLineNumber": 180,
	"startColumn": 11,
	"endLineNumber": 180,
	"endColumn": 21,
	"relatedInformation": [
		{
			"startLineNumber": 11,
			"startColumn": 9,
			"endLineNumber": 11,
			"endColumn": 19,
			"message": "Flash area defined here",
			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/nordic/nrf5340_cpunet_qkaa.dtsi"
		}
	]
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Partition starts outside flash area",
	"startLineNumber": 184,
	"startColumn": 11,
	"endLineNumber": 184,
	"endColumn": 21,
	"relatedInformation": [
		{
			"startLineNumber": 11,
			"startColumn": 9,
			"endLineNumber": 11,
			"endColumn": 19,
			"message": "Flash area defined here",
			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/nordic/nrf5340_cpunet_qkaa.dtsi"
		}
	]
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Partition starts outside flash area",
	"startLineNumber": 188,
	"startColumn": 11,
	"endLineNumber": 188,
	"endColumn": 21,
	"relatedInformation": [
		{
			"startLineNumber": 11,
			"startColumn": 9,
			"endLineNumber": 11,
			"endColumn": 19,
			"message": "Flash area defined here",
			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/nordic/nrf5340_cpunet_qkaa.dtsi"
		}
	]
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/CMakeLists.txt",
	"owner": "nrf-connect",
	"severity": 4,
	"message": "No SOURCES given to Zephyr library: drivers__console",
	"source": "cmake",
	"startLineNumber": 722,
	"startColumn": 1,
	"endLineNumber": 722,
	"endColumn": 2147483647
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/CMakeLists.txt",
	"owner": "nrf-connect",
	"severity": 4,
	"message": "__ASSERT() statements are globally ENABLED",
	"source": "cmake",
	"startLineNumber": 1662,
	"startColumn": 1,
	"endLineNumber": 1662,
	"endColumn": 2147483647
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/armv8-m.dtsi",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Unknown node type \"arm,armv8m-systick\"",
	"startLineNumber": 22,
	"startColumn": 17,
	"endLineNumber": 22,
	"endColumn": 37
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/nordic/nrf5340_cpunet_qkaa.dtsi",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Unknown node type \"nordic,nRF5340-CPUNET-QKAA\"",
	"startLineNumber": 28,
	"startColumn": 16,
	"endLineNumber": 28,
	"endColumn": 44
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/nordic/nrf5340_cpunet_qkaa.dtsi",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Unknown node type \"nordic,nRF5340-CPUNET\"",
	"startLineNumber": 28,
	"startColumn": 46,
	"endLineNumber": 28,
	"endColumn": 69
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/nordic/nrf5340_cpunet_qkaa.dtsi",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Unknown node type \"nordic,nRF53\"",
	"startLineNumber": 28,
	"startColumn": 71,
	"endLineNumber": 28,
	"endColumn": 85
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/nordic/nrf5340_cpunet.dtsi",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Property not mentioned in \"arm,cortex-m33\"",
	"startLineNumber": 21,
	"startColumn": 4,
	"endLineNumber": 21,
	"endColumn": 15
},{
	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/nordic/nrf5340_cpunet.dtsi",
	"owner": "DeviceTree",
	"severity": 4,
	"message": "Address range collides with clock@41005000 (power@41005000 also starts at 0x41006000)",
	"startLineNumber": 65,
	"startColumn": 10,
	"endLineNumber": 65,
	"endColumn": 29,
	"relatedInformation": [
		{
			"startLineNumber": 55,
			"startColumn": 10,
			"endLineNumber": 55,
			"endColumn": 24,
			"message": "clock@41005000 declared here",
			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/dts/arm/nordic/nrf5340_cpunet.dtsi"
		}
	]
},{
	"resource": "/Users/me/dev/nordic/lock/boards/nrf5340dk_nrf5340_cpuapp_multi_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "MBEDTLS has direct dependencies (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT) || (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT6XX) || 0 with value n, but is currently being y-selected by the following symbols:\n - NORDIC_SECURITY_BACKEND , with value y, direct dependencies SOC_FAMILY_NRF (value: y), and select condition SOC_FAMILY_NRF (value: y)",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
},{
	"resource": "/Users/me/dev/nordic/lock/boards/nrf5340dk_nrf5340_cpuapp_multi_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "MBEDTLS has direct dependencies (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT) || (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT6XX) || 0 with value n, but is currently being y-selected by the following symbols:\n - NORDIC_SECURITY_BACKEND , with value y, direct dependencies SOC_FAMILY_NRF (value: y), and select condition SOC_FAMILY_NRF (value: y)",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
},{
	"resource": "/Users/me/dev/nordic/lock/prj_multi_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_UPDATEABLE_IMAGE_NUMBER couldn't be set. Missing dependencies:\nIMG_MANAGER",
	"startLineNumber": 107,
	"startColumn": 1,
	"endLineNumber": 107,
	"endColumn": 31
},{
	"resource": "/Users/me/dev/nordic/lock/prj_multi_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE couldn't be set. Missing dependencies:\nNORDIC_QSPI_NOR",
	"startLineNumber": 112,
	"startColumn": 1,
	"endLineNumber": 112,
	"endColumn": 47
},{
	"resource": "/Users/me/dev/nordic/lock/prj_multi_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_MCUMGR_CMD_IMG_MGMT was assigned the value y, but got the value n. Missing dependencies:\nMCUMGR",
	"startLineNumber": 116,
	"startColumn": 1,
	"endLineNumber": 116,
	"endColumn": 27
},{
	"resource": "/Users/me/dev/nordic/lock/prj_multi_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_MCUMGR_CMD_OS_MGMT was assigned the value y, but got the value n. Missing dependencies:\nMCUMGR",
	"startLineNumber": 117,
	"startColumn": 1,
	"endLineNumber": 117,
	"endColumn": 26
},{
	"resource": "/Users/me/dev/nordic/lock/prj_multi_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_MCUMGR_SMP_BT was assigned the value y, but got the value n. Missing dependencies:\nMCUMGR",
	"startLineNumber": 118,
	"startColumn": 1,
	"endLineNumber": 118,
	"endColumn": 21
},{
	"resource": "/Users/me/dev/nordic/lock/prj_multi_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_MCUMGR_SMP_BT_AUTHEN was assigned the value n, but got the value n. Missing dependencies:\nMCUMGR_SMP_BT && MCUMGR",
	"startLineNumber": 119,
	"startColumn": 1,
	"endLineNumber": 119,
	"endColumn": 28
},{
	"resource": "/Users/me/dev/nordic/lock/prj_multi_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_MCUMGR_BUF_COUNT couldn't be set. Missing dependencies:\nMCUMGR",
	"startLineNumber": 120,
	"startColumn": 1,
	"endLineNumber": 120,
	"endColumn": 24
},{
	"resource": "/Users/me/dev/nordic/lock/prj_multi_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_MCUMGR_GRP_ZEPHYR_BASIC was assigned the value y, but got the value n. Missing dependencies:\nMCUMGR",
	"startLineNumber": 138,
	"startColumn": 1,
	"endLineNumber": 138,
	"endColumn": 31
},{
	"resource": "/Users/me/dev/nordic/lock/prj_multi_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_MCUMGR_GRP_BASIC_CMD_STORAGE_ERASE was assigned the value y, but got the value n. Missing dependencies:\nMCUMGR_GRP_ZEPHYR_BASIC && MCUMGR",
	"startLineNumber": 139,
	"startColumn": 1,
	"endLineNumber": 139,
	"endColumn": 42
},{
	"resource": "/Users/me/dev/nordic/lock/prj_single_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "HAS_NORDIC_DRIVERS has direct dependencies 0 with value n, but is currently being y-selected by the following symbols:\n - SOC_SERIES_NRF53X , with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y)",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
},{
	"resource": "/Users/me/dev/nordic/lock/prj_single_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "NRF_802154_RADIO_DRIVER has direct dependencies HAS_HW_NRF_RADIO_IEEE802154 && HAS_NORDIC_DRIVERS && 0 with value n, but is currently being y-selected by the following symbols:\n - IEEE802154_NRF5 , with value y, direct dependencies (SOC_NRF52811_QFAA && SOC_SERIES_NRF52X && SOC_FAMILY_NRF) || (SOC_NRF52820_QDAA && SOC_SERIES_NRF52X && SOC_FAMILY_NRF) || (SOC_NRF52833_QIAA && SOC_SERIES_NRF52X && SOC_FAMILY_NRF) || (SOC_NRF52840_QIAA && SOC_SERIES_NRF52X && SOC_FAMILY_NRF) || (SOC_NRF5340_CPUAPP_QKAA && SOC_SERIES_NRF53X && SOC_FAMILY_NRF) || (IEEE802154 && SOC_NRF5340_CPUNET_QKAA && SOC_SERIES_NRF53X && SOC_FAMILY_NRF) || (NETWORKING && IEEE802154) (value: y), and select condition HAS_HW_NRF_RADIO_IEEE802154 && NETWORKING && IEEE802154 (value: y)",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
},{
	"resource": "/Users/me/dev/nordic/lock/prj_single_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "MBEDTLS has direct dependencies (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT) || (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT6XX) || 0 with value n, but is currently being y-selected by the following symbols:\n - OPENTHREAD_MBEDTLS , with value y, direct dependencies NET_L2_OPENTHREAD && NETWORKING (value: y), and select condition NET_L2_OPENTHREAD && NETWORKING (value: y)",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
},{
	"resource": "/Users/me/dev/nordic/lock/prj_single_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "MBEDTLS_ENABLE_HEAP has direct dependencies MBEDTLS && 0 with value n, but is currently being y-selected by the following symbols:\n - OPENTHREAD_MBEDTLS , with value y, direct dependencies NET_L2_OPENTHREAD && NETWORKING (value: y), and select condition NET_L2_OPENTHREAD && NETWORKING (value: y)",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
},{
	"resource": "/Users/me/dev/nordic/lock/prj_single_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_NET_SOCKETS_POLL_MAX couldn't be set. Missing dependencies:\nNET_SOCKETS",
	"startLineNumber": 16,
	"startColumn": 1,
	"endLineNumber": 16,
	"endColumn": 28
},{
	"resource": "/Users/me/dev/nordic/lock/prj_single_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_MBEDTLS_HEAP_SIZE couldn't be set. Missing dependencies:\n0",
	"startLineNumber": 63,
	"startColumn": 1,
	"endLineNumber": 63,
	"endColumn": 25
},{
	"resource": "/Users/me/dev/nordic/lock/prj_single_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_MBEDTLS_ECP_DP_SECP256R1_ENABLED was assigned the value y, but got the value n. Missing dependencies:\nMBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED || MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED || MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED || MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED || MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED || MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED && MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = \"config-tls-generic.h\" && 0",
	"startLineNumber": 69,
	"startColumn": 1,
	"endLineNumber": 69,
	"endColumn": 40
},{
	"resource": "/Users/me/dev/nordic/lock/prj_single_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_MBEDTLS_PK_WRITE_C was assigned the value y, but got the value n. Missing dependencies:\nMBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = \"config-tls-generic.h\" && 0",
	"startLineNumber": 75,
	"startColumn": 1,
	"endLineNumber": 75,
	"endColumn": 26
},{
	"resource": "/Users/me/dev/nordic/lock/prj_single_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_NORDIC_QSPI_NOR was assigned the value y, but got the value n. Missing dependencies:\nHAS_HW_NRF_QSPI",
	"startLineNumber": 109,
	"startColumn": 1,
	"endLineNumber": 109,
	"endColumn": 23
},{
	"resource": "/Users/me/dev/nordic/lock/prj_single_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE couldn't be set. Missing dependencies:\nNORDIC_QSPI_NOR",
	"startLineNumber": 110,
	"startColumn": 1,
	"endLineNumber": 110,
	"endColumn": 46
},{
	"resource": "/Users/me/dev/nordic/lock/prj_single_image_dfu.conf",
	"owner": "kconfig0",
	"severity": 4,
	"message": "CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE couldn't be set. Missing dependencies:\nNORDIC_QSPI_NOR",
	"startLineNumber": 111,
	"startColumn": 1,
	"endLineNumber": 111,
	"endColumn": 47
}]


  • Hi Dan,

    1) Did you build with the original sample? I did the same building process and just get 5 warning reports from the subsystem shown as below, which has no effect on the application FW. Can you try to remove other applications and builds, close and reopen VS code to do a clean build again? Make sure the PROBLEMS output is empty before building. I will also try to get a Mac to see if the building environment makes any difference.

    [{
    	"resource": "/c:/NCS/v1.8.0/nrf/samples/matter/lock/boards/nrf5340dk_nrf5340_cpuapp.conf",
    	"owner": "kconfig0",
    	"severity": 4,
    	"message": "MBEDTLS has direct dependencies (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT6XX) || (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT) || 0 with value n, but is currently being y-selected by the following symbols:\n - NORDIC_SECURITY_BACKEND , with value y, direct dependencies SOC_FAMILY_NRF (value: y), and select condition SOC_FAMILY_NRF (value: y)",
    	"startLineNumber": 1,
    	"startColumn": 1,
    	"endLineNumber": 1,
    	"endColumn": 1
    },{
    	"resource": "/c:/NCS/v1.8.0/nrf/samples/matter/lock/boards/nrf5340dk_nrf5340_cpuapp.conf",
    	"owner": "kconfig0",
    	"severity": 4,
    	"message": "MBEDTLS has direct dependencies (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT6XX) || (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT) || 0 with value n, but is currently being y-selected by the following symbols:\n - NORDIC_SECURITY_BACKEND , with value y, direct dependencies SOC_FAMILY_NRF (value: y), and select condition SOC_FAMILY_NRF (value: y)",
    	"startLineNumber": 1,
    	"startColumn": 1,
    	"endLineNumber": 1,
    	"endColumn": 1
    },{
    	"resource": "/c:/NCS/v1.8.0/nrfxlib/nrf_802154/sl/sl/CMakeLists.txt",
    	"owner": "nrf-connect",
    	"severity": 4,
    	"message": "This combination of SoC and floating point ABI is not supported by the",
    	"source": "cmake",
    	"startLineNumber": 14,
    	"startColumn": 1,
    	"endLineNumber": 14,
    	"endColumn": 2147483647
    },{
    	"resource": "/c:/NCS/v1.8.0/zephyr/CMakeLists.txt",
    	"owner": "nrf-connect",
    	"severity": 4,
    	"message": "No SOURCES given to Zephyr library: drivers__console",
    	"source": "cmake",
    	"startLineNumber": 722,
    	"startColumn": 1,
    	"endLineNumber": 722,
    	"endColumn": 2147483647
    },{
    	"resource": "/c:/NCS/v1.8.0/zephyr/CMakeLists.txt",
    	"owner": "nrf-connect",
    	"severity": 4,
    	"message": "__ASSERT() statements are globally ENABLED",
    	"source": "cmake",
    	"startLineNumber": 1662,
    	"startColumn": 1,
    	"endLineNumber": 1662,
    	"endColumn": 2147483647
    }]

    2)3) You can test your matter accessory with the following Apple devices, make sure your device has updated FW above iOS15.2(You can’t pair with Matter accessories that use Thread. (80991829) issue is fixed from this version according to release note). Add support for Matter in your smart home app demonstrates how to add/pair/commission a matter accessory.

    Apple TV4K 2nd tvOS15.2/Homepod Mini 15.2   (Border Router)
    iPhone iOS15.2 Home App (Matter controller)

    There are some public pages that suggest other options for thread board routers:

    Thread Border Router: The simple component to get your Thread network started > Thread Group

    Thread Benefits (threadgroup.org)

    Thread: Everything you need to know | iMore

    Matter protocol is still under the draft stage before formal release. The first group of Matter products is developing/testing along with the Matter specification process. Please join Matter | Smart Home Device Solution - CSA (csa-iot.org) to learn the latest update and speed up your development.

    4) According to Matter: Door lock — nRF Connect SDK 1.8.0 documentation (nordicsemi.com), "-DBUILD_WITH_DFU=1" is correct configuration. Please always follow the corresponding document with the NCS version used by your development.

    Best regards,

    Charlie

  • Hi Charlie - thanks for the detailed response and the info on Matter and Apple - appreciate the links and will dig into it deeper. We are good on 2,3,4 above.

    Re: (1):  I did as you suggested (clean restart of VSCode workspace from scratch with no changes to the  lock sample code or configuration) and also left "Enable Debug Options" unselected in the build configuration dialog (previously I had enabled it). The Problems tab in VSCode now reports 4 errors and 5 warnings as below. I can still compile and flash the board and it appears to work properly, but these errors are a little annoying and also I am seeing squiggles under include files that intellisense cannot find (and as far as I can tell, it should because the cpp_properties JSON properly specifies the includePath recursively as:

    my lock/.vscode/c_cpp_properties.json: 
    {
        "configurations": [
            {
                "name": "Mac",
                "includePath": [
                    "${workspaceFolder}/**"
                ],
                "defines": [],
                "macFrameworkPath": [
                    "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
                ],
                "compilerPath": "/usr/bin/clang",
                "cStandard": "c17",
                "cppStandard": "c++98",
                "intelliSenseMode": "macos-clang-x86",
                "configurationProvider": "ms-vscode.cmake-tools"
            }
        ],
        "version": 4
    }
    VS Code Problems tab dump:

    [{
    	"resource": "/opt/nordic/ncs/v1.8.0/nrfxlib/common.cmake",
    	"owner": "cmake-configure-diags",
    	"severity": 8,
    	"message": "CMake Error at /opt/nordic/ncs/v1.8.0/nrfxlib/common.cmake:93 (message):Failed to find mbedtls, cannot build security libraries",
    	"source": "CMake (message)",
    	"startLineNumber": 93,
    	"startColumn": 1,
    	"endLineNumber": 93,
    	"endColumn": 10000,
    	"relatedInformation": [
    		{
    			"startLineNumber": 24,
    			"startColumn": 1,
    			"endLineNumber": 24,
    			"endColumn": 1000,
    			"message": "In call to 'get_mbedtls_dir' here",
    			"resource": "/opt/nordic/ncs/v1.8.0/nrfxlib/nrf_security/CMakeLists.txt"
    		}
    	]
    },{
    	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/cmake/extensions.cmake",
    	"owner": "cmake-configure-diags",
    	"severity": 8,
    	"message": "CMake Error at /opt/nordic/ncs/v1.8.0/zephyr/cmake/extensions.cmake:420 (add_library):No SOURCES given to target: app",
    	"source": "CMake (add_library)",
    	"startLineNumber": 420,
    	"startColumn": 1,
    	"endLineNumber": 420,
    	"endColumn": 10000,
    	"relatedInformation": [
    		{
    			"startLineNumber": 659,
    			"startColumn": 1,
    			"endLineNumber": 659,
    			"endColumn": 1000,
    			"message": "In call to 'zephyr_library_named' here",
    			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/cmake/app/boilerplate.cmake"
    		},
    		{
    			"startLineNumber": 24,
    			"startColumn": 1,
    			"endLineNumber": 24,
    			"endColumn": 1000,
    			"message": "In call to 'include' here",
    			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"
    		},
    		{
    			"startLineNumber": 40,
    			"startColumn": 1,
    			"endLineNumber": 40,
    			"endColumn": 1000,
    			"message": "In call to 'include_boilerplate' here",
    			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"
    		},
    		{
    			"startLineNumber": 24,
    			"startColumn": 1,
    			"endLineNumber": 24,
    			"endColumn": 1000,
    			"message": "In call to 'find_package' here",
    			"resource": "/Users/ydr/dev/nordic/lock/CMakeLists.txt"
    		}
    	]
    },{
    	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/cmake/extensions.cmake",
    	"owner": "cmake-configure-diags",
    	"severity": 8,
    	"message": "CMake Error at /opt/nordic/ncs/v1.8.0/zephyr/cmake/extensions.cmake:420 (add_library):No SOURCES given to target: drivers__interrupt_controller",
    	"source": "CMake (add_library)",
    	"startLineNumber": 420,
    	"startColumn": 1,
    	"endLineNumber": 420,
    	"endColumn": 10000,
    	"relatedInformation": [
    		{
    			"startLineNumber": 397,
    			"startColumn": 1,
    			"endLineNumber": 397,
    			"endColumn": 1000,
    			"message": "In call to 'zephyr_library_named' here",
    			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/cmake/extensions.cmake"
    		},
    		{
    			"startLineNumber": 3,
    			"startColumn": 1,
    			"endLineNumber": 3,
    			"endColumn": 1000,
    			"message": "In call to 'zephyr_library' here",
    			"resource": "/opt/nordic/ncs/v1.8.0/zephyr/drivers/interrupt_controller/CMakeLists.txt"
    		}
    	]
    },{
    	"resource": "/Users/ydr/dev/nordic/lock/src/app_event.h",
    	"owner": "clang-tidy",
    	"code": "clang-diagnostic-error",
    	"severity": 8,
    	"message": "'led_widget.h' file not found",
    	"source": "C/C++",
    	"startLineNumber": 11,
    	"startColumn": 10,
    	"endLineNumber": 11,
    	"endColumn": 10
    },{
    	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/CMakeLists.txt",
    	"owner": "cmake-configure-diags",
    	"severity": 4,
    	"message": "CMake Warning at /opt/nordic/ncs/v1.8.0/zephyr/CMakeLists.txt:722 (message):No SOURCES given to Zephyr library: drivers__console\n\nExcluding target from build.",
    	"source": "CMake (message)",
    	"startLineNumber": 722,
    	"startColumn": 1,
    	"endLineNumber": 722,
    	"endColumn": 10000
    },{
    	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/CMakeLists.txt",
    	"owner": "cmake-configure-diags",
    	"severity": 4,
    	"message": "CMake Warning at /opt/nordic/ncs/v1.8.0/zephyr/CMakeLists.txt:1662 (message):__ASSERT() statements are globally ENABLED",
    	"source": "CMake (message)",
    	"startLineNumber": 1662,
    	"startColumn": 1,
    	"endLineNumber": 1662,
    	"endColumn": 10000
    },{
    	"resource": "/opt/nordic/ncs/v1.8.0/zephyr/CMakeLists.txt",
    	"owner": "cmake-configure-diags",
    	"severity": 4,
    	"message": "CMake Warning at /opt/nordic/ncs/v1.8.0/zephyr/CMakeLists.txt:1690 (message):\n\n      The CMake build type was set to 'Debug', but the optimization flag was set to '-Os'.\n      This may be intentional and the warning can be turned off by setting the CMake variable 'NO_BUILD_TYPE_WARNING'",
    	"source": "CMake (message)",
    	"startLineNumber": 1690,
    	"startColumn": 1,
    	"endLineNumber": 1690,
    	"endColumn": 10000
    },{
    	"resource": "/Users/ydr/dev/nordic/lock/boards/nrf5340dk_nrf5340_cpuapp.conf",
    	"owner": "kconfig2",
    	"severity": 4,
    	"message": "MBEDTLS has direct dependencies (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT) || (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT6XX) || 0 with value n, but is currently being y-selected by the following symbols:\n - NORDIC_SECURITY_BACKEND , with value y, direct dependencies SOC_FAMILY_NRF (value: y), and select condition SOC_FAMILY_NRF (value: y)",
    	"startLineNumber": 1,
    	"startColumn": 1,
    	"endLineNumber": 1,
    	"endColumn": 1
    },{
    	"resource": "/Users/ydr/dev/nordic/lock/boards/nrf5340dk_nrf5340_cpuapp.conf",
    	"owner": "kconfig2",
    	"severity": 4,
    	"message": "MBEDTLS has direct dependencies (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT) || (ENTROPY_GENERATOR && SOC_SERIES_IMX_RT6XX) || 0 with value n, but is currently being y-selected by the following symbols:\n - NORDIC_SECURITY_BACKEND , with value y, direct dependencies SOC_FAMILY_NRF (value: y), and select condition SOC_FAMILY_NRF (value: y)",
    	"startLineNumber": 1,
    	"startColumn": 1,
    	"endLineNumber": 1,
    	"endColumn": 1
    }]

    So for example, when I click to edit app_task.cpp, it shows all the includes with squiggles and I can't right click through to the definitions etc... Would welcome your advice/suggestions on how to resolve this as well. Thanks! Dan.

    Most recent Generate Support Info:

    18:05:07] west build --build-dir /Users/me/dev/nordic/lock/build /Users/me/dev/nordic/lock
    [18:05:09] Failure (code 1).
    [18:05:23] west build --build-dir /Users/me/dev/nordic/lock/build /Users/me/dev/nordic/lock --pristine --board nrf5340dk_nrf5340_cpuapp -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="/Users/me/dev/nordic/lock" -DCONF_FILE:STRING="/Users/me/dev/nordic/lock/prj.conf;/Users/me/dev/nordic/lock/boards/nrf5340dk_nrf5340_cpuapp.conf" -DDTC_OVERLAY_FILE:STRING="/Users/me/dev/nordic/lock/boards/nrf5340dk_nrf5340_cpuapp.overlay"
    [18:06:23] Success.
    [18:06:59] west build --build-dir /Users/me/dev/nordic/lock/build /Users/me/dev/nordic/lock
    [18:07:00] Success.
    [18:07:05] west build --build-dir /Users/me/dev/nordic/lock/build /Users/me/dev/nordic/lock
    [18:07:06] Success.
    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": "darwin",
       "osVersion": "Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000",
       "osKernel": "21.1.0",
       "vscode": "1.64.2",
       "electron": "13.5.2",
       "node": "v14.16.0"
     },
     "system": {
       "date": "2022-02-15T02:16:37.777Z",
       "vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
       "nrfConnectForDesktopInstalled": true,
       "vscodeUptime": "00:16:22",
       "osUptime": "142:27:06",
       "cpu": {
         "model": "Apple M1 Max",
         "speed": "24 MHz",
         "count": 5
       },
       "memory": {
         "total": "32.00 GB",
         "free": "0.26 GB"
       }
     },
     "workspace": {
       "name": "lock (Workspace)",
       "workspaceFile": "/Users/me/dev/nordic/lock/src/lock.code-workspace",
       "folders": [
         "/Users/me/dev/nordic/lock"
       ]
     },
     "extensions": {
       "internal": {
         "nordic-semiconductor.nrf-connect": {
           "version": "2022.1.192",
           "path": "/Users/me/.vscode/extensions/nordic-semiconductor.nrf-connect-2022.1.192",
           "isActive": true
         },
         "nordic-semiconductor.nrf-terminal": {
           "version": "2022.1.30",
           "path": "/Users/me/.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.js-debug": "1.64.3",
         "ms-vscode.js-debug-companion": "1.0.15",
         "ms-vscode.references-view": "0.0.81",
         "ms-vscode.vscode-js-profile-table": "0.0.18",
         "cschlosser.doxdocgen": "1.3.2",
         "jeff-hykin.better-cpp-syntax": "1.15.13",
         "ms-vscode-remote.remote-containers": "0.217.4",
         "ms-vscode-remote.remote-ssh": "0.70.0",
         "ms-vscode-remote.remote-ssh-edit": "0.70.0",
         "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": {
       "/Applications/SEGGER/JLink/JLinkExe": "7.60h",
       "/usr/local/bin/nrfjprog": "10.15.1",
       "/opt/nordic/ncs/v1.8.0/toolchain/bin/cmake": "3.21.1",
       "/opt/nordic/ncs/v1.8.0/toolchain/bin/west": "0.12.0",
       "/opt/nordic/ncs/v1.8.0/toolchain/bin/python3": "3.9.6",
       "/opt/nordic/ncs/v1.8.0/toolchain/bin/ninja": "1.10.2",
       "/opt/nordic/ncs/v1.8.0/toolchain/bin/gperf": "3.1",
       "/opt/nordic/ncs/v1.8.0/toolchain/bin/dtc": "1.6.1",
       "/opt/nordic/ncs/v1.8.0/toolchain/bin/arm-none-eabi-gcc": "9-2019-q4-major",
       "/opt/nordic/ncs/v1.8.0/toolchain/bin/gn": "1961",
       "/opt/nordic/ncs/v1.8.0/toolchain/bin/git": "2.32.0"
     },
     "connectedDevices": [
       {
         "id": "1050007787"
       }
     ],
     "config": {
       "nordic-semiconductor.nrf-connect": {
         "topdir": "${nrf-connect.sdk:1.8.0}",
         "toolchain": {
           "path": "${nrf-connect.toolchain:1.8.0}"
         },
         "ozonePath": "",
         "applications": [
           "/Users/me/dev/nordic/lock"
         ],
         "jlink": {
           "rtosPlugin": ""
         },
         "kconfig": {
           "interface": "kconfig"
         },
         "welcome": {
           "showOnStartup": false
         },
         "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": "/opt/nordic/ncs/v1.8.0/toolchain/bin/west",
       "westEnv": {
         "ELECTRON_RUN_AS_NODE": "1",
         "GIT_EXEC_PATH": "/opt/nordic/ncs/v1.8.0/toolchain/Cellar/git/2.32.0_1/libexec/git-core",
         "HOME": "/Users/me",
         "PATH": "/opt/nordic/ncs/v1.8.0/toolchain/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin",
         "ZEPHYR_BASE": "/opt/nordic/ncs/v1.8.0/zephyr",
         "GNUARMEMB_TOOLCHAIN_PATH": "/opt/nordic/ncs/v1.8.0/toolchain",
         "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
         "USER": "me"
       },
       "toolchainPath": "/opt/nordic/ncs/v1.8.0/toolchain",
       "toolchainBinPath": "/opt/nordic/ncs/v1.8.0/toolchain/bin",
       "toolchainVersion": "1.8.0"
     },
     "terminal": {
       "shell": null,
       "defaultProfile": null
     }
    }
     
    

  • Hi Dan,

    After some exploration, I got the following suggestions for you:

    1) Try to clean up your extensions first. Uninstall the extensions related to C/C++ first, reinstall the nRF Connect Extension Pack, restart VS Code.

    2) After above step, you should see only one error and several warnings appear. The error has a solution mentioned here Kconfig.defconfig:11: error: couldn't parse 'default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency)' · Issue #41093 · zephyrproject-rtos/zephyr · GitHub

    Best regards,

    Charlie

  • Hi Charlie - Thanks for digging into this further and for your suggestions which I followed (I removed all extensions, reinstalled nRF Connection Extension Pack from within VS Code, and restarted VS Code).

    When it first opens up, it does indeed only show one warning. However, as soon as I click into app_task.cpp it presents 14 errors and 1 warning (it can still build and flash and work properly despite these, which leads me to believe it is a VS Code/Intellisense configuration issue and not an actual issue). However I would like to get it resolved so that when I have real issues, VS Code can alert me of them properly.

    When VS Code first opens:

    After clicking in to app_task.cpp:

    Would you be able to share your lock/.vscode/c_cpp_properties.json file contents so I can compare to mine? Also, if you have the output from VS Code for Generate Support from an M1 Mac I would welcome having a look at it to compare it to mine.

    Thanks! Dan.

  • Hi Dan,

    I am not sure how you create this file. I do not have c_cpp_properties.json in my current project folder or working space, the default C/C++ extensions setting should work. It is also worth mentioning the solutions mentioned on another ticket if you want to learn more.

    Problems with VS Code - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)

    You may realize all the PROBLEMS reports are issued by assistant extensions and may be caused by improper configuration. Some of the extensions are not originally designed or optimized for Zephyr/NCS project and they are not intelligent enough for the complex structure of Zephyr/NCS like the following issue report. We have no quick solution for these kinds of problems since these extensions are maintained by other people or origination under open-source licenses. They have no influence on the building process. As long as the building process does not report errors, you can focus on your development safely. 

    nRF9160DK ver 0.9.0 - application software show error during build. asset_tracker_v2 in v1.7.1 - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)

    Best regards,

    Charlie

Related