<?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 light switch</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117970/matter-light-switch</link><description>example Matter_light_switch in vs code 
 version using nrf connect sdk -&amp;gt; v2.8.0 
 manage tool-chain version v2.8.0 
 nrf52840dk 
 getting error while building code 
 
 
 Executing task: nRF Connect: Build: light_switch_5/light_switch_5 (active) 
 Building</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jan 2025 13:43:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117970/matter-light-switch" /><item><title>RE: matter light switch</title><link>https://devzone.nordicsemi.com/thread/518452?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 13:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1184d0da-8626-4463-89b1-f3937b9f40c5</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Prajwal Tayade"]&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0272.Screenshot-from-2025_2D00_01_2D00_13-19_2D00_07_2D00_54.png" /&gt;[/quote]
&lt;p&gt;This build configuration is for the nRF21540 DK, and the Matter light switch sample does not support that board out of the box. If you had the same build target in your initial post, that explains the failed build.&lt;/p&gt;
[quote user="Prajwal Tayade"]building logs for above configuration :-[/quote][quote user="Prajwal Tayade"]&lt;p&gt;this are the error showing :-&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1667.Screenshot-from-2025_2D00_01_2D00_13-19_2D00_12_2D00_25.png" /&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I see several references to PM_FACTORY_DATA_* in both the problems tab and the build log.&lt;/p&gt;
&lt;p&gt;In the build log the first occurence is PM_FACTORY_DATA_ADDRESS on line 142:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;../../../../../ncs/v2.9.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:34:30: error: &amp;#39;PM_FACTORY_DATA_ADDRESS&amp;#39; was not declared in this scope; did you mean &amp;#39;FACTORY_DATA_ADDRESS&amp;#39;?
   34 | #define FACTORY_DATA_ADDRESS PM_FACTORY_DATA_ADDRESS
      |                              ^~~~~~~~~~~~~~~~~~~~~~~&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is expected because there is no pm_static.yml for the board target, nrf21540dk/nrf52840. You need to modify the project to use nRF21540DK as the board, or build for the nRF52840DK if that is the hardware you are using. The build target for the nRF52840DK is nrf52840dk/nrf52840.&lt;/p&gt;
&lt;p&gt;If it is an nRF21540DK you are using you at least need to create a pm_static for the nRF21540DK, but I&amp;#39;m not sure if that is sufficient.&lt;/p&gt;
[quote user=""]version using nrf connect sdk -&amp;gt; v2.8.0&amp;nbsp;[/quote]
&lt;p&gt;Also, I will assume that you upgraded to nRF Connect SDK v2.9.0 between your initial post and your reply since your logs have different versions printed. No issue with that, I am only including it for completeness.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter light switch</title><link>https://devzone.nordicsemi.com/thread/518166?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 13:49:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1559dd03-287f-441a-b24c-863ddd311b3a</guid><dc:creator>Prajwal Tayade</dc:creator><description>&lt;p&gt;matter light switch&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2025_2D00_01_2D00_13-19_2D00_07_2D00_54.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;building logs for above configuration :-&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/light_5F00_switch_5F00_build_5F00_log.txt"&gt;devzone.nordicsemi.com/.../light_5F00_switch_5F00_build_5F00_log.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this are the error showing :-&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2025_2D00_01_2D00_13-19_2D00_12_2D00_25.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you changed anything from the default light switch sample?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter light switch</title><link>https://devzone.nordicsemi.com/thread/518138?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 12:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:786d2824-3dc5-4343-a3b6-4fb324693b83</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What is your build configuration?&lt;/p&gt;
&lt;p&gt;Have you changed anything from the default light switch sample?&lt;/p&gt;
&lt;p&gt;Also, next time you share build logs and code on DevZone, please use the Insert-&amp;gt;Code option.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>