<?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 rollback happening after successful upgrade on nRF9160 (NCS 2.7.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125852/mcuboot-rollback-happening-after-successful-upgrade-on-nrf9160-ncs-2-7-0</link><description>I am debugging an issue where my nRF9160 (NCS 2.7.0) rolls back to the previous firmware after a seemingly successful upgrade. I am not getting enough logs from MCUboot to understand the rollback reason. 
 Symptoms: 
 
 
 Firmware upgrade completes successfully</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Dec 2025 12:26:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125852/mcuboot-rollback-happening-after-successful-upgrade-on-nrf9160-ncs-2-7-0" /><item><title>RE: MCUboot rollback happening after successful upgrade on nRF9160 (NCS 2.7.0)</title><link>https://devzone.nordicsemi.com/thread/555992?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2025 12:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7262020-1ef6-423f-9f25-fb58f34135cf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Purushotham,&lt;br /&gt;Could you let me know what exactly FOTA way you are doing ?&amp;nbsp;&lt;br /&gt;Did you base your application on one of the sample ? Did you try to test with FOTA samples we have ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you explain what exactly you meant by &amp;quot;Another thing that i noticed is if i cut a formal release with proper versions like v2.2.2 then it worked, if i just do an incremental build and upload that to my server and download/install then i see this behaviour of rolling back&amp;nbsp;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please tell how exactly you define the application version, did you use the VERSION file ? Or&amp;nbsp;CONFIG_FW_INFO_FIRMWARE_VERSION , as far as I know&amp;nbsp;CONFIG_FW_INFO_FIRMWARE_VERSION&amp;nbsp; may not related to MCUBoot but NSIB&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When you call&amp;nbsp;boot_write_img_confirmed () do you receive an error. Please try to capture a log when the image is rolled back.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot rollback happening after successful upgrade on nRF9160 (NCS 2.7.0)</title><link>https://devzone.nordicsemi.com/thread/555886?ContentTypeID=1</link><pubDate>Mon, 01 Dec 2025 14:34:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6320b03-66c3-455b-9024-dcb99b8f17b1</guid><dc:creator>purush123</dc:creator><description>&lt;p&gt;We use FOTA , We keep the firmware in our server and download the image and install it, With serial ( nrfjprog ) flashing it always work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using NCS2.7.0, i am not sure which log option is available in mcuboot, but i get some logs&lt;/p&gt;
&lt;p&gt;*** Using Zephyr OS v3.6.99-100befc70c74 ***&lt;br /&gt;s0_info-&amp;gt;version = 2, s1_info-&amp;gt;version = 2&lt;br /&gt;Attempting to boot slot 0.&lt;br /&gt;Attempting to boot from address 0x8200.&lt;br /&gt;Verifying signature against key 0.&lt;br /&gt;Hash: 0x45...79&lt;br /&gt;Firmware signature verified.&lt;br /&gt;Firmware version 2&lt;br /&gt;*** Booting Zephyr OS build v3.6.99-ncs2 ***&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is what i observed, In most cases i see device upgraded and it showed the new build details on the banner of console , Then immediately board rebooted and it went back to the old build. I am calling&amp;nbsp; boot_write_img_confirmed as the first call .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Another thing that i noticed is if i cut a formal release with proper versions like v2.2.2 then it worked, if i just do an incremental build and upload that to my server and download/install then i see this behaviour of rolling back , I am not sure which MCUBOOT configuration is causing it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot rollback happening after successful upgrade on nRF9160 (NCS 2.7.0)</title><link>https://devzone.nordicsemi.com/thread/555601?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2025 11:52:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75b87d50-3ca0-4da5-b6c9-34bcc38a6f69</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Purushotham,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What do you have in the log ? Have you enabled logging for MCUBoot ? I think by default it&amp;#39;s enabled. You should see some log at boot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How did you do DFU update ? I assume with serial ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;When you receive the new image, did the new image run ? Did you confirm the image or it only run on test ? If it run on test and then got a crash then reset the revert process will occur.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I don&amp;#39;t think it&amp;#39;s a firmware version issue because the firmware version is checked when the header is sent before the actual image is&amp;nbsp;sent. So if you see the image being transmitted most likely the firmware version check was passed.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Have you tested with DFU update before ? I assume&amp;nbsp; you are familiar with different boot mode test, confirm etc ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>