<?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>migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127216/migrating-app-using-mcuboot-to-ncs-3-2-3---issue-with-mcuboot-image-ids-automatically-assigned</link><description>I migrate an app from NCS 3.1.0 to NCS 3.2.3. 
 Using mcuboot with a Thingy:91 or Thingy:91X fails. 
 flash_img_init results in a flash_img_context, which uses ID 2, the application_slot0, where the app runs from. That obviously crashes on executing an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Aug 2026 09:44:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127216/migrating-app-using-mcuboot-to-ncs-3-2-3---issue-with-mcuboot-image-ids-automatically-assigned" /><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/569992?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2026 09:44:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33c6fc58-29de-4957-a20a-c3563926e326</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt;&amp;nbsp;You should not run into the same issue in SDK v3.4.0 since it no longer uses the Partition Manager.&lt;/p&gt;
&lt;p&gt;Maybe on it&amp;#39;s own, 3.4 to 3.4 FOTAs.&lt;/p&gt;
&lt;p&gt;But the nasty point will be the devices, which uses mcuboot for longer (e.g. 2.6.4) and we will see, if FOTA with a 3.4 app will still work, or break the update path. Small changes in the partitions will usually do so. And some &amp;quot;old bugs/limitations&amp;quot; in 2.6.4 mcuboot will also show their pain.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/569986?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2026 07:47:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae11d62c-5700-4bd1-8067-e6a4f2effb86</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="5203" url="~/f/nordic-q-a/127216/migrating-app-using-mcuboot-to-ncs-3-2-3---issue-with-mcuboot-image-ids-automatically-assigned/569982"]To be frank: then a map, which of your &amp;quot;NCS supported devices&amp;quot; has been retested for which NCS version would be not too bad.&amp;nbsp;[/quote]
&lt;p&gt;I think it may be&amp;nbsp;worth pointing out that we do have more&amp;nbsp;test coverage for FOTA in general. The limitation is specifically the FOTA testing for this particular board, and since the bug in this case was in the board file itself, it was not detected earlier.&lt;/p&gt;
&lt;p&gt;The asset tracker template has now been updated to use SDK v3.4.0&lt;/p&gt;
[quote userid="5203" url="~/f/nordic-q-a/127216/migrating-app-using-mcuboot-to-ncs-3-2-3---issue-with-mcuboot-image-ids-automatically-assigned/569983"] Either after Nordic verifies, that mcuboot for the Thingy:91(X) works from internal flash with that NCS or I could spend the time into verifying that (but as I wrote, that will be rather at the end of the year).[/quote]
&lt;p&gt;You should not run into the same issue in SDK v3.4.0 since it no longer uses the Partition Manager. However, if you do run into any problems with DFU when that time comes, I am happy to set up a test on my end to help troubleshoot the issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/569983?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2026 06:15:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fbde3c2-7700-47b8-9cbe-6cfa2be30561</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;In the end, if there is not longer a plan to fix it, because 3.4 may obsolete it, then we may close the ticket. Either after Nordic verifies, that mcuboot for the Thingy:91(X) works from internal flash with that NCS or I could spend the time into verifying that (but as I wrote, that will be rather at the end of the year).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/569982?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2026 06:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d99a854-dd6b-4d60-9dd5-064dfefde1be</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;I haven&amp;#39;t moved to 3.4 for now, I&amp;#39;m currently not able to spend my time in migrating. It will be rather end of the year. I only started with some very first tests, but e.g. &amp;quot;migrating the partitions to DT without breaking FOTA&amp;quot; is pending.&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;not tested against all NCS releases&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To be frank: then a map, which of your &amp;quot;NCS supported devices&amp;quot; has been retested for which NCS version would be not too bad.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;I am not sure how relevant this is still &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have a patch, so I can live with it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I may be not the only one with struggle, see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/128381/fota-downloading-but-failing-to-boot-into-the-new-image/567737"&gt;FOTA downloading but failing to boot into the new image&lt;/a&gt;&amp;nbsp;(even if it stay unclear, how that was solved).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/569951?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2026 07:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a42619ed-1dd2-46d8-8efa-ddec86c115df</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;We run nightly FOTA tests (app, delta modem and full modem) on the Thingy:91 X for the asset tracker template though this is not tested against all NCS releases.&amp;nbsp;This is also&amp;nbsp;with secondary slot is located in external flash, which could potentially&amp;nbsp;be relevant here. Anyway, it has been some time since you created this thread and I am not sure how relevant this is still or if you have moved to the v.3.4.0 release and using DT partitioning. There have also been some updates made to the thingy board files in the last few months (&lt;a href="https://github.com/nrfconnect/sdk-nrf/commits/main/boards/nordic/thingy91x"&gt;https://github.com/nrfconnect/sdk-nrf/commits/main/boards/nordic/thingy91x&lt;/a&gt;).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/568360?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2026 11:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9779f0e0-9269-4a0f-b5e8-0e5db906b5ce</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You definetly have a valid point there. I do not know what test coverage we have for these boards with regards to DFU. I have relayed this feedback internally.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/568096?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2026 20:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de334b7d-1ae3-40d5-a8b8-35780af5a026</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Isn&amp;#39;t the main point, that Nordic decided not to test mcuboot/FOTA for the Thingy91(X)? Because, if it&amp;#39;s tested, it&amp;#39;s either working or a known issue ;-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/568024?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2026 06:27:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e850d856-463a-4444-b6fe-71aaf5d645bf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, sorry, I do not remember the exact details of this issue, but I do remember finding out&amp;nbsp;that it would be fixed as a side effect of moving to static DT partitions. However, we now know that we did not manage to complete the&amp;nbsp;transition for the 91 series in time for the v3.3.x release:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/128038/partition-manager-deprecation/566028"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/128038/partition-manager-deprecation/566028&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/568023?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2026 06:02:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04a47c4b-bcaf-4408-8c17-11e579bc9024</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;This is still the same issue in NCS 3.3.1!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/562545?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2026 13:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4586d32-584a-4a2c-9a92-6c3dd55f535b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The board files should be updated before the next SDK release.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/562480?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2026 19:37:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82cc985f-47a3-4e30-b5cd-78e5cae6a33d</guid><dc:creator>Achim Kraus</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/127216/migrating-app-using-mcuboot-to-ncs-3-2-3---issue-with-mcuboot-image-ids-automatically-assigned/562417"]Setting&amp;nbsp;zephyr,code-partition seems like the best workaround for now. I will report this internally.[/quote]
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;(-: EDIT: :-) anyway, I&amp;#39;m looking forward to see the official Nordic support files for both devices being fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/562417?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2026 11:41:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61d322b0-bbd3-4c6b-8e32-d18f78688b4e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks. This looks to be an unintended side effect of the commit I found here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/87b1bb8916c913e492e1d37156cb8b846481bb1f"&gt;https://github.com/nrfconnect/sdk-zephyr/commit/87b1bb8916c913e492e1d37156cb8b846481bb1f&lt;/a&gt;. You can see the&amp;nbsp;FIXED_PARTITION_IS_RUNNING_APP_PARTITION() macro depends on the&amp;nbsp;&lt;span&gt;&lt;span style="text-decoration:line-through;"&gt;zephyr,code-partition&lt;/span&gt; FLASH_LOAD_OFFSET property to determine if the app is running from slot0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Setting&amp;nbsp;zephyr,code-partition seems like the best workaround for now. I will report this internally.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;EDIT: I was a bit too quick when reviewing the code and what you said. I assumed the issue was that zephyr,code-partition was not defined in the devicetree for these boards. But see now that the issue is really that the&amp;nbsp;&lt;/span&gt;FLASH_LOAD_OFFSET symbol is being set to&amp;nbsp;&amp;quot;0&amp;quot; because these boards are missing the &amp;quot;&lt;span&gt;DT_CHOSEN_Z_CODE_PARTITION&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;:=&lt;/span&gt;&lt;span&gt; zephyr,code-partition&amp;quot; line as you already pointed out. Without this line,&amp;nbsp;Kconfig can&amp;#39;t &amp;quot;see&amp;quot; the code partition&amp;nbsp;defined in the devicetree.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/562347?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2026 16:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dba223b-7539-427f-8db9-d674bd64a43b</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Thanks for you answer.&lt;/p&gt;
&lt;p&gt;In the end it&amp;#39;s not easy to understand and analyze what happens, especially, if it breaks on an update.&lt;/p&gt;
&lt;p&gt;Sometimes even with the migration guide it&amp;#39;s not obvious, what needs to be changed to get it working again.&lt;/p&gt;
&lt;p&gt;I mainly wrote about that &amp;quot;image IDs&amp;quot;, because this was the only change mention in&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v3.2.3/doc/nrf/releases_and_maturity/migration/migration_guide_3.2.rst#mcuboot"&gt;migration guide 3.2&lt;/a&gt;&amp;nbsp;, where I see a relation to the partitions.&lt;/p&gt;
&lt;p&gt;Building my app for a Thingy:91, using the pm_static.yml of that, results in:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6378_2E00_pm_2E00_config"&gt;devzone.nordicsemi.com/.../6378_2E00_pm_2E00_config&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/thingy_2D00_3_2E00_2_2E00_3_2E00_config"&gt;devzone.nordicsemi.com/.../thingy_2D00_3_2E00_2_2E00_3_2E00_config&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Calling &amp;quot;flash_img_init&amp;quot; results then in a context with:&lt;/p&gt;
&lt;p&gt;Update area 2 0xc000 size 0x69000 on flash-controller@39000.&lt;/p&gt;
&lt;p&gt;LOG_INF(&amp;quot;Update area %d 0x%lx size 0x%x on %s.&amp;quot;, dfu_context.flash_area-&amp;gt;fa_id,&lt;br /&gt;&amp;nbsp; &amp;nbsp;dfu_context.flash_area-&amp;gt;fa_off, dfu_context.flash_area-&amp;gt;fa_size,&lt;br /&gt;&amp;nbsp; &amp;nbsp;dfu_context.flash_area-&amp;gt;fa_dev-&amp;gt;name);&lt;/p&gt;
&lt;p&gt;And calling &amp;quot;boot_erase_img_bank&amp;quot;&amp;nbsp;then crashes (because that&amp;#39;s the part of the active application and not the secondary slot).&lt;/p&gt;
&lt;p&gt;Is there a sample for the nRF9160/51, which doesn&amp;#39;t use an additional external flash and uses mcuboot? Perfect would be one, which has been retested with NCS 3.2.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And did you check the&amp;nbsp;nrf/boards/nordic/thingy91x/Kconfig.defconfig.nrf9151 and the&amp;nbsp;nrf/boards/nordic/thingy91/Kconfig.defconfig about the maybe missing definition of&amp;nbsp;DT_CHOSEN_Z_CODE_PARTITION?&lt;/p&gt;
&lt;p&gt;Because, when I add that to those configs, the update works again. So this is either missing in the Nordic files, or there is an alternative way to do so, but then I guess these lines using&amp;nbsp;DT_CHOSEN_Z_CODE_PARTITION are some leftovers and would better be removed not to mix up the users. At least without&amp;nbsp;definition of&amp;nbsp;DT_CHOSEN_Z_CODE_PARTITION I don&amp;#39;t see, how that works.&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/562345?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2026 15:42:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:325dde18-76ef-4b0b-8507-d5b3e369450e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The assigned image ID number is not the same as the IDs used for the flash partitions. The image ID does not directly control what mcuboot slot to use. Please check the pm_config.h file in your build/&amp;lt;your project name&amp;gt;/zephyr/include/generated/ to see which partition ID 2 maps to.&lt;/p&gt;
&lt;p&gt;Setting flash load offset is not necessary when using the partition manager. You can confirm the start address in flash from the zephyr.map output.&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/pastedimage1772465967149v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Note: you can search your&amp;nbsp;build folder for&amp;nbsp;CONFIG_MCUBOOT_APPLICATION_IMAGE_NUMBER to see what the assigned number is.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned?</title><link>https://devzone.nordicsemi.com/thread/562262?ContentTypeID=1</link><pubDate>Sun, 01 Mar 2026 09:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:875ba4df-4bc0-4183-9a84-02568836a098</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Hmmmm, adding&amp;nbsp;&lt;/p&gt;
&lt;p&gt;DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition&lt;/p&gt;
&lt;p&gt;to&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/boards/nordic/thingy91x/Kconfig.defconfig.nrf9151"&gt;boards/nordic/thingy91x/Kconfig.defconfig.nrf9151&lt;/a&gt;&amp;nbsp;, as in&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/boards/nordic/thingy91x/Kconfig.defconfig.nrf5340#L51-L52"&gt;boards/nordic/thingy91x/Kconfig.defconfig.nrf5340&lt;/a&gt;&amp;nbsp;, seems to be one possibility to fix it ;-(. The zephyr board definition for the nRF9151-DK seems to use an different approach.&lt;/p&gt;
&lt;p&gt;Not sure, which approach would be the preferred by Nordic, but it would help, if the stuff would be more aligned.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>