<?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 Code generation questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123118/matter-code-generation-questions</link><description>Currently the Matter code generation process is a bit confusing to me. Part of the code needs to be generated before building, using west zap-generate. Another part of the code is generated during the build process. Why is this necessary? Wouldn&amp;#39;t it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Jul 2025 15:35:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123118/matter-code-generation-questions" /><item><title>RE: Matter Code generation questions</title><link>https://devzone.nordicsemi.com/thread/543234?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2025 15:35:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f144034d-88d4-490e-8fe2-696eb3284405</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]What is the difference between the .zap and .matter file? Do you need both? Which one do you need when?[/quote]
&lt;p&gt;Here is some documentation which covers .zap and .matter files:&amp;nbsp;&lt;a href="https://project-chip.github.io/connectedhomeip-doc/zap_and_codegen/code_generation.html"&gt;https://project-chip.github.io/connectedhomeip-doc/zap_and_codegen/code_generation.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is it always okay to just use west zap-generate or is it sometimes necessary to also use west zap-generate --full?[/quote]
&lt;p&gt;I can see that the argument is listed as an option for west zap-generate, but it is not in our documentation for &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/matter/getting_started/tools.html#zap-generate_command"&gt;west zap-generate&lt;/a&gt;. I can&amp;#39;t find any internal documentation where it is used either, so I think it is not relevant for nRF Connect SDK.&amp;nbsp;&lt;/p&gt;
[quote user=""]Does the zap file determine which Matter version is going to be used (using the featureLevel value)?[/quote]
&lt;p&gt;To my understanding, no. The Matter version is determined by the SDK version, see the full overview in the togglable table in the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/matter/index.html"&gt;Matter launch documentation page&lt;/a&gt;. The ZAP tool also needs to be the corresponding version, but this is handled for you when using west zap-gui from a Matter sample directory within the SDK.&amp;nbsp;&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>