<?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>Using a configuration file with mcuboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83657/using-a-configuration-file-with-mcuboot</link><description>SDK Environment: nRF Connect SDK v1.8.0 Target: Decawave DWM1001-DEV. This uses the nRF52832 
 I used \ncs\v1.8.0\bootloader\mcuboot\samples\zephyr\hello-world as a starting point and used ideas from here and here 
 I added 
 
 Just after cmake_minimum_required</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Jan 2022 01:29:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83657/using-a-configuration-file-with-mcuboot" /><item><title>RE: Using a configuration file with mcuboot</title><link>https://devzone.nordicsemi.com/thread/348148?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 01:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bf98d47-6f2e-417a-912e-04c3f4c918e5</guid><dc:creator>dwalton65</dc:creator><description>&lt;p&gt;Thanks Hung Bui&lt;/p&gt;
&lt;p&gt;&amp;quot;peripheral_hr_SMP.zip&amp;quot; builds ok for me.&lt;/p&gt;
&lt;p&gt;I went back to see what the difference between your example and mine was. Previously when &amp;quot;mcuboot.conf&amp;quot; was in the folder &amp;quot;child_image&amp;quot;, I had to add the contents of &amp;quot;\ncs\v1.8.0\bootloader\mcuboot\boot\zephyr\prj.conf&amp;quot; into the start of &amp;quot;mcuboot.conf&amp;quot; to get it to build. Now for some reason I don&amp;#39;t have to. Simply moving &amp;quot;mcuboot.conf&amp;quot; into the folder &amp;quot;child_image&amp;quot; is now working. I have no idea what has changed apart from my computer being restarted.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have attached the updated version of hello-world&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_2D00_world2.zip"&gt;devzone.nordicsemi.com/.../hello_2D00_world2.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using a configuration file with mcuboot</title><link>https://devzone.nordicsemi.com/thread/348008?ContentTypeID=1</link><pubDate>Mon, 17 Jan 2022 11:53:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76093ced-b2dc-4505-9f7a-9c7a68333c92</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi David,&amp;nbsp;&lt;br /&gt;Could you tried again with my example here.&amp;nbsp;&lt;br /&gt;Please edit mcuboot.conf to point to the absolute folder you copied the project to.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested with nrf52dk_nrf52832 board and it worked both in VS Code and when compile from command line.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_hr_5F00_SMP.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_hr_5F00_SMP.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using a configuration file with mcuboot</title><link>https://devzone.nordicsemi.com/thread/347891?ContentTypeID=1</link><pubDate>Sun, 16 Jan 2022 22:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fd9be96-c470-497c-9ead-86190cf5737d</guid><dc:creator>dwalton65</dc:creator><description>[quote userid="2121" url="~/f/nordic-q-a/83657/using-a-configuration-file-with-mcuboot/347770#347770"]Hi David,&amp;nbsp;&lt;br /&gt;I found what worked for me the smoothest is putting a mcu_boot.conf into the child_image folder in the project root folder to have an overlay over the original proj.conf&lt;br /&gt;Doing that I don&amp;#39;t need to define the path to the file.&amp;nbsp;[/quote]
&lt;p&gt;I removed the code &lt;code&gt;set(mcuboot_CONF_FILE ...&lt;/code&gt; from &amp;quot;CMakeLists.txt&amp;quot;&lt;/p&gt;
&lt;p&gt;Created the folder &amp;quot;child_image&amp;quot; and moved &amp;quot;mcuboot.conf&amp;quot; into it.&lt;/p&gt;
&lt;p&gt;The project now does not build. It appears that &amp;quot;mcuboot.conf&amp;quot; in the folder &amp;quot;child_image&amp;quot; has replaced &amp;quot;\ncs\v1.8.0\bootloader\mcuboot\boot\zephyr\prj.conf&amp;quot; instead of adding to it.&lt;/p&gt;
&lt;p&gt;For a test, I added the contents of &amp;quot;\ncs\v1.8.0\bootloader\mcuboot\boot\zephyr\prj.conf&amp;quot; into the start of &amp;quot;mcuboot.conf&amp;quot;. The problem now is that it is trying to find &amp;quot;test-key.pem&amp;quot; at &amp;#39;C:/ncs/v1.8.0/bootloader/mcuboot/test-key.pem&amp;#39; instead of in the project directory. Changing CONFIG_BOOT_SIGNATURE_KEY_FILE in &amp;quot;mcuboot.conf&amp;quot; to an absolute path fixed that &lt;code&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE=&amp;quot;/ncs/myapps/bootloader/key/test-key.pem&amp;quot;&lt;/code&gt;. The project now builds.&lt;/p&gt;
&lt;p&gt;Is there a way using this method for &amp;quot;mcuboot.conf&amp;quot; in the folder &amp;quot;child_image&amp;quot; to be in addition to &amp;quot;\ncs\v1.8.0\bootloader\mcuboot\boot\zephyr\prj.conf&amp;quot; instead of replacing it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using a configuration file with mcuboot</title><link>https://devzone.nordicsemi.com/thread/347770?ContentTypeID=1</link><pubDate>Fri, 14 Jan 2022 13:11:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:224d6154-9236-4678-88cd-9661073855fb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi David,&amp;nbsp;&lt;br /&gt;I found what worked for me the smoothest is putting a mcu_boot.conf into the child_image folder in the project root folder to have an overlay over the original proj.conf&lt;br /&gt;Doing that I don&amp;#39;t need to define the path to the file.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>