<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Matter thermostat sample building issue nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125315/matter-thermostat-sample-building-issue-nrf52840</link><description>Hello, 
 i&amp;#39;m facing errors when trying to build matter sample thermostat. 
 I doesn&amp;#39;t matter if i use VS Code or terminal 
 
 (v3.1.1) C:\ncs\v3.1.1\nrf\samples\matter\thermostat&amp;gt; west build -b nrf52840dk/nrf52840 -d build_nrf52840dk_nrf52840 -- -DCONF_FILE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Oct 2025 14:08:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125315/matter-thermostat-sample-building-issue-nrf52840" /><item><title>RE: Matter thermostat sample building issue nrf52840</title><link>https://devzone.nordicsemi.com/thread/553039?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2025 14:08:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db3edd73-5b8c-4cda-b056-bced573f866e</guid><dc:creator>ady</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter thermostat sample building issue nrf52840</title><link>https://devzone.nordicsemi.com/thread/552934?ContentTypeID=1</link><pubDate>Thu, 30 Oct 2025 18:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b02dfeb1-508e-4e42-87d3-73a63c22239f</guid><dc:creator>PjGlasso</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Looks like an Overlay issue, check the order you have and verify the nodes and names.&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
[quote userid="148849" url="~/f/nordic-q-a/125315/matter-thermostat-sample-building-issue-nrf52840"]-- Found devicetree overlay: C:/ncs/v3.1.1/nrf/samples/matter/thermostat/sysbuild/mcuboot/boards/nrf52840dk_nrf52840.overlay&lt;br /&gt;devicetree error: /chosen: undefined node label &amp;#39;mx25r64&amp;#39;[/quote]
&lt;p&gt;start there.&lt;/p&gt;
&lt;p&gt;It will build.&lt;/p&gt;
&lt;p&gt;HTH&lt;/p&gt;
&lt;p&gt;GL :-) PJ&lt;/p&gt;
&lt;p&gt;it should read like this&amp;nbsp;&lt;br /&gt;&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-- Found west (found suitable version &amp;quot;1.4.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)&lt;br /&gt;-- Board: nrf52840dk, qualifiers: nrf52840&lt;br /&gt;-- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk)&lt;br /&gt;-- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk)&lt;br /&gt;-- Found BOARD.dts: C:/ncs/v3.1.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts&lt;br /&gt;-- Found devicetree overlay: D:/Nordic/myapps/workspace/thermostat_1/boards/nrf52840dk_nrf52840.overlay&lt;br /&gt;-- Generated zephyr.dts: D:/Nordic/myapps/workspace/thermostat_1/build/thermostat_1/zephyr/zephyr.dts&lt;br /&gt;-- Generated pickled edt: D:/Nordic/myapps/workspace/thermostat_1/build/thermostat_1/zephyr/edt.pickle&lt;br /&gt;-- Generated devicetree_generated.h: D:/Nordic/myapps/workspace/thermostat_1/build/thermostat_1/zephyr/include/generated/zephyr/devicetree_generated.h&lt;br /&gt;Parsing D:/Nordic/myapps/workspace/thermostat_1/Kconfig&lt;br /&gt;Loaded configuration &amp;#39;D:/Nordic/myapps/workspace/thermostat_1/build/thermostat_1/zephyr/.config&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;D:/Nordic/myapps/workspace/thermostat_1/build/thermostat_1/zephyr/.config.sysbuild&amp;#39;&lt;br /&gt;No change to configuration in &amp;#39;D:/Nordic/myapps/workspace/thermostat_1/build/thermostat_1/zephyr/.config&amp;#39;&lt;br /&gt;No change to Kconfig header in &amp;#39;D:/Nordic/myapps/workspace/thermostat_1/build/thermostat_1/zephyr/include/generated/zephyr/autoconf.h&amp;#39;&lt;br /&gt;CMake Warning at C:/ncs/v3.1.1/nrf/cmake/version_app.cmake:19 (message):&lt;br /&gt; APP_VERSION: git rev-parse failed: fatal: not a git repository (or any of&lt;br /&gt; the parent directories): .git&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; C:/ncs/v3.1.1/nrf/CMakeLists.txt:26 (include)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;=========== Generating psa_crypto_config ===============&lt;br /&gt;Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False&lt;br /&gt;Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True&lt;br /&gt;Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False&lt;br /&gt;Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False&lt;br /&gt;......&lt;br /&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;Success looks like this: &amp;quot;&lt;br /&gt;[493/493] Linking CXX executable zephyr\zephyr.elf&lt;br /&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 782284 B 982528 B 79.62%&lt;br /&gt; RAM: 157492 B 256 KB 60.08%&lt;br /&gt; IDT_LIST: 0 GB 32 KB 0.00%&lt;br /&gt;Generating files from D:/Nordic/myapps/workspace/thermostat_1/build/thermostat_1/zephyr/zephyr.elf for board: nrf52840dk&lt;br /&gt;image.py: sign the payload&lt;br /&gt;image.py: sign the payload&lt;br /&gt;[11/23] Generating new Factory Data...&lt;br /&gt;[INFO] Generating SPAKE2+ Verifier...&lt;br /&gt;[WARNING] KEY password has not been provided. It means that DAC key is not encrypted.&lt;br /&gt;[INFO] Validating JSON with schema...&lt;br /&gt;[INFO] Validate OK&lt;br /&gt;[12/23] Performing build step for &amp;#39;mcuboot&amp;#39;&lt;br /&gt;[6/182] Generating include/generated/zephyr/version.h&lt;br /&gt;-- Zephyr version: 4.1.99 (C:/ncs/v3.1.1/zephyr), build: ncs-v3.1.1&lt;br /&gt;[9/182] Generating include/generated/zephyr/syscall_dispatch.c, include/generated/zephyr/syscall_exports_llext.c, syscall_weakdefs_llext.c, include/generated/zephyr/sys[153/182] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.1.1/modules/hal/nordic/nrfx/helpers/nrfx_flag3[154/182] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.1.1/modules/hal/nordic/nrfx/mdk/system_nrf5284[157/182] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.1.1/modules/hal/nordic/nrfx/drivers/src/nrfx_c[160/182] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.1.1/modules/hal/nordic/nrfx/drivers/src/nrfx_w[167/182] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.1.1/modules/hal/nordic/nrfx/helpers/nrfx_flag3[170/182] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.1.1/modules/hal/nordic/nrfx/helpers/nrfx_ram_c[172/182] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.1.1/modules/hal/nordic/nrfx/drivers/src/nrfx_c[173/182] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.1.1/modules/hal/nordic/nrfx/drivers/src/nrfx_n[174/182] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.1.1/modules/hal/nordic/nrfx/drivers/src/nrfx_w[182/182] Linking C executable zephyr\zephyr.elf&lt;br /&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 24168 B 28 KB 84.29%&lt;br /&gt; RAM: 18304 B 256 KB 6.98%&lt;br /&gt; IDT_LIST: 0 GB 32 KB 0.00%&lt;br /&gt;Generating files from D:/Nordic/myapps/workspace/thermostat_1/build/mcuboot/zephyr/zephyr.elf for board: nrf52840dk&lt;br /&gt;[23/23] Generating ../merged.hex &amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;It builds fine , 3.1.1 and toolchains 3.1.1 Nrf52840 DK board. (check your boards dir)&lt;/p&gt;
&lt;p&gt;Flashes AOK to DK board.&lt;/p&gt;
&lt;p&gt;[169/177] Building CXX object modules/connectedhomeip/CMakeFiles/matter-data-model.dir/C_/ncs/v3.1.1/modules/lib/matter/zzz_generated/app-common/app-common/zap-generate[177/177] Linking CXX executable zephyr\zephyr.elf&lt;br /&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 782284 B 982528 B 79.62%&lt;br /&gt; RAM: 157492 B 256 KB 60.08%&lt;br /&gt; IDT_LIST: 0 GB 32 KB 0.00%&lt;br /&gt;Generating files from D:/Nordic/myapps/workspace/thermostat_1/build/thermostat_1/zephyr/zephyr.elf for board: nrf52840dk&lt;br /&gt;image.py: sign the payload&lt;br /&gt;image.py: sign the payload&lt;br /&gt;[1/12] Performing build step for &amp;#39;mcuboot&amp;#39;&lt;br /&gt;[29/29] Linking C executable zephyr\zephyr.elf&lt;br /&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 24168 B 28 KB 84.29%&lt;br /&gt; RAM: 18304 B 256 KB 6.98%&lt;br /&gt; IDT_LIST: 0 GB 32 KB 0.00%&lt;br /&gt;Generating files from D:/Nordic/myapps/workspace/thermostat_1/build/mcuboot/zephyr/zephyr.elf for board: nrf52840dk&lt;br /&gt;[12/12] Generating ../merged.hex&lt;br /&gt;-- west flash: using runner nrfutil&lt;br /&gt;-- runners.nrfutil: reset after flashing requested&lt;br /&gt;-- runners.nrfutil: Flashing file: D:\Nordic\myapps\workspace\thermostat_1\build\merged.hex&lt;br /&gt;-- runners.nrfutil: Erasing address ranges touched by firmware&lt;br /&gt;-- runners.nrfutil: Programming image&lt;br /&gt;-- runners.nrfutil: Verifying image&lt;br /&gt;-- runners.nrfutil: Reset&lt;br /&gt;-- runners.nrfutil: Board(s) with serial number(s) 1050289493 flashed successfully.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;HTH&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I got the QR code from the Serial port, works fine&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>