<?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>Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120563/build-matter-light-bulb-using-zap-auto-generated-files-dynamically</link><description>Sorry for the inconvenience! 
 I have downloaded V2.8.0 nRF SDK, and I use this command to build light bulb project: 
 west build -p always --build-dir nrf/samples/matter/light_bulb/build -b nrf52840dk_nrf52840 nrf/samples/matter/light_bulb 
 It can build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Apr 2025 07:30:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120563/build-matter-light-bulb-using-zap-auto-generated-files-dynamically" /><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/533308?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 07:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5803f418-eeaf-4e49-b690-998acb144a41</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Chuan,&lt;/p&gt;
&lt;p&gt;Some files in the SDK samples were generated with an older version of the ZAP tool, and they are no longer needed, which is why they are not generated when running the ZAP tool in later versions. Since they are no longer needed, they will be removed from the samples. &lt;/p&gt;
&lt;p&gt;You can see which files are removed in this commit: &lt;a href="https://github.com/nrfconnect/sdk-nrf/commit/22789834d870df307b414d0ddf0dc801541684ca"&gt;https://github.com/nrfconnect/sdk-nrf/commit/22789834d870df307b414d0ddf0dc801541684ca&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/533288?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 03:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef22878d-a0f8-43d9-9413-ba489cd5ff75</guid><dc:creator>susepc</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sorry to bother you again: What do old files mean?&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;ldquo;&lt;span&gt;The developers will remove the &lt;strong&gt;old files&lt;/strong&gt; from the SDK.&lt;/span&gt;&amp;rdquo;&lt;br /&gt;BR&lt;/p&gt;
&lt;p&gt;Chuan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/532320?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 11:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06925f04-f4e6-4e40-b9e3-42032fa16dda</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Chuan,&lt;/p&gt;
&lt;p&gt;I asked the developers about this, and it looks like the files you mentioned were generated with an older version of the ZAP tool and are no longer used. The developers will remove the old files from the SDK.&lt;/p&gt;
&lt;p&gt;The developers have also added a --clear argument to zap-generate that removes old files: &lt;a href="https://github.com/nrfconnect/sdk-connectedhomeip/pull/599"&gt;https://github.com/nrfconnect/sdk-connectedhomeip/pull/599&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/532210?ContentTypeID=1</link><pubDate>Mon, 21 Apr 2025 09:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f370808-e4b8-4757-8074-89ce5417ac0c</guid><dc:creator>susepc</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks for your solution, it work well!&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Finally, I have another question：&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I see there are&amp;nbsp;9 files in the zap-generated folder, namely:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;&amp;nbsp;access.h&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; callback-stub.cpp&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; CHIPClientCallbacks.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; CHIPClusters.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; endpoint_config.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; gen_config.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; gen_tokens.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; IMClusterCommandHandler.cpp&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; PluginApplicationCallbacks.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;But when I use ZCL tool to generate files, only 4 files generate, namely:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;&amp;nbsp;access.h&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;&amp;nbsp;endpoint_config.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;&amp;nbsp;gen_config.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;&amp;nbsp;IMClusterCommandHandler.cpp&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Can you tell me why cause this difference?&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Besides, how can I generate other 5 files?&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Chuan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/531983?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2025 10:15:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8adaaa5-4b3e-4855-bc45-af5869843b27</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Chuan,&lt;/p&gt;
&lt;p&gt;Yes, I was able to build the light bulb sample on both Windows and Linux when omitting BYPASS_IDL by including the path to the light_bulb.matter IDL file in chip_configure_data_model():&lt;/p&gt;
&lt;p&gt;&lt;code&gt;IDL ${CMAKE_CURRENT_SOURCE_DIR}/src/light_bulb.matter&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Please note that I have not thoroughly tested the sample, only that it builds.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/531976?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2025 09:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d042bed-21ed-4af1-a643-c80e5281d66b</guid><dc:creator>susepc</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Great!&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I&amp;#39;ll have a try to use &amp;#39;python&amp;#39; instead of &amp;#39;python3&amp;#39;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Besides, can you build light bulb pass even though omit &amp;#39;&lt;span&gt;BYPASS_IDL&amp;#39;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Chuan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/531956?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2025 07:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5f7b31e-2736-4e67-bd12-30263485dee2</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Chuan,&lt;/p&gt;
&lt;p&gt;It can work by following the steps in one of my previous replies. I got it to work on both Windows and Linux.&lt;/p&gt;
&lt;p&gt;For installing zap-cli, you might have to use python instead of python3:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;python scripts/setup/nrfconnect/get_zap.py -l &amp;lt;location_path&amp;gt; -o&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" title="" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1744787446585v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;However, the recommended method is to generate the ZAP tools manually using the west zap generate command.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/531668?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 10:11:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96d0fefc-08f3-4428-a82a-62334e1f0d87</guid><dc:creator>susepc</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes, when omit &lt;span&gt;BYPASS_IDL, I&amp;#39;ll meet build error too.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; So Nordic do not support ZAP auto generate(&lt;span&gt;omit&amp;nbsp;&lt;/span&gt;&lt;span&gt;BYPASS_IDL&lt;/span&gt;) in the build flow? And user must use zap tool to generate files manually?&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Chuan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/531635?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 07:14:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5007b095-974a-45c0-8fde-01cb44be48e4</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="susepc"]What is &amp;#39;&amp;lt;location_path&amp;gt;&amp;#39; ?[/quote]
&lt;p&gt;&amp;lt;location_path&amp;gt; is where you want to install zap-cli.&lt;/p&gt;
[quote user="susepc"]When I run this command, there&amp;#39;s no result output, is it reasonable?[/quote]
&lt;p&gt;You should get an output showing which version you have installed if it is already installed or an output showing that it gets installed, like this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:300px;max-width:500px;" title="" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1000x600/__key/communityserver-discussions-components-files/4/pastedimage1744614711618v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;You can also see this in &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/protocols/matter/getting_started/tools.html#installing_the_zap_tool"&gt;Installing the ZAP tool&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Please note that this documentation is from nRF Connect SDK v2.6.2. This is because this is how the ZAP tool was installed previously. From v2.7.0 and on, the ZAP commands are provided as west commands. However, when testing, I found that not having zap-cli installed resulted in errors when trying to generate the files by removing BYPASS_IDL.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/531623?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 06:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcc1a0ca-1130-4ac2-8e16-04581e364da9</guid><dc:creator>susepc</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;What is &amp;#39;&amp;lt;location_path&amp;gt;&amp;#39; ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; When I run this command, there&amp;#39;s no result output, is it reasonable?&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;@PC21040223 MINGW64 /c/ncs/v2.8.0&lt;br /&gt;$ &lt;strong&gt;cd modules/lib/matter/&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;@PC21040223 MINGW64 /c/ncs/v2.8.0/modules/lib/matter ((v2.8.0))&lt;br /&gt;$ &lt;strong&gt;python3 scripts/setup/nrfconnect/get_zap.py -l zap_path -o&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;@PC21040223 MINGW64 /c/ncs/v2.8.0/modules/lib/matter ((v2.8.0))&lt;br /&gt;$&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/531342?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 11:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58a2812e-bb17-43c5-9f20-615c7e0a158f</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Chuan,&lt;/p&gt;
&lt;p&gt;When you remove BYPASS_IDL, the chip_configure_data_model() function tries to generate source files from a .matter IDL file, but it cannot find the .matter file. You must provide it using the IDL option, for example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;chip_configure_data_model(app
    INCLUDE_SERVER
    GEN_DIR ${CONFIG_NCS_SAMPLE_MATTER_ZAP_FILES_PATH}/zap-generated
    ZAP_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${CONFIG_NCS_SAMPLE_MATTER_ZAP_FILES_PATH}/light_bulb.zap
    IDL ${CMAKE_CURRENT_SOURCE_DIR}/src/light_bulb.matter
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please note that you need to have zap-cli installed, and the installed version must match the version used in the SDK you are using. If not, you will get an error when it tries to generate the zap files.&lt;br /&gt;You can install it by running the following in modules/lib/matter:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;python3 scripts/setup/nrfconnect/get_zap.py -l &amp;lt;location_path&amp;gt; -o&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/531278?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 07:50:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1d60f5a-d180-419b-9355-d4eebc08866b</guid><dc:creator>susepc</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks for your support!&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have omit BYPASS_IDL as blow:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;chip_configure_data_model(app&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INCLUDE_SERVER&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GEN_DIR ${CONFIG_NCS_SAMPLE_MATTER_ZAP_FILES_PATH}/zap-generated&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ZAP_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${CONFIG_NCS_SAMPLE_MATTER_ZAP_FILES_PATH}/light_bulb.zap&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;)&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; But meet build error:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;ninja: error: &amp;#39;../../src/default_zap/light_bulb.matter&amp;#39;, needed by &amp;#39;gen/app-codegen/cpp-app/app/PluginApplicationCallbacks.h&amp;#39;, missing and no known rule to make it
[11/23] Generating new Factory Data...
[INFO] Generating SPAKE2+ Verifier...
[WARNING] KEY password has not been provided. It means that DAC key is not encrypted.
[INFO] Validating JSON with schema...
[INFO] Validate OK
FAILED: _sysbuild/sysbuild/images/light_bulb-prefix/src/light_bulb-stamp/light_bulb-build&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Can you have a try? If the same case, could you please tell me the reason and how to fix this error?&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Chuan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build Matter Light Bulb using ZAP auto generated files dynamically</title><link>https://devzone.nordicsemi.com/thread/531174?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2025 12:13:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b3f9822-0ace-4f3b-ab35-7cfbfcbccb5c</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Chuan,&lt;/p&gt;
[quote user=""]But I noticed that bulb project used zap generated files, I want to auto generate&amp;nbsp;&lt;span&gt;zap&amp;nbsp;files in the build flow(that means generating code files by light_bulb.zap dynamically), could you tell me how can I do?&lt;/span&gt;[/quote]
&lt;p&gt;The zap files are generated with the &amp;quot;west zap generate&amp;quot; command. You cannot combine this and the west build command into one, but you can create a script that runs both commands.&lt;/p&gt;
[quote user=""]Furthermore, I have&amp;nbsp;noticed&amp;nbsp;the macro(&amp;quot;BYPASS_IDL&amp;quot;) in cmake file is TRUE, so it skip auto generate flow, how can I set it to FALSE?[/quote]
&lt;p&gt;You can omit BYPASS_IDL from chip_configure_data_model, and it should not bypass it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>