<?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 stuck after &amp;#39;Jumping to first image slot&amp;#39;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92915/mcuboot-stuck-after-jumping-to-first-image-slot</link><description>I&amp;#39;m trying to integrate MCUboot into my application, as immutable bootloader (CONFIG_BOOTLOADER_MCUBOOT=y). Building succeeded, but after programming the board gets stuck at &amp;#39;I: Jumping to the first image slot&amp;#39;. To verify I also tried the hello_world</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Dec 2022 01:55:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92915/mcuboot-stuck-after-jumping-to-first-image-slot" /><item><title>RE: MCUBoot stuck after 'Jumping to first image slot'</title><link>https://devzone.nordicsemi.com/thread/398430?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 01:55:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43b0a788-aa46-4201-bc02-582c22431a25</guid><dc:creator>ClemensG</dc:creator><description>&lt;p&gt;Might be I had the same with ncs 2.1.2 (same symptoms - didn&amp;#39;t checked source or debugged).&lt;/p&gt;
&lt;p&gt;Sadly your solution leads to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.1.99-ncs1-1 ***
I: Starting bootloader
W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=256 - too small?
W: Cannot upgrade: not a compatible amount of sectors
E: Unable to find bootable image&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Due to time reasons I switched to SPM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot stuck after 'Jumping to first image slot'</title><link>https://devzone.nordicsemi.com/thread/395273?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 10:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cab222f-85f8-40ce-9693-6e308ae720ea</guid><dc:creator>allard.p</dc:creator><description>&lt;p&gt;I managed to track down the issue, with help of &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80048/what-are-the-options-for-using-tf-m-with-mcuboot/332104"&gt;this&lt;/a&gt; topic, and further debugging.&lt;/p&gt;
&lt;p&gt;The problem is FPROTEXT, mcuboot locks sectors. When TF-M boots it tries unlock all sectors in &lt;em&gt;spu_regions_reset_all_secure. &lt;/em&gt;This is not possible and causes the system to hang in an assertion.&lt;/p&gt;
&lt;p&gt;The solution is to add an overlay for MCUboot where FPROTECT is disabled. Add the following to CMakeLists.txt:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;# Use custom MCUBoot definitions
if (EXISTS &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf&amp;quot;)
    list(APPEND mcuboot_OVERLAY_CONFIG &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf&amp;quot;)
endif()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then add mcuboot.conf in the same directory, containing the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOOT_MAX_IMG_SECTORS=256
CONFIG_FPROTECT=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think Nordic needs to set CONFIG_FPROTECT to n by default in MCUboot now SPM is replaced by TF-M?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot stuck after 'Jumping to first image slot'</title><link>https://devzone.nordicsemi.com/thread/395158?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 15:13:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e968519-f72b-4405-a88d-3a17467626ee</guid><dc:creator>allard.p</dc:creator><description>&lt;p&gt;I managed to debug this further. The application is successfully booted by MCUBOOT, but is stuck in TFM initialization.&lt;/p&gt;
&lt;p&gt;It is stuck on the following assert inside &lt;em&gt;nrf_spu_flashregion_set&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRFX_ASSERT(!(p_reg-&amp;gt;FLASHREGION[region_id].PERM &amp;amp; SPU_FLASHREGION_PERM_LOCK_Msk));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The function is called with the following arguments:&lt;/p&gt;
&lt;div&gt;p_reg: 0x500030000&lt;/div&gt;
&lt;div&gt;region_id: 0&lt;/div&gt;
&lt;div&gt;secure_attr: true&lt;/div&gt;
&lt;div&gt;permissions: 7&lt;/div&gt;
&lt;div&gt;lock_conf: false&lt;/div&gt;
&lt;div&gt;and p_reg-&amp;gt;FLASHREGION[0].PERM is 277&lt;/div&gt;
&lt;p&gt;The call stack is the following:&lt;/p&gt;
&lt;div&gt;nrf_spu_flashregion_set&lt;/div&gt;
&lt;div&gt;spu_regions_reset_all_secure&lt;/div&gt;
&lt;div&gt;spu_init_cfg&lt;/div&gt;
&lt;div&gt;tfm_hal_set_up_static_boundaries&lt;/div&gt;
&lt;div&gt;tfm_core_init&lt;/div&gt;
&lt;div&gt;main&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any ideas what is going on here? Solutions given in this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/91375/tf-m-and-mcuboot-on-the-nrf9160/383888"&gt;topic&lt;/a&gt;&amp;nbsp; do not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot stuck after 'Jumping to first image slot'</title><link>https://devzone.nordicsemi.com/thread/395074?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 10:11:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1c93510-4577-453b-baf3-842af66027ce</guid><dc:creator>allard.p</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Any news on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot stuck after 'Jumping to first image slot'</title><link>https://devzone.nordicsemi.com/thread/392729?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 04:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f33b062-a252-4307-90be-77098e6818a5</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;it seems like they have fixed it in NCSv2.1.0 but seems like you are seeing the issue still. I need to ask my colleague to check if this is still an issue in the latest sdk.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot stuck after 'Jumping to first image slot'</title><link>https://devzone.nordicsemi.com/thread/392684?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 15:00:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a8c802c-60a0-4400-8012-3358ecd26222</guid><dc:creator>allard.p</dc:creator><description>&lt;p&gt;SPM is an option, but it is deprecated, so TF-M is preferred.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot stuck after 'Jumping to first image slot'</title><link>https://devzone.nordicsemi.com/thread/392085?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 09:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcdbb1c4-a08e-4ca9-a730-32b0a1df5766</guid><dc:creator>livetsMozell</dc:creator><description>&lt;p&gt;&lt;span&gt;You can try to use SPM instead of TF-M&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot stuck after 'Jumping to first image slot'</title><link>https://devzone.nordicsemi.com/thread/392018?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 06:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:675e8900-75cc-4aa1-b430-1565d843b435</guid><dc:creator>allard.p</dc:creator><description>&lt;p&gt;I&amp;#39;ve seen this topic. The link given points to the latest documentation where I can not find anything that looks like my issue. It seem that the problem this topic is referring to is fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot stuck after 'Jumping to first image slot'</title><link>https://devzone.nordicsemi.com/thread/391829?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 09:47:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a41483cf-3b04-4092-bd22-8716a8d7c1c9</guid><dc:creator>livetsMozell</dc:creator><description>&lt;p&gt;There&amp;nbsp;was a known issue regarding this. Below is a link to earlier answer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/88878/9160dk-boot-stuck-at-jumping-to-the-first-image-slot-sample-http_update-with-ncs-2-0-0"&gt;devzone.nordicsemi.com/.../9160dk-boot-stuck-at-jumping-to-the-first-image-slot-sample-http_update-with-ncs-2-0-0&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>