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 Charlie  - Totally understand re: 3rd party extensions and Nordic reasonably not being in a position to police them. I should note that I am only now using the NRF Extension pack extensions and not changing the default configuration and still get a lot of warnings and errors.

    That being said, I did try a couple of things that greatly reduced the number of warnings/errors reported by VS Code and I am sharing here in case it can benefit anyone else:

    1) Add to your c_cpp_properties.json in VS Code the following configurations (source/credit):

    "compileCommands": "${workspaceFolder}/build/compile_commands.json",
    "configurationProvider": "ms-vscode.cmake-tools"
    2) run (source/credit): 

    west config build.cmake-args -- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

    For now, I am going to try and ignore the issues with the dev environment and focus on development and building my application. It is still a little mysterious why we should have such different VS Code experiences if we are both starting from a clean install and I would be happy to make myself available to the Nordic team to debug it if anyone wants to do a real-time, interactive session. Thanks! Dan.

Related