<?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>Fail to boot after upgrade to NCS 3.1.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124932/fail-to-boot-after-upgrade-to-ncs-3-1-1</link><description>We have a NCS 3.0.2 app + MCU boot with OTA functionality on nRF54L15 (PCA10156 rev 0.9.3) 
 After upgrading to NCS 3.1.1 it doesn&amp;#39;t boot anymore. 
 
 I tried with 
 Key provisioning is successful. But I get the same error as above. 
 After downgrade</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Dec 2025 15:20:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124932/fail-to-boot-after-upgrade-to-ncs-3-1-1" /><item><title>RE: Fail to boot after upgrade to NCS 3.1.1</title><link>https://devzone.nordicsemi.com/thread/556895?ContentTypeID=1</link><pubDate>Fri, 12 Dec 2025 15:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7133024a-7b85-4d90-a634-2c7d587b191f</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you try this sample&amp;nbsp;&lt;a href="https://github.com/aHaugl/samples_for_NCS/tree/main/bootloader/sysbuild/4_dfu_uart/2_54l15_chain_priv_key"&gt;samples_for_NCS/bootloader/sysbuild/4_dfu_uart/2_54l15_chain_priv_key at main · aHaugl/samples_for_NCS · GitHub&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Addition config which mentioned in point 2 most probably present in main&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config SB_MONOTONIC_COUNTER_IS_ENABLED
    bool &amp;quot;Secure boot monotonic counter is enabled&amp;quot;
    default n
    help
      sample text:  Internal flag used by sysbuild to indicate that the secure boot
      monotonic counter is enabled.
      Normally this is set automatically by sysbuild; do not change
      it manually unless you know what you are doing.
 
config SB_MONOTONIC_COUNTER_ROLLBACK_PROTECTION
    bool &amp;quot;Secure boot monotonic counter rollback protection&amp;quot;
    default n
    help
      sample text: Enables rollback protection using the secure boot monotonic counter.
      This is controlled by sysbuild; normally you do not need to change
      it manually&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to boot after upgrade to NCS 3.1.1</title><link>https://devzone.nordicsemi.com/thread/556569?ContentTypeID=1</link><pubDate>Tue, 09 Dec 2025 14:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:808e2d93-f754-48f4-b917-b8a9901753ed</guid><dc:creator>SimonV</dc:creator><description>&lt;p&gt;Thanks. I went and tested 3.2.0-rc2 and it seems to work. However if i define fprotect (CONFIG_FPROTECT=y) in my prj.conf i get rramc errors. It seems that the reason is that i am building a non secure application. Can you confirm if this is true.&lt;/p&gt;
&lt;p&gt;If i remove the fprotect declaration everything builds fine. I am attaching the build log of where it failed:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1134._5B00_261371_5D00_-Building-C-object-modulesh.txt"&gt;devzone.nordicsemi.com/.../1134._5B00_261371_5D00_-Building-C-object-modulesh.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I checked the build files that are made and inside i found:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;PS C:\Users\SV\Documents\smartcup&amp;gt; cat build\mcuboot\zephyr\.config | findstr &amp;quot;FPROTECT&amp;quot;
CONFIG_FPROTECT_BLOCK_SIZE=0x1000
CONFIG_FPROTECT=y
# CONFIG_FPROTECT_APP is not set
CONFIG_FPROTECT_ALLOW_COMBINED_REGIONS=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Which makes me think that fprotect is enabled even if i did not explicitlymake the setting.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also it seems that i have found a bug in 3.2.0-rc2 when i provision the key with&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;west ncs-provision upload -k private_key.pem &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;the key doesn&amp;#39;t seem to get provisioned I needed to add the --keyname option&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; west ncs-provision upload -k private_key.pem --keyname BL_PUBKEY&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This way of provisioning seems to work. Is this intended?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to boot after upgrade to NCS 3.1.1</title><link>https://devzone.nordicsemi.com/thread/555985?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2025 11:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:661ce399-86cf-4d25-b24c-7fbcda13681d</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Here is the link of potential fix of this issue&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/pull/576"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/576&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/25655"&gt;https://github.com/nrfconnect/sdk-nrf/pull/25655&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to boot after upgrade to NCS 3.1.1</title><link>https://devzone.nordicsemi.com/thread/555952?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2025 08:49:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad7f8e09-fe25-427d-bd75-b283c5b35463</guid><dc:creator>Igor</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/kazi-afroza-sultana"&gt;Kazi Afroza Sultana&lt;/a&gt;&amp;nbsp;&amp;nbsp;Anything new regarding this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to boot after upgrade to NCS 3.1.1</title><link>https://devzone.nordicsemi.com/thread/555604?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2025 12:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d647c4-923e-43a0-a5d9-b8345e18c412</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have talked team. I am waiting for the reply. In the meantime, you can just try to delete the MCUBOOT partition size config and try to build again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to boot after upgrade to NCS 3.1.1</title><link>https://devzone.nordicsemi.com/thread/555040?ContentTypeID=1</link><pubDate>Fri, 21 Nov 2025 12:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:963ed442-01f1-43b3-80de-c4c3766047db</guid><dc:creator>SimonV</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;I am working on this issue with Igor.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Disabling FPROTECT works, however we need this feature.&lt;/p&gt;
&lt;p&gt;I have checked the partition sizes and MCUboot partition is 48kb. Do you have any other potential fixes.&lt;/p&gt;
&lt;p&gt;I am including the partition report and build logs.&amp;nbsp;have also tried reducing mcuboot partition to 40kb and increasing it to 60kb both of which give the same error that Igor posted. I also tried to use dynamic partition allocation and that gives the same mcuboot flash failed error when i flash the device. Do you have any suggestion what might be wrong? I am also attaching the pm_static file that we are using.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5153.pm_5F00_static.txt"&gt;devzone.nordicsemi.com/.../5153.pm_5F00_static.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/partition_5F00_report.txt"&gt;devzone.nordicsemi.com/.../partition_5F00_report.txt&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Build-logs.txt"&gt;devzone.nordicsemi.com/.../Build-logs.txt&lt;/a&gt;. I&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to boot after upgrade to NCS 3.1.1</title><link>https://devzone.nordicsemi.com/thread/551370?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 08:34:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:974f38bf-3f07-4e99-85e1-a999cd3f1281</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This error &amp;#39;&amp;#39;E: Protect mcuboot flash failed, cancel startup.&amp;#39;&amp;#39; is a common issue&amp;nbsp;&lt;span&gt;after upgrading to NCS 3.1.1 on nRF54L15. It is related to MCUboot handling flash protection (FPROTECT) and partition sizes in recent SDK versions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&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/pastedimage1760428565818v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can read this here&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/known_issues.html#mcuboot"&gt;Known issues&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;#39;&amp;#39;&lt;span&gt;FPROTECT can support locking up to 62 KB of RRAM on nRF54L SoCs when used by immutable MCUboot. Either the partition declared for MCUboot or its size might be too large for using FPROTECT (depends on MCUboot configuration). Without access to MCUboot logs, this might be misrecognized as an application that is not working or starting&amp;#39;&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You need to check the MCUboot partition size and make sure that it does not exceed 62KB if FROTECT is enable; or disable FPROTECT in your configuration by setting&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;CONFIG_FPROTECT=n&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;in your MCUboot prj.conf or sysbuild.conf.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can also configure the MCUboot partition size dynamically from the mcuboot.conf file; for example:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_PARTITION_SIZE_MCUBOOT=0xF800&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After this, try to rebuild and flash the sample again. Let me know if it works or not.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;br /&gt;Kazi&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>