<?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>How to use CMakePresets with west and sysbuild in NCS v2.7.0?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121073/how-to-use-cmakepresets-with-west-and-sysbuild-in-ncs-v2-7-0</link><description>I was following instructions from this and this post, but I&amp;#39;m not yet able to build with the following combination: CMakePresets.json + west + sysbuild. 
 I&amp;#39;m using this west command in a nRF Connect command line on v2.7.0: 
 west build -d ${targetDir</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Apr 2025 19:42:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121073/how-to-use-cmakepresets-with-west-and-sysbuild-in-ncs-v2-7-0" /><item><title>RE: How to use CMakePresets with west and sysbuild in NCS v2.7.0?</title><link>https://devzone.nordicsemi.com/thread/533470?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 19:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43afe63b-2ff4-488c-9eef-640b6b7a66db</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="koos"]build it with&amp;nbsp;&lt;code&gt;west build --board=nrf52840dk/nrf52840 -- --preset build&lt;/code&gt;[/quote]
&lt;p&gt;Try this command:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;west build --board=nrf52840dk/nrf52840&amp;nbsp;&lt;/span&gt;--pristine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CMakePresets with west and sysbuild in NCS v2.7.0?</title><link>https://devzone.nordicsemi.com/thread/533468?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 19:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d7ee632-9676-49f5-a320-ec1307960dbf</guid><dc:creator>koos</dc:creator><description>&lt;p&gt;I see, but that was four months ago, while the release notes of the April 2025&amp;nbsp;version of the nRF Connect for VS Code extension mention the following:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Added support for CMake presets for sysbuild configurations.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/release_notes/connect/2025.4.106.html"&gt;https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/release_notes/connect/2025.4.106.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CMakePresets with west and sysbuild in NCS v2.7.0?</title><link>https://devzone.nordicsemi.com/thread/533466?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 19:18:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb3f8ea2-c17f-420a-89b4-2f80f2d00813</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;See&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/117612/cmakepresets-json-how-to-select-board-target-and-enable-sysbuild/516611"&gt;&amp;nbsp;my colleague&amp;#39;s answer this post&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Devs say that Sysbuild configuration in&amp;nbsp;CMakePresets.json&amp;nbsp;is not supported yet. We are not able to give any estimates for potential support of this.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CMakePresets with west and sysbuild in NCS v2.7.0?</title><link>https://devzone.nordicsemi.com/thread/533465?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 19:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46d4057e-d809-4294-877a-b8cfba52ab6d</guid><dc:creator>koos</dc:creator><description>&lt;p&gt;I double checked and it&amp;nbsp;can be&amp;nbsp;reproduced by&amp;nbsp;following these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;open&amp;nbsp;the hello_world sample&lt;/li&gt;
&lt;li&gt;add a build configuration&amp;nbsp;using the&amp;nbsp;vscode extension and leave everything&amp;nbsp;at default settings&lt;/li&gt;
&lt;li&gt;use the &amp;quot;Save Configuration as Preset&amp;quot; option&lt;/li&gt;
&lt;li&gt;build it with&amp;nbsp;&lt;code&gt;west build --board=nrf52840dk/nrf52840 -- --preset build&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;the build fails&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CMakePresets with west and sysbuild in NCS v2.7.0?</title><link>https://devzone.nordicsemi.com/thread/533464?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 19:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:443cedd5-ac05-4ce8-9941-e535a6382b08</guid><dc:creator>koos</dc:creator><description>&lt;p&gt;Oh that&amp;#39;s indeed confusing, but that&amp;#39;s not the issue, it&amp;#39;s just a warning somehow, cause it does actually detect the board (when it uses the parent/child method).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So if I add the &amp;quot;-b &amp;lt;board_name&amp;gt;&amp;quot; command, that first warning goes away, but the&amp;nbsp;CMake error is still the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CMakePresets with west and sysbuild in NCS v2.7.0?</title><link>https://devzone.nordicsemi.com/thread/533460?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 18:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c6b1790-4216-46b9-b227-2cbdae210f42</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Add &amp;quot;-b &amp;lt;board_name&amp;gt;&amp;quot; to the command.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What board are you using?&amp;nbsp;If you are using nRF52840DK, the command would be&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf52840dk_nrf52840 -d ${targetDir} --sysbuild -- --preset ${presetName}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CMakePresets with west and sysbuild in NCS v2.7.0?</title><link>https://devzone.nordicsemi.com/thread/533459?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 18:42:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7b5eeba-0e9a-43d4-8057-83da0c5803c7</guid><dc:creator>koos</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Forgot to mention, but I already tried that, it gives me the following error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;WARNING: This looks like a fresh build and BOARD is unknown; so it probably won&amp;#39;t work. To fix, use --board=&amp;lt;your-board&amp;gt;.
Note: to silence the above message, run &amp;#39;west config build.board_warn false&amp;#39;
-- west build: generating a build system
CMake Error: Could not read presets from /opt/nordic/ncs/v2.7.0/zephyr/share/sysbuild:
File not found: /opt/nordic/ncs/v2.7.0/zephyr/share/sysbuild/CMakePresets.json
FATAL ERROR: command exited with status 1: /opt/homebrew/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/f8037e9b83/opt/python@3.9/bin/python3.9 -B/Users/koos/Documents/projects/***/***_fw/app/build_release_test -GNinja --preset build_***_release -S/opt/nordic/ncs/v2.7.0/zephyr/share/sysbuild -DAPP_DIR:PATH=/Users/koos/Documents/projects/***/***_fw/app&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How did you get that command to work?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Koos&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CMakePresets with west and sysbuild in NCS v2.7.0?</title><link>https://devzone.nordicsemi.com/thread/533458?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 18:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65fb2f26-21bd-4bb3-b46a-3e3132c7ad27</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;I&amp;#39;m using this west command in a nRF Connect command line on&amp;nbsp;v2.7.0:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;west build -d ${targetDir} -- --preset ${presetName}&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Add &amp;quot;&lt;span&gt;--sysbuild&amp;quot; into your command as&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -d ${targetDir} --sysbuild -- --preset ${presetName}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;See&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_sysbuild.html#building_with_sysbuild"&gt;Building with sysbuild&lt;/a&gt;&amp;nbsp;documentation.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>