<?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 give child image add fragment(overlay.conf) via VScode gui?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89546/how-to-give-child-image-add-fragment-overlay-conf-via-vscode-gui</link><description>I use the vscode to creat a smp_svr sample project ,and how can i easily add fragment to child image(mcuboot)? 
 as the picture1, the files overlay-bt.conf overlay-FOTA.conf both are serve to the main image &amp;quot;build_bt_1&amp;quot; 
 
 and the picture2 ,the pcd.conf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jul 2022 13:06:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89546/how-to-give-child-image-add-fragment-overlay-conf-via-vscode-gui" /><item><title>RE: how to give child image add fragment(overlay.conf) via VScode gui?</title><link>https://devzone.nordicsemi.com/thread/376024?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 13:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b172b8aa-2fcc-491c-860e-e27db2fe975e</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;If you have &amp;quot;Created a new application from sample&amp;quot; and chose smp_svr. You should only need to add a folder named child_image and then a file e.g. mcuboot.conf. This file will act as fragment for the child image&lt;/p&gt;
&lt;p&gt;In this .conf file can add the needed KConfig configurations e.g. CONFIG_BOOT_UPGRADE_ONLY=y&lt;/p&gt;
&lt;p&gt;There is no need for the second folder in child_image, e.g.&amp;nbsp;&lt;span&gt;&amp;lt;sample&amp;gt;\child_image\mcuboot\prj.conf as described in the link in my previous comment:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;    # Note: The folder `child_image/&amp;lt;ACI_NAME&amp;gt;` is only need when configurations
    #       files must be used instead of the child image default configs.
    #       The append a child image default config, place the addetional settings
    #       in `child_image/&amp;lt;ACI_NAME&amp;gt;.conf`.&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Where ACI_NAME is mcuboot&amp;nbsp;in your case.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hopes this helps.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to give child image add fragment(overlay.conf) via VScode gui?</title><link>https://devzone.nordicsemi.com/thread/375649?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2022 02:08:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e7307c3-9f46-4569-b518-9e5d50e5bd54</guid><dc:creator>wangrj</dc:creator><description>&lt;p&gt;&lt;span&gt;thank you&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;&lt;span&gt;&amp;lt;IMAGE_NAME&amp;gt;_VARIABLEONE&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;is like&amp;nbsp; &amp;nbsp;&amp;quot;mcuboot_CONFIG_BOOT_UPGRADE_ONLY&amp;quot;&amp;nbsp; &amp;nbsp;, right?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;you answer &amp;quot;the CMake command as follows:&amp;quot; seems be hide&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to give child image add fragment(overlay.conf) via VScode gui?</title><link>https://devzone.nordicsemi.com/thread/375529?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 10:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0e05ec-a4f7-4d17-8976-c1d01ecfd4ef</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I think I understand what you want to achieve, however, there is no buttons in the VS code. You will need to follow the steps provided in the link I provided.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From the chapter&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#id6"&gt;Updating the build scripts&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;To make it possible to enable a child image from a parent image, you must include the child image in the build script.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;Then under &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#image-specific-variables"&gt;Image Specific Variables&lt;/a&gt;&amp;nbsp;it states:&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Variables in the parent image are not propagated to the child image, with the following exceptions:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Any variable named&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;IMAGE_NAME&amp;gt;_VARIABLEONE&lt;/span&gt;&lt;/code&gt;&amp;nbsp;in a parent image is propagated to the child image named&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;IMAGE_NAME&amp;gt;&lt;/span&gt;&lt;/code&gt;&amp;nbsp;as&amp;nbsp;&lt;code&gt;&lt;span&gt;VARIABLEONE&lt;/span&gt;&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;CMake build settings, such as&amp;nbsp;&lt;code&gt;&lt;span&gt;BOARD_DIR&lt;/span&gt;&lt;/code&gt;, build type, toolchain info, partition manager info, and similar are always passed to child images.&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;With these two mechanisms, you can set variables in child images from either parent images or the command line, and you can also set variables globally across all images. For example, to change the&amp;nbsp;&lt;code&gt;&lt;span&gt;VARIABLEONE&lt;/span&gt;&lt;/code&gt;&amp;nbsp;variable for the&amp;nbsp;&lt;code&gt;&lt;span&gt;childimageone&lt;/span&gt;&lt;/code&gt;&amp;nbsp;child image and the parent image, specify the CMake command as follows:&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to give child image add fragment(overlay.conf) via VScode gui?</title><link>https://devzone.nordicsemi.com/thread/375231?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2022 01:41:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f05e253-fa54-4f2d-abb8-7df6f8785b9a</guid><dc:creator>wangrj</dc:creator><description>&lt;p&gt;thanks for your help&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i know that can add some sentence to the&amp;nbsp;&lt;span&gt;&amp;lt;sample&amp;gt;\child_image\mcuboot\prj.conf , but the effect not i wonder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i want to creat a new file&amp;nbsp; for &amp;quot;build configuration -&amp;gt; kconfig fragments -&amp;gt; add fragment&amp;quot; , which can let new&amp;nbsp;colleague build a new project easily&amp;nbsp; ，the new file overlay.conf&amp;nbsp;&amp;nbsp;&amp;nbsp;contains the macro configuration that the parent image wants to pass to the child image&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to give child image add fragment(overlay.conf) via VScode gui?</title><link>https://devzone.nordicsemi.com/thread/375095?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 12:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9b36b88-b79c-4940-bc8d-b34a316c60c0</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#multi-image-builds"&gt;multi-image builds documentation&lt;/a&gt;. This is documentation in the latest version of nRF Connect SDK v2.0.0&lt;/p&gt;
&lt;p&gt;Adding a child image e.g. mcuboot, you can add folder&amp;nbsp;&amp;lt;sample&amp;gt;\child_image\mcuboot\prj.conf.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;&lt;em&gt;You can enable existing child images in the nRF Connect SDK by enabling the respective modules in the parent image and selecting the desired build strategy.&lt;/em&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Adding these to the CMakeLists.txt of the main image might be the correct path for you, as desribed under&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#id5"&gt;Defining and enabling a child image&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Let me know how that works for you.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>