<?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>nrF SDK 2.7 Matter-Light-Bulb Sample not Building for new ON/OFF Switch Endpoints</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117148/nrf-sdk-2-7-matter-light-bulb-sample-not-building-for-new-on-off-switch-endpoints</link><description>Hi All, 
 
 I am using nRF Connect SDK v2.7 + VsCode + NRF5340 DK and trying to add and extend matter-light-bulb sample. With &amp;#39; MA-onofflight &amp;#39; when I try to compile the project it gives the following errors: 
 In file included from /home/user/ncs/v2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Dec 2024 14:09:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117148/nrf-sdk-2-7-matter-light-bulb-sample-not-building-for-new-on-off-switch-endpoints" /><item><title>RE: nrF SDK 2.7 Matter-Light-Bulb Sample not Building for new ON/OFF Switch Endpoints</title><link>https://devzone.nordicsemi.com/thread/515283?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2024 14:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7215276-42a3-4d1d-ad8a-f12bee257882</guid><dc:creator>Jacky Ortega</dc:creator><description>&lt;p&gt;Much appreciated&amp;nbsp;for your help and recommendation. My query is now resolved and can be closed. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF SDK 2.7 Matter-Light-Bulb Sample not Building for new ON/OFF Switch Endpoints</title><link>https://devzone.nordicsemi.com/thread/515278?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2024 13:57:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01c4a3f7-c9b8-47b1-8acc-4b3579efda7e</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Jacky Ortega,&lt;/p&gt;
[quote user="Jacky Ortega"]Thank you very much. &lt;strong&gt;west zap-generate&lt;/strong&gt; worked &lt;strong&gt;perfectly &lt;/strong&gt; when using from $HOME/light_bulb i.e project directory.[/quote]
&lt;p&gt;Great to see!&lt;/p&gt;
[quote user="Jacky Ortega"]&lt;p&gt;&lt;br /&gt;&lt;strong&gt;[1]&lt;/strong&gt; Approach 1: Does not work:&lt;/p&gt;
&lt;p&gt;~/ncs/v2.7.0/modules/lib/&lt;strong&gt;matter/scripts/tools&lt;/strong&gt;/zap/run_zaptool.sh $HOME/light_bulb/src/light_bulb.zap&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;~/ncs/v2.7.0/modules/lib/&lt;strong&gt;matter/scripts/tools&lt;/strong&gt;/zap/generate.py $HOME/light_bulb/src/light_bulb.zap&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[2]&lt;/strong&gt; Approach 2: Does not &lt;strong&gt;seems&lt;/strong&gt; to work:&lt;/p&gt;
&lt;p&gt;When in&amp;nbsp;&amp;nbsp;$HOME/light_bulb directory and using directly &amp;#39;zap&amp;#39; command the tool opens from&lt;br /&gt;/home/user/ncs/v2.7.0/modules/lib/&lt;strong&gt;matter&lt;/strong&gt;/zap/zap-linux-x64/zap&lt;/p&gt;[/quote]
&lt;p&gt;The zap command method is outdated and were replaced by the west commands. The west commands ensures that the correct instance of the ZAP tool is called. They were &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/releases_and_maturity/releases/release-notes-2.7.0.html#matter"&gt;introduced in nRF Connect SDK v2.7.0&lt;/a&gt; to simplify the process for editing ZAP-files and generating data model files.&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: nrF SDK 2.7 Matter-Light-Bulb Sample not Building for new ON/OFF Switch Endpoints</title><link>https://devzone.nordicsemi.com/thread/514365?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 18:59:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09448844-7295-47e0-a4c8-f7301c99fd01</guid><dc:creator>Jacky Ortega</dc:creator><description>&lt;p&gt;HI&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/maria-gilje"&gt;Maria Gilje&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;Thank you very much. &lt;strong&gt;west zap-generate&lt;/strong&gt; worked &lt;strong&gt;perfectly &lt;/strong&gt; when using from $HOME/light_bulb i.e project directory.&lt;/p&gt;
&lt;p&gt;ZAP gets downloaded and executed from the following directory:&lt;br /&gt;&lt;strong&gt;ZAP installation directory:&lt;/strong&gt; /home/user/ncs/v2.7.0/modules/lib/matter/.zap-install&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;I have few questions related to several &lt;strong&gt;zap executable&lt;/strong&gt; present in various directories and there use cases.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;[1]&lt;/strong&gt; Approach 1: Does not work:&lt;/p&gt;
&lt;p&gt;~/ncs/v2.7.0/modules/lib/&lt;strong&gt;matter/scripts/tools&lt;/strong&gt;/zap/run_zaptool.sh $HOME/light_bulb/src/light_bulb.zap&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;~/ncs/v2.7.0/modules/lib/&lt;strong&gt;matter/scripts/tools&lt;/strong&gt;/zap/generate.py $HOME/light_bulb/src/light_bulb.zap&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[2]&lt;/strong&gt; Approach 2: Does not &lt;strong&gt;seems&lt;/strong&gt; to work:&lt;/p&gt;
&lt;p&gt;When in&amp;nbsp;&amp;nbsp;$HOME/light_bulb directory and using directly &amp;#39;zap&amp;#39; command the tool opens from&lt;br /&gt;/home/user/ncs/v2.7.0/modules/lib/&lt;strong&gt;matter&lt;/strong&gt;/zap/zap-linux-x64/zap&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;strong&gt;[3]&lt;/strong&gt; Approach 3:&amp;nbsp;Works perfectly&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ZAP installation directory:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;/home/user/ncs/v2.7.0/modules/lib/matter/.zap-install&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Using the following works perfectly:&lt;/p&gt;
&lt;p&gt;west zap-gui - For creating &amp;amp; editing the zap files.&lt;/p&gt;
&lt;p&gt;west zap-generate - For Generating the respective files.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Jacky Ortega&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF SDK 2.7 Matter-Light-Bulb Sample not Building for new ON/OFF Switch Endpoints</title><link>https://devzone.nordicsemi.com/thread/514263?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 13:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f5c0002-3c3b-4dc8-a437-acab89737322</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Jacky Ortega"]The default matter-light-bulb samples without adding &lt;strong&gt;endpoint-3(MA-ONOFF Light)&amp;nbsp;&lt;/strong&gt;builds and compiles on my system but as soon as I add endpoint-3 the error messages appear.[/quote]
&lt;p&gt;You need to run &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/protocols/matter/getting_started/tools.html#zap-generate_command"&gt;west zap-generate&lt;/a&gt; after you edit the .zap file. You can do this from the ZAP tool or from a terminal as shown in the link. &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: nrF SDK 2.7 Matter-Light-Bulb Sample not Building for new ON/OFF Switch Endpoints</title><link>https://devzone.nordicsemi.com/thread/514176?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 09:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa293602-d529-4822-9e7a-ebfae7ddd0fc</guid><dc:creator>Jacky Ortega</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/vthieu"&gt;Hieu&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;OS = Ubuntu 20.04&lt;br /&gt;VsCode = 1.94&lt;br /&gt;nRF-Connect Plugin + SDK v2.7&lt;br /&gt;&lt;br /&gt;The default matter-light-bulb samples without adding &lt;strong&gt;endpoint-3(MA-ONOFF Light)&amp;nbsp;&lt;/strong&gt;builds and compiles on my system but as soon as I add endpoint-3 the error messages appear.&lt;br /&gt;&lt;br /&gt;Please see my&lt;strong&gt; attached zap-file google-drive&lt;/strong&gt; link. There I have attached both &amp;#39;.zap&amp;#39; and &amp;#39;.matter&amp;#39; files. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF SDK 2.7 Matter-Light-Bulb Sample not Building for new ON/OFF Switch Endpoints</title><link>https://devzone.nordicsemi.com/thread/514154?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 07:51:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f2c26a3-9d6d-439c-82e2-901d30f9cc37</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Jacky Ortega,&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t encounter any such issue building the light_bulb sample. Here is my environment:&lt;/p&gt;
&lt;p&gt;Windows 10&lt;br /&gt;NCS v2.7.0&lt;br /&gt;Toolchain v2.7.0&lt;br /&gt;Sample:&amp;nbsp;C:\ncs\v2.7.0\nrf\samples\matter\light_bulb (&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v2.7.0/samples/matter/light_bulb"&gt;light_bulb&lt;/a&gt;)&lt;br /&gt;nRF Connect for VS Code v2024.11.75&lt;br /&gt;Built in-tree and out-of-tree&lt;br /&gt;Build target nrf5340dk/nrf5340/cpuapp&lt;br /&gt;Built with sysbuild&lt;/p&gt;
&lt;p&gt;The only difference is that I haven&amp;#39;t changed the .zap file from the template one. However, that shouldn&amp;#39;t cause the issue you wrote about.&lt;/p&gt;
&lt;p&gt;Could you provide some more details on how you built the sample? Where you put the application directory and OS version, for starter. Also, does it work if you build in-tree?&lt;/p&gt;
&lt;p&gt;To rule out long path issues, please also try with a shorter build directory name. I understand that this issue is more common on Windows, and you seem to be using Linux, but it doesn&amp;#39;t hurt to rule it out first.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>