<?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>After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119311/after-upgrading-mcuboot-the-device-crashes-upon-power-up</link><description>hi, 
 After upgrading mcuboot from NCS 2.6.1 to NCS 2.9.0, the upgrade file is downloaded, and the device restarts and runs normally. The mcuboot version number and active slot are updated as expected. However, when the device is powered off and then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Mar 2025 21:27:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119311/after-upgrading-mcuboot-the-device-crashes-upon-power-up" /><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/528936?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 21:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2119946f-aadb-49cb-8fa6-feb12fb69ba4</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;This is a follow-up for future readers of this case.&lt;/p&gt;
&lt;p&gt;The issue is that there is a feature in&amp;nbsp;NSIB and MCUboot where MCUboot can use the crypto library in NSIB.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This feature is enabled by default when using Sysbuild (Ref&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.9.0/sysbuild/CMakeLists.txt#L467-L472"&gt;this&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/v2.1.0-ncs4/boot/zephyr/external_crypto.conf"&gt;this&lt;/a&gt;).&amp;nbsp;&lt;br /&gt;In NCS v2.6.1,&amp;nbsp;Sysbuild isn&amp;#39;t the default build method, and it isn&amp;#39;t enabled.&amp;nbsp;B0 and MCUboot are built without supporting this feature.&lt;br /&gt;In NCS v2.9.0, Sysbuild is the default method, and MCUboot is built in a way that&amp;nbsp;needs this feature.&lt;/p&gt;
&lt;p&gt;When the v2.9.0 MCUboot is flashed onto a device with default v2.6.1&amp;nbsp;NSIB, it&amp;nbsp;cannot find the crypto library it needs and therefore fails to start.&lt;br /&gt;During the first reset where MCUboot still works that you observe, the MCUboot running is actually the old v2.6.1 one.&lt;br /&gt;During this reset, it swaps the MCUboot from secondary slot into&amp;nbsp;position. The new v2.9.0 MCUboot only runs (and fails) from the second reset.&lt;/p&gt;
&lt;p&gt;Currently, the&amp;nbsp;MCUboot-use-b0-crypto feature is always&amp;nbsp;enabled by default&amp;nbsp;in a NSIB+MCUboot+Sysbuild setup.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For projects that need to upgrade MCUboot to a system without B0 external crypto support, developers can&amp;nbsp;comment out this CMake section as a workaround:&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.9.0/sysbuild/CMakeLists.txt#L467-L472"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.9.0/sysbuild/CMakeLists.txt#L467-L472&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Another workaround is to build&amp;nbsp;with the old parent-child multi-image system instead of Sysbuild.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The issue has been reported, and a fix will be done.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/527535?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 08:30:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2d23f2a-cd77-4373-941c-b221bf5517d5</guid><dc:creator>Harvey Zheng</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to&amp;nbsp;&lt;span&gt;follow up in the new ticket.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/527533?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 08:27:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3513921-0b43-4652-97c6-5edb7df237bb</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you want to follow up in the new ticket or here?&amp;nbsp;I am trying to confirm a few things before replying to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/527517?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 07:33:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a0fd056-a9ab-45ff-b65b-a5a5022deed2</guid><dc:creator>Harvey Zheng</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For some reason, I resubmitted a private ticket.&amp;nbsp;It can be seen&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support/342367"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div id="gtx-trans" style="left:328px;position:absolute;top:6px;"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/527090?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 08:11:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0234da12-a5a6-449d-a4d6-435dcb727b9a</guid><dc:creator>Harvey Zheng</dc:creator><description>&lt;p&gt;A bit of additional information:&lt;br /&gt;I compared the &lt;strong&gt;.config&lt;/strong&gt; files generated by NCS2.6.1 MCUBoot and NCS2.9.0 MCUBoot. They seem to use different crypto, this is because &lt;strong&gt;bootloader\mcuboot\boot\zephyr\external_crypto.conf&lt;/strong&gt; was merged when compiling NCS2.9.0, which wasn&amp;#39;t there when NCS2.6.1 was build!&lt;/p&gt;
&lt;p&gt;Will this affect B0&amp;#39;s validation of MCUBoot?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1741853394319v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7433.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/82252.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/527087?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 07:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:312916a8-ba59-4e04-a967-2a4172dde3f6</guid><dc:creator>Harvey Zheng</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/119311/after-upgrading-mcuboot-the-device-crashes-upon-power-up/527082"]I forgot to mention. These should be configured in the MCUboot image only.[/quote]
&lt;p&gt;Since enabling DEBUG Logging in NCS2.6.1 MCUBoot would take up a lot of space, after trying it out I have not enabled it in the NCS2.6.1 example for now, and I will try to change the partition size if necessary.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;I had an important discovery in today&amp;#39;s test, and synchronize it here&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I set the following KCONFIG in the &lt;span style="color:#ff0000;"&gt;NCS2.6.1 B0&lt;/span&gt; configuration to &lt;span style="color:#ff0000;"&gt;y&lt;/span&gt; and it then successfully upgraded NCS2.6.1 MCUBoot to NCS2.9.0 MCUBoot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BL_ROT_VERIFY_EXT_API_ENABLED=y
CONFIG_BL_SHA256_EXT_API_ENABLED=y
CONFIG_BL_SECP256R1_EXT_API_ENABLED=y
CONFIG_BL_VALIDATE_FW_EXT_API_ENABLED=y
CONFIG_EXT_API_PROVIDE_EXT_API_ENABLED=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The screenshot is the successful upgrade logging after I modified NCS2.6.1 B0.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_014F1A4EAE5FE14F2A62FE565F00_1741851083347.png" /&gt;&lt;/p&gt;
&lt;p&gt;There are two questions about this:&lt;br /&gt;1. will these KCONFIG options have any effect on the upgrade? I&amp;#39;m guessing it will have an effect on mcuboot firmware validation?&lt;br /&gt;2. In the products we have produced, these KCONFIG options are disabled and B0 cannot be upgraded. I&amp;#39;ve tried setting the above options to n in NCS2.9.0 B0 to ensure consistency with the NCS2.6.1 example, but this causes it to stay at B0 after powering up, and not be able to jump to MCUBoot, which looks like the same phenomenon as the NCS2.6.1 MCUBoot upgrade to NCS2.9.0 failing.&amp;nbsp;&lt;strong&gt;So how can I upgrade MCBoot to NCS2.9.0 without updating NCS2.6.1 B0?&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/527082?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 06:42:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d7eda6f-ef7c-47ec-bfb4-08be0d8a277f</guid><dc:creator>Hieu</dc:creator><description>[quote user="Magdalena"]&lt;blockquote&gt;&lt;div&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/119311/after-upgrading-mcuboot-the-device-crashes-upon-power-up/527049"&gt;Hieu said:&lt;/a&gt;&lt;/div&gt;&lt;div&gt;CONFIG_LOG=y&lt;br /&gt;CONFIG_LOG_MODE_DEFERRED=y&lt;br /&gt;CONFIG_LOG_DEFAULT_LEVEL=4&lt;br /&gt;CONFIG_MULTITHREADING=y&lt;br /&gt;CONFIG_MCUBOOT_LOG_LEVEL_DBG=y&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;
&lt;p&gt;I will try it for more helpful logging, thank you!&lt;/p&gt;[/quote]
&lt;p&gt;I forgot to mention. These should be configured in the MCUboot image only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/527072?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 03:58:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:735e5b8c-1e7e-48bc-8998-9ff8f4e5e6ba</guid><dc:creator>Harvey Zheng</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/119311/after-upgrading-mcuboot-the-device-crashes-upon-power-up/527049"]Is the screenshot with logging from a failure case?[/quote]
&lt;p&gt;Yes, all failed log messages are from two attachments tested on nRF9160DK: &lt;strong&gt;ncs2.6.1.zip and ncs2.9.0.zip&lt;/strong&gt;&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/119311/after-upgrading-mcuboot-the-device-crashes-upon-power-up/527049"]CONFIG_LOG=y&lt;br data-immersive-translate-walked="cd6cc601-3f69-4408-85cd-ab7412f2a704" /&gt;CONFIG_LOG_MODE_DEFERRED=y&lt;br data-immersive-translate-walked="cd6cc601-3f69-4408-85cd-ab7412f2a704" /&gt;CONFIG_LOG_DEFAULT_LEVEL=4&lt;br data-immersive-translate-walked="cd6cc601-3f69-4408-85cd-ab7412f2a704" /&gt;CONFIG_MULTITHREADING=y&lt;br data-immersive-translate-walked="cd6cc601-3f69-4408-85cd-ab7412f2a704" /&gt;CONFIG_MCUBOOT_LOG_LEVEL_DBG=y[/quote]
&lt;p&gt;I will try it for more helpful logging, thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/527049?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 20:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1041cb4-ff6d-49c9-b5d7-07a36d024ac2</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Harvey,&lt;/p&gt;
&lt;p&gt;Is the screenshot with logging from a failure case?&lt;/p&gt;
&lt;p&gt;From the screenshot in your first reply, it looks like you are running without MCUboot logging at all. There seem to be only logs from the application and NSIB. There might be clue in MCUboot logging. Could you please enable log level debug for MCUboot?&lt;/p&gt;
&lt;p&gt;You will need these configurations:&lt;/p&gt;
&lt;p&gt;CONFIG_LOG=y&lt;br /&gt;CONFIG_LOG_MODE_DEFERRED=y&lt;br /&gt;CONFIG_LOG_DEFAULT_LEVEL=4&lt;br /&gt;CONFIG_MULTITHREADING=y&lt;br /&gt;CONFIG_MCUBOOT_LOG_LEVEL_DBG=y&lt;/p&gt;
&lt;p&gt;Another thing I want to consider is looking at hex dumps. It might be of interest to dump the entire memory&amp;nbsp;at these points and track the changes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Before new MCUboot download&lt;/li&gt;
&lt;li&gt;After new MCUboot download, before first reset&lt;/li&gt;
&lt;li&gt;Right after first reset&lt;/li&gt;
&lt;li&gt;Right after second reset&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/526466?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 03:59:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dd52bff-4f5b-4dcc-890f-79ab41a14778</guid><dc:creator>Harvey Zheng</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/119311/after-upgrading-mcuboot-the-device-crashes-upon-power-up/526318"]Looking at the examples you sent, pm_static.yml is mostly commented out.[/quote]
&lt;p&gt;Yes, I only defined the location of the mcuboot secondary partition, the others are generated at build time, and I&amp;#39;ve compared the partitions of the two examples using memory report, and they are exactly the same.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/119311/after-upgrading-mcuboot-the-device-crashes-upon-power-up/526318"]A pm_static.yml that defined all DFU partitions is required. Try to use the same pm_static.yml for both projects. Does DFU work then?[/quote]
&lt;p&gt;I tried to use the exact same pm_static.yml in both examples, which defines all partitions, but still the upgrade fails with the same occurrences.&lt;/p&gt;
&lt;p&gt;On this basis, I tried to keep the B0 configuration of the NCS 2.9.0 example &lt;strong&gt;consistent&lt;/strong&gt; with the B0 configuration of the NCS 2.6.1 example, mainly by setting the following KCONFIG.&amp;nbsp;Then flash the &lt;strong&gt;NCS2.9.0 example directly&lt;/strong&gt;, and the result is the same, it seems to be unable to start MCUBoot after running B0.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BL_ROT_VERIFY_EXT_API_ENABLED=n
CONFIG_BL_SHA256_EXT_API_ENABLED=n
CONFIG_BL_SECP256R1_EXT_API_ENABLED=n
CONFIG_BL_VALIDATE_FW_EXT_API_ENABLED=n
CONFIG_EXT_API_PROVIDE_EXT_API_ENABLED=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_014F1A4EAE5FE14F2A62FE565F00_17415790855759.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/526318?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 10:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d6bcdf9-c36b-4875-a64b-1728b46af148</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Looking at the examples you sent, pm_static.yml is mostly commented out.&lt;/p&gt;
&lt;p&gt;A pm_static.yml that defined all DFU partitions is required. Try to use the same pm_static.yml for both projects. Does DFU work then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/526286?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 07:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1612ced1-67da-4c56-9b70-53666aad4ddf</guid><dc:creator>Harvey Zheng</dc:creator><description>&lt;p&gt;Hi &lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sigurd-hellesvik" data-immersive-translate-walked="d9e38ae3-93d5-45bc-afe8-07273eb4b3e8"&gt;Sigurd Hellesvik&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Is there any progress on this issue so far and what further information is needed from my side?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/525856?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 03:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6af905e1-06e4-462e-84df-0674ac3cca60</guid><dc:creator>Harvey Zheng</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I took over the problem and trying to fix him.&amp;nbsp;I&amp;#39;ve reorganized the problem points.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Problem Description&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Our application uses MCUBoot as an upgradeable bootloader in the order NSIB(B0) -&amp;gt; MCUBoot -&amp;gt; Application, now we adapted NCS2.9.0 and tried to upgrade MCUBoot from NCS2.6.1 to NCS2.9.0, after the device receives the upgrade package, confirms it and &lt;strong&gt;reset&lt;/strong&gt;, the log shows that MCUBoot has carried the new upgrade package to the S1 partition, and the S1 partition version read on the application is 2. However, when I &lt;strong&gt;reset the device again&lt;/strong&gt;, the program fails to run to the application, and it seems that the problem has already occurred at B0 or MCUBoot.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Examples&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I wrote two examples using NCS2.6.1 and NCS2.9.0 and reproduced it on the &lt;strong&gt;nRF9160DK&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Differences between the two test examples:&lt;/p&gt;
&lt;p&gt;- &lt;strong&gt;NCS2.6.1 examples :&lt;/strong&gt; Sysbuild is not used.&lt;br /&gt;- &lt;strong&gt;NCS2.9.0 examples :&lt;/strong&gt; Sysbuild is used.&lt;/p&gt;
&lt;p&gt;Differences between NCS2.6.1 examples and my application:&lt;/p&gt;
&lt;p&gt;- &lt;strong&gt;NCS2.6.1 Sample:&lt;/strong&gt; B0 and MCUBoot configurations are basically the same as my application, the first difference is that the MCUBoot partition size is 0xBE00 to be consistent with NCS2.9.0&amp;nbsp;example(so far testing has shown that MCUBoot sizes of either 0xBE00 or 0xC000 both cause the above problems); The second difference is that the upgrade package is transmitted using the MCUMGR UART.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Recurrence process and log&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;&lt;span&gt;Compile&amp;nbsp;&lt;/span&gt;&lt;em&gt;NCS2.6.1 examples&lt;/em&gt;&lt;span&gt;&amp;nbsp;with NCS2.6.1 SDK&lt;/span&gt;, program into nRF9160DK.&lt;/p&gt;
&lt;p&gt;2. Compile &lt;em&gt;NCS2.9.0 examples&lt;/em&gt; with NCS2.9.0 SDK.&lt;/p&gt;
&lt;p&gt;3. The &lt;strong&gt;uart1&lt;/strong&gt; port is used by MCUMGR, running a command line in the NCS2.9.0 example directory to transfer the &lt;strong&gt;S1 upgrade package&lt;/strong&gt; to the nRF9160DK&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcumgr -t 60 --conntype serial --connstring=COM48 image upload .\build\signed_by_mcuboot_and_b0_s1_image.bin&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;4. Get firmware information&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcumgr -t 60 --conntype serial --connstring=COM48 image list&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;5. Confirm the firmware&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcumgr -t 60 --conntype serial --connstring=COM48 image confirm &amp;lt;hash&amp;gt; true&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;6. Press the reset button to reset the DK, after booting you can see that the S1 version has been updated to 2.&lt;br /&gt;7. Press the reset button again, the device does not run to the application, and the logs show that it no longer logs after B0 is ready to jump to the S1 partition (the new MCUBoot firmware for S1 already has log printing enabled).&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3326.log.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6445.cmd.png" /&gt;&lt;/p&gt;
&lt;p&gt;The two attachments are examples of my tests:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs2.6.1.zip"&gt;devzone.nordicsemi.com/.../ncs2.6.1.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs2.9.0.zip"&gt;devzone.nordicsemi.com/.../ncs2.9.0.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/524863?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 14:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b6b5e78-e73d-4ee5-a399-4d648b45f460</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0447.hello_5F00_world.zip"&gt;devzone.nordicsemi.com/.../0447.hello_5F00_world.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/524857?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 14:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71df46a6-6951-412f-9aac-1e413c10a638</guid><dc:creator>Leo</dc:creator><description>&lt;p&gt;Can you provide the example you added?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/524851?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 14:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c947749-e7bd-4a6d-af59-6607751e9222</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;When I add NSIB and MCUboot to hello world, it looks like this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0285.pastedimage1740580515794v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;A: NSIB logs&lt;/p&gt;
&lt;p&gt;B: MCUboot logs&lt;/p&gt;
&lt;p&gt;C: Application logs&lt;/p&gt;
&lt;p&gt;So for the DK, it logs by default at least&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/524798?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 11:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28b04e03-9170-4cf2-9400-d2c096d5a7a4</guid><dc:creator>Leo</dc:creator><description>&lt;p&gt;How to view the logs of NSIB?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/524796?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 11:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68cfa3dd-343c-4d73-ac6b-8c3a42a23194</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Do you have logs from NSIB?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/524793?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 11:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9ed7db7-6ec4-4187-ac79-02bd3daa3618</guid><dc:creator>Leo</dc:creator><description>&lt;p&gt;I tried copying &lt;code data-start="72" data-end="94"&gt;build/partitions.yml&lt;/code&gt; into &lt;code data-start="100" data-end="115"&gt;pm_static.yml&lt;/code&gt;.&lt;span&gt;After upgrading mcuboot from NCS 2.6.1 to NCS 2.9.0, the upgrade file is downloaded, and the device restarts and runs normally. The mcuboot version number and active slot are updated as expected. However, when the device is powered off and then powered on again, it fails to work properly, almost as if it has crashed.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After upgrading mcuboot, the device crashes upon power-up</title><link>https://devzone.nordicsemi.com/thread/524792?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 11:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2240bb93-4ee6-4449-9029-fc67731f418b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]In NCS 2.6.1, the default value of CONFIG_PM_PARTITION_SIZE_MCUBOOT is 0xc000, while in NCS 2.9.0, the default value is 0xbe00. A bug related to the MCUboot partition size was fixed on October 24, 2024. Could this bug have affected the upgrade failure?[/quote]
&lt;p&gt;Generally, you need to follow the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_nsib/bootloader_partitioning.html#static_partition_requirement_for_dfu"&gt;Static partitioning requirement&lt;/a&gt;. Im not 100% sure since it is just the headers in this case.&lt;/p&gt;
&lt;p&gt;But try to copy build/partitions.yml into pm_static.yml and then build the project for v2.9.0. Does DFU work then?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>