<?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>MCUBoot rolling back to previous image after uploading new app binary, unless confirm only is choosen.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101274/mcuboot-rolling-back-to-previous-image-after-uploading-new-app-binary-unless-confirm-only-is-choosen</link><description>Hi! I&amp;#39;m developing using nrf52840DK and have an issue with DFU. When I&amp;#39;m uploading new app image and choose test and confirm, image is uploaded but after resetting DK, MCUBoot rolls back to previous image. When uploading an image the confirm only option</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jun 2024 12:43:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101274/mcuboot-rolling-back-to-previous-image-after-uploading-new-app-binary-unless-confirm-only-is-choosen" /><item><title>RE: MCUBoot rolling back to previous image after uploading new app binary, unless confirm only is choosen.</title><link>https://devzone.nordicsemi.com/thread/491110?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 12:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:453ef623-d6b2-426c-a568-984656123734</guid><dc:creator>Joanna</dc:creator><description>&lt;p&gt;Hi! I am having the exact same issue. Can you describe your solution?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot rolling back to previous image after uploading new app binary, unless confirm only is choosen.</title><link>https://devzone.nordicsemi.com/thread/434251?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 14:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e7c2800-de54-4a28-a4b4-772266c50718</guid><dc:creator>waatff</dc:creator><description>&lt;p&gt;I was comparing my project and sample you provided, turns out the smp_bt_register() was in wrong spot so new image couldn&amp;#39;t be confirmed. Thanks a lot for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot rolling back to previous image after uploading new app binary, unless confirm only is choosen.</title><link>https://devzone.nordicsemi.com/thread/434178?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 11:06:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cbd7fa1-de7b-41bb-bfdd-1bbebbdfec0a</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Hello,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Sorry I forgot to mention that in my response. Yes there is some change in configuring the mcumgnr with NCS v2.3.0 and above. I am attaching a sample with DFU support you can test this and see whether the same is happening or not. I recommend you to try using the nRF connect mobile Application as you can see the log. Also try to look the log from nRF side. Please&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/test_and_optimize/testing.html#id7:~:text=Code%20documentation%20site.-,How%20to%20connect%20with%20PuTTY,-%EF%83%81"&gt; refer this section &lt;/a&gt;for doing that.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_lbs_5F00_with_5F00_dfu.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_lbs_5F00_with_5F00_dfu.zip&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot rolling back to previous image after uploading new app binary, unless confirm only is choosen.</title><link>https://devzone.nordicsemi.com/thread/433737?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 14:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee97791b-7a7b-4c6a-ae31-7236f3f09946</guid><dc:creator>waatff</dc:creator><description>&lt;p&gt;Isn&amp;#39;t the provided sample created to work with previous ncs versions as in newer versions groups shouldn&amp;#39;t be registered manually?&lt;br /&gt;I had a problem with registering groups a while ago and got such answer.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99052/undefined-reference-to-os-and-img-_mgmt_register_group-while-trying-to-add-dfu-to-peripheral_lbs-sample"&gt;Undefined reference to os and img _mgmt_register_group while trying to add DFU to peripheral_lbs sample&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot rolling back to previous image after uploading new app binary, unless confirm only is choosen.</title><link>https://devzone.nordicsemi.com/thread/433701?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 13:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5753289b-0285-45e3-8f9f-b2ddcf1f0c6f</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please test &lt;a title="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_ble" href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_ble" rel="noopener noreferrer" target="_blank"&gt;this sample&lt;/a&gt; from my colleague and see whether the same is happening or not? If it&amp;#39;s the same please share a minimal project So that I can reproduce the issue here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot rolling back to previous image after uploading new app binary, unless confirm only is choosen.</title><link>https://devzone.nordicsemi.com/thread/433432?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 11:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c7c2363-2eff-48c8-81e4-de67a71fd6e9</guid><dc:creator>waatff</dc:creator><description>&lt;p&gt;I&amp;#39;m currently using ncs v2.3.0. I test it by changing the device name in prj.conf. When I&amp;#39;m trying to upload new image via nrf connect for mobile, choosing test and confirm, the app gets stuck at &amp;#39;validating&amp;#39; while in the same time the device automatically reboots with new image. Device&amp;#39;s name changes accordingly to new image config, but then after manually rebooting device, mcuboot has swap type revert and goes back to an old image, which can be tested by looking at device&amp;#39;s name. Changes between old and new image are really simple, like disabling passkey.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot rolling back to previous image after uploading new app binary, unless confirm only is choosen.</title><link>https://devzone.nordicsemi.com/thread/433409?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 09:26:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76711c18-404f-4660-98fc-0e71e2bfbb29</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you share the SDK version you are trying with? Do you have any logs to confirm that the &amp;nbsp;MCUBoot rolls back to previous image, or how do you test that the old image is active after an update?&amp;nbsp;&lt;/p&gt;
[quote user=""]am I doing something wrong or should I add any &amp;quot;confirm image&amp;quot; callback manually in the code?[/quote]
&lt;p&gt;You don&amp;#39;t need to add anything inside the code but this might be an issue with the new images (sometimes broken) and that&amp;#39;s the reason mcuboot is rolling back to old image. By giving the tag &amp;quot;confirm&amp;quot; the option to revert is not given to mcuboot. See the section &lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/mcuboot/design.html#:~:text=ram%20and%20executed.-,boot%20swap%20types,-%ef%83%81" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html#:~:text=RAM%20and%20executed.-,Boot%20swap%20types,-%EF%83%81" rel="noopener noreferrer" target="_blank"&gt;Boot swap types&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>