<?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>One application with MCUboot and overwrite image upgrades?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106222/one-application-with-mcuboot-and-overwrite-image-upgrades</link><description>I&amp;#39;m trying to build an app with MCUboot and overwrite-based image upgrades. 
 We use NCS v2.5.0, and in my experiments the nRF52840 DK board. 
 First I tried to test this with samples/application_development/sysbuild/with_mcuboot. It has CONFIG_BOOT_UPGRADE_ONLY</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Dec 2023 12:40:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106222/one-application-with-mcuboot-and-overwrite-image-upgrades" /><item><title>RE: One application with MCUboot and overwrite image upgrades?</title><link>https://devzone.nordicsemi.com/thread/458510?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 12:40:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d8a8797-7a1c-40e0-acf1-d0aed094b43d</guid><dc:creator>SebastianA</dc:creator><description>&lt;p&gt;That works fine! Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One application with MCUboot and overwrite image upgrades?</title><link>https://devzone.nordicsemi.com/thread/458502?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 12:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68bfd1a6-d04b-45b4-9fa0-0fc5074d9c33</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A solution, if not using sysbuild, is to create a &amp;#39;child_image&amp;#39; directory in your project source directory containing a Kconfig fragment for MCUBoot where you can place the specific Kconfig symbols for MCUBoot that you want to override. Expected naming and placement of the Kconfif files in the child image folder is illustrated&amp;nbsp;here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/nrf/config_and_build/multi_image.html#permanent-configuration-changes-to-child-images"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/nrf/config_and_build/multi_image.html#permanent-configuration-changes-to-child-images&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is a simple example if you want to build MCUBOOT with&amp;nbsp;CONFIG_BOOT_UPGRADE_ONLY=y:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5875.child_5F00_image.zip"&gt;devzone.nordicsemi.com/.../5875.child_5F00_image.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please note that you must perform a pristine build after adding the child image folder to the project for it to be&amp;nbsp;picked up by the build system. After the build is complete, you can verify that your settings were applied by checking the .config&amp;nbsp;file located in your build directory under mcuboot/zephyr/.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One application with MCUboot and overwrite image upgrades?</title><link>https://devzone.nordicsemi.com/thread/458456?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 08:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf4b8c69-aa7a-49fb-8ced-35e845602265</guid><dc:creator>SebastianA</dc:creator><description>&lt;p&gt;Yes, it should work with:&lt;br /&gt;west build -t zephyr/app_moved_test_update.hex&lt;br /&gt;or/and:&lt;br /&gt;west build -t zephyr/app_signed.hex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One application with MCUboot and overwrite image upgrades?</title><link>https://devzone.nordicsemi.com/thread/458449?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 07:54:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb71784f-9b57-491a-943e-4d58380d54c6</guid><dc:creator>Kuno.</dc:creator><description>&lt;p&gt;Can you choose to only build the app? So far when I do west build, it builds both the bootloader and the application.&lt;br /&gt;I would like to separate the development of these to&amp;nbsp;projects&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One application with MCUboot and overwrite image upgrades?</title><link>https://devzone.nordicsemi.com/thread/458442?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 07:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c984502-2fef-4bd2-9f96-8c3f483e1edc</guid><dc:creator>SebastianA</dc:creator><description>&lt;p&gt;I don&amp;#39;t know if west has support for it, but you can always flash the images yourself with nrfjprog.&lt;/p&gt;
&lt;p&gt;There is a build/zephyr/app_signed.hex to just install the app (in the primary area).&lt;br /&gt;&lt;br /&gt; build/zephyr/app_moved_test_update.hex is for the secondary area, so the bootloader can update it.&lt;/p&gt;
&lt;p&gt;build/zephyr/merged.hex file that contains both the bootloader and the app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One application with MCUboot and overwrite image upgrades?</title><link>https://devzone.nordicsemi.com/thread/458311?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 13:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4fcd7b2-bf63-485a-9ace-0f8b4c0780e8</guid><dc:creator>Kuno.</dc:creator><description>&lt;p&gt;I just figured out when I was flashing my application it was also building a default bootloader and flashing that. That&amp;#39;s why my Kconfigs was ignored.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Is it possible to build an application for a bootloader, without also building a default bootloader that is also flashed.? I would like these two builds to be seperate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One application with MCUboot and overwrite image upgrades?</title><link>https://devzone.nordicsemi.com/thread/458279?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 11:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e04a8db-6e03-4f6a-83ee-6009a3e17804</guid><dc:creator>Kuno.</dc:creator><description>&lt;p&gt;Hi Sebastian,&lt;br /&gt;I&amp;#39;m experiencing something similar.&lt;/p&gt;
&lt;p&gt;I have built a new bootloader with the extra configurations;&lt;br /&gt;`&lt;br /&gt;# Overwrite&lt;br /&gt;&lt;span&gt;CONFIG_BOOT_UPGRADE_ONLY&lt;/span&gt;&lt;span&gt;=y&lt;br /&gt;&lt;/span&gt;# Swap algorithm&lt;br /&gt;&lt;span&gt;CONFIG_BOOT_SWAP_USING_MOVE&lt;/span&gt;&lt;span&gt;=n&lt;br /&gt;&lt;/span&gt;`&lt;/p&gt;
&lt;p&gt;I&amp;#39;m building my app with config&lt;br /&gt;`&lt;br /&gt;&lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT&lt;/span&gt;&lt;span&gt;=y&lt;br /&gt;&lt;span&gt;CONFIG_MCUBOOT_SIGNATURE_KEY_FILE&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;zephyrproject/bootloader/mcuboot/root-rsa-2048.pem&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;`&lt;/div&gt;
&lt;div&gt;I also tried adding these configs to my app&lt;/div&gt;
&lt;div&gt;`&lt;br /&gt;CONFIG_MCUBOOT_BOOTLOADER_MODE_OVERWRITE_ONLY=y&lt;br /&gt;CONFIG_MCUBOOT_BOOTLOADER_NO_DOWNGRADE=y&lt;/div&gt;
&lt;div&gt;`&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;When I try to upgrade with the new application, the bootloader still use the move algorithm to swap. It seems like the config flags are ignored.&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>