<?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>Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119315/bug-in-secure-boot-b0n-related-partition-configuration-for-nrf5340-under-sysbuild-in-sdk-v2-9-0</link><description>Hi, I&amp;#39;m having problems with migrating my project to SDK v2.9.0. I&amp;#39;m using mcuboot and I want to use b0n on the net core and update support for the net core application via mcuboot (running on the application core). Everything was running fine on the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Mar 2025 06:14:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119315/bug-in-secure-boot-b0n-related-partition-configuration-for-nrf5340-under-sysbuild-in-sdk-v2-9-0" /><item><title>RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/527079?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 06:14:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b04b252c-8dd6-47da-aaa7-59db4ee31d24</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Michael,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are you using the bootloader you had from v2.5.3 in production? In that case, I&amp;nbsp;would have considered&amp;nbsp;to continue using the same bootloader hex to ensure you have the same bootloader on all your devices.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="puz_md"]Your fix works on my side, too. There is only one &amp;quot;beauty bug&amp;quot;: After the net core image, the whole second slot is erased now, and after the app core update, only the first and the last sector is erased. Works both, but would be nice if the behavior was the same.[/quote]
&lt;p&gt;I was considering whether to erase just the header and trailer but decided to erase the whole slot for simplicity. You can use the code &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/148712e7b4618aadbedd04e8d3ce5c3847d3be4f/boot/bootutil/src/loader.c#L1862"&gt;here&lt;/a&gt; as reference if you want to erase just the header+trailer.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve created a ticket for this case in our internal bug tracker so the developers can follow up on the issues we&amp;#39;ve discussed.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/527027?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 17:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7497d508-da0e-4c6b-a312-b368cd67e9e6</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;sorry for the confusion, but ist seems I also had the overwrite only configuration activated all along. I probably added it when evaluating your sample configuration. So we&amp;#39;re using the same configuration and I did not test SWAP with the new SDK yet.&lt;/p&gt;
&lt;p&gt;Your fix works on my side, too. There is only one &amp;quot;beauty bug&amp;quot;: After the net core image, the whole second slot is erased now, and after the app core update, only the first and the last sector is erased. Works both, but would be nice if the behavior was the same.&lt;/p&gt;
&lt;p&gt;Unfortunately, the fix didn&amp;#39;t make it into SDK v2.9.1 which was released today. There is also another fix still missing that was discussed with AmandaH about 1-2 weeks ago in another ticket and is still missing from the SDK. This fix is necessary for correct application of the net core&amp;#39;s static partitioning file: Remove&amp;nbsp;&lt;span style="font-family:courier new, courier;"&gt;set(static_configuration)&lt;/span&gt; from C:\ncs\v2.9.0\nrf\cmake\sysbuild\partition_manager.cmake, line 126.&lt;/p&gt;
&lt;p&gt;Please talk to your developer team if they can bring both fixes in a v2.9.x release (so that I don&amp;#39;t have to migrate again to SDK v3.0.0 which probably has major changes).&lt;/p&gt;
&lt;p&gt;Further, it would be good to have these two bugs in the &amp;quot;Known Issues&amp;quot; section of the SDK documentation (sections &amp;#39;Bootloader&amp;#39; and &amp;#39;Build System&amp;#39;). Maybe it can help other developers, too.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/526852?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 08:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da449003-6ba2-4efd-8d6c-fa351b2dd194</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Michael,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for the update.&amp;nbsp; I think this explains. I had enabled the overwrite only mode in my version (sysbuild.conf --&amp;gt; SB_CONFIG_MCUBOOT_MODE_OVERWRITE_ONLY=y)&amp;nbsp; which makes it so that the image trailer is not erased here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/148712e7b4618aadbedd04e8d3ce5c3847d3be4f/boot/bootutil/src/loader.c#L1519"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/148712e7b4618aadbedd04e8d3ce5c3847d3be4f/boot/bootutil/src/loader.c#L1519&lt;/a&gt;. I&amp;#39;ve proposed this fix to the developers for the overwrite only mode:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/boot/bootutil/src/loader.c b/boot/bootutil/src/loader.c
index f35ec786..fd01ef5b 100644
--- a/boot/bootutil/src/loader.c
+++ b/boot/bootutil/src/loader.c
@@ -1615,6 +1615,10 @@ boot_validated_swap_type(struct boot_loader_state *state,
                  */
                 rc = swap_erase_trailer_sectors(state,
                         secondary_fa);
+#elif defined(MCUBOOT_OVERWRITE_ONLY)
+                BOOT_LOG_INF(&amp;quot;Erasing secondary slot&amp;quot;);
+                rc = boot_erase_region(secondary_fa, 0, secondary_fa-&amp;gt;fa_size);
+                assert(rc == 0);      
 #endif
                 swap_type = BOOT_SWAP_TYPE_NONE;
             }
&lt;/pre&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/526629?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 17:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46c924ae-295b-47d5-8862-afb492c74231</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I did not see this behavior with the old mcuboot (SDK v2.5.3). It might be related to the swap feature (I did not configure the &amp;#39;overwrite only&amp;#39; parameter, maybe I can try it another time). For now, this is the observation that I make with mcuboot SDK v2.9.0:&lt;/p&gt;
&lt;p&gt;(1) App core update: After the update is processed, the &lt;strong&gt;first and the last flash page&lt;/strong&gt; of the secondary partition is erased (all bytes 0xff). The image is NOT swapped as I would expect (and as it worked with SDK v2.3.0).&lt;/p&gt;
&lt;p&gt;(2) Net core update: After the update, the secondary partition is&lt;strong&gt; untouched&lt;/strong&gt;! In the last flash page of the secondary partition, the update/confirmed bits are still set! I think this should not happen. Also, considering the time delay after each power cycle in this state, it is possible that the net core is programmed again (I think in the past the keys were compared and if they matched, no extra programming took place...)&lt;/p&gt;
&lt;p&gt;Hint: I had to configure this intermediate &amp;#39;ram_flash&amp;#39; partition for the net core which did not exist in SDK v2.3.0. Maybe mcuboot tries to invalidate the copy in &amp;#39;ram_flash&amp;#39;?&lt;/p&gt;
&lt;p&gt;Here a memory dump of the last flash page of my secondary partition (0x88000-0xf7fff), I will cut the last 16 bytes bytes as they might be a confidential key):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;0x000F7FC0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................
0x000F7FD0 | FF FF FF FF FF FF FF FF 03 FF FF FF FF FF FF FF | ................
0x000F7FE0 | FF FF FF FF FF FF FF FF 01 FF FF FF FF FF FF FF | ................&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With mcuboot SDK v2.5.3, the application was switched. I did not test it with the net core though, but the slot was available always again after a net core update, so no blocked slots.&lt;/p&gt;
&lt;p&gt;My conclusion: There are two problems in mcuboot SDK v2.9.0: First, there swap does not work anymore. Second: For the net core, the image in the secondary slot is not invalidated and triggers endless updates. The update procedure itself seems to work for &lt;span style="text-decoration:underline;"&gt;both&lt;/span&gt; cores: The content in the primary slots is updated.&lt;/p&gt;
&lt;p&gt;I hope this helps with the debugging.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Michael&lt;/p&gt;
&lt;p&gt;Update: I checked it again with the net core update on SDK v2.5.3: I did only compare some bytes with the eye at 1K offset (compared 256 bytes at 0x89000, which is 1K into the secondary slot). The data did not change after the update, but in this case, the last secondary slot page (NOT the first page here!) was deleted again which prevented unwanted additional updates. So: Apparently no swap for the net core, but correct unflagging of the image via the last slot page&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/526532?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 11:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3508c106-63d9-4955-a893-ed362b47ee37</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
[quote user="puz_md"]Unfortunately, I ran into another problem now with the new mcuboot: It programs the app core software just fine. But the net core software is not removed/invalidated from the slot after updating the net core (which seems to work by the way):[/quote]
&lt;p&gt;Could you please confirm if you see the same with your original MCUBoot version? I&amp;#39;m able to reproduce the same here but I could not find any relevant changes in loader.c between v2.5.x and v2.9.0.&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: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/526023?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 14:38:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e99752f3-571f-4280-b8b5-0bac58003bc4</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/119315/bug-in-secure-boot-b0n-related-partition-configuration-for-nrf5340-under-sysbuild-in-sdk-v2-9-0/525938"]Glad to hear that it is working on your end as well. Just remember to test this with your bootloader hex from v2.5.3 if you have devices out in the field with this version of the bootloader.[/quote]
&lt;p&gt;I tested it already and it worked.&lt;/p&gt;
&lt;p&gt;The problem was that I did not program the new mcuboot binary and test the following issue:&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/119315/bug-in-secure-boot-b0n-related-partition-configuration-for-nrf5340-under-sysbuild-in-sdk-v2-9-0/525938"]&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;puz_md said:&lt;/div&gt;&lt;div class="quote-content"&gt;Do I need the &amp;quot;CONFIG_MCUBOOT_VERIFY_IMG_ADDRESS=n&amp;quot;? It seems my project also works without it...&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;Did you verify that the netcore image got updated even if you had additional address verification enabled?&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;You&amp;#39;re right, it doesn&amp;#39;t work without turning address verification off! I forgot to program the new mcuboot for testing.&lt;/p&gt;
&lt;p&gt;Unfortunately, I ran into another problem now with the new mcuboot: It programs the app core software just fine. But the net core software is not removed/invalidated from the slot after updating the net core (which seems to work by the way): During each power cycle, the system stays for many seconds in mcuboot and probably tries to update the net core again. After the update try, I can connect via Auterm again and the slot readout reports has the following bits set:&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/pastedimage1741185422040v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;The app core is updated just fine and Auterm doesn&amp;#39;t report an image in the slot anymore (and the bootloader does not consume extra time during each startup after the first update attempt). Any idea what could be wrong with the net core processing this time?&lt;/p&gt;
&lt;p&gt;By the way, only if I erase the flash pages of the secondary slot, in Auterm &amp;quot;Slot 1&amp;quot; disappears and I can upload another update again.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/525938?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 10:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65988925-9511-449d-b93c-e041464f2cbc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Michael,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Glad to hear that it is working on your end as well. Just remember to test this with your bootloader hex from v2.5.3 if you have devices out in the field with this version of the bootloader.&lt;/span&gt;&lt;/p&gt;
[quote user="puz_md"]According to my understanding (and the partitioning training in Nordic Academy), the steps (2) through (4) should not be needed to be performed by the developer. The SDK should create partitions ready for use. Will this issue be fixed in future SDK versions?[/quote]
&lt;p&gt;The problem is that dynamic partitioning is not supported with your configuration. This was partially addressed by the PR I linked to earlier. I will report this internally.&lt;/p&gt;
[quote user="puz_md"]Do I need the &amp;quot;CONFIG_MCUBOOT_VERIFY_IMG_ADDRESS=n&amp;quot;? It seems my project also works without it...[/quote]
&lt;p&gt;Did you verify that the netcore image got updated even if you had additional address verification enabled?&amp;nbsp;&lt;/p&gt;
[quote user="puz_md"]And do I need the Konfig and Kconfig.sysbuild? I&amp;#39;ve never used these files in my configuration. Currently, I&amp;#39;m using &amp;quot;SB_CONFIG_NETCORE_HCI_IPC=y&amp;quot; in sysbuild.conf. Does this something similar to the ipc_radio configuration in Kconfig.sysbuild?[/quote]
&lt;p&gt;Kconfig.sysbuild changes the default value to &amp;#39;y&amp;#39;&amp;nbsp; instead of explicitly&amp;nbsp;enabling the HCI IPC image&amp;nbsp;in sysbuild.conf. This allows the project to be built for other single core&amp;nbsp; devices (nRF52/nRF54) without triggering any errors because the symbol can&amp;#39;t be selected. You are selecting&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/hci_ipc/README.html#bluetooth_hci_ipc"&gt;HCI IPC&lt;/a&gt;&amp;nbsp;instead of the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/ipc_radio/README.html#ipc-radio"&gt;IPC radio firmware&lt;/a&gt;&amp;nbsp;when you select&amp;nbsp;SB_CONFIG_NETCORE_HCI_IPC.&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: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/525814?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 18:42:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99741786-0105-403d-aa90-2b942fa80fb8</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;I think I got it working. Thanks a lot!&lt;br /&gt;&lt;br /&gt;Concerning my configuration problems, I worked through the following steps to fix them:&lt;br /&gt;(1) Create a pm_static.yml for the app core without the net core update configuration (otherwise it won&amp;#39;t compile with SDK v2.9.0)&lt;br /&gt;(2) Add the mcuboot_primary_1 partition&lt;br /&gt;(3) Add the ram_flash partition&lt;br /&gt;(4) Duplicate the mcuboot_secondary partition and rename the copy to mcuboot_secondary_1 with size and (end_address) adjusted to 0x40000&lt;br /&gt;(5) Add &amp;quot;CONFIG_MCUBOOT_VERIFY_IMG_ADDRESS=n&amp;quot; to sysbuild\mcuboot.conf (seems to work without it, too)&lt;br /&gt;&lt;br /&gt;In respect to these steps, I have some more questions concerning the further proceeding at Nordic Semiconductor and the nRF Connect SDK:&lt;br /&gt;&lt;br /&gt;According to my understanding (and the partitioning training in Nordic Academy), the steps (2) through (4) should not be needed to be performed by the developer. The SDK should create partitions ready for use. Will this issue be fixed in future SDK versions?&lt;br /&gt;&lt;br /&gt;Also, the extra (overlapping) partition definitions and the flash_ram partition were not needed in SDK v2.5.3. Will this configuration pattern also be used in future SDK versions, or is this just a workaround for the current problems?&lt;br /&gt;&lt;br /&gt;Do I need the &amp;quot;CONFIG_MCUBOOT_VERIFY_IMG_ADDRESS=n&amp;quot;? It seems my project also works without it...&lt;br /&gt;&lt;br /&gt;And do I need the Konfig and Kconfig.sysbuild? I&amp;#39;ve never used these files in my configuration. Currently, I&amp;#39;m using &amp;quot;SB_CONFIG_NETCORE_HCI_IPC=y&amp;quot; in sysbuild.conf. Does this something similar to the ipc_radio configuration in Kconfig.sysbuild?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/525315?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 14:47:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c4721d6-ec91-415e-98a2-c45532719f8f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Michael,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I realize now after testing a bit that the linked PR&amp;nbsp;does not address the issue with your configuration (non-simultaneous DFU and no external flash). I also expected mcuboot_primary_1 to already be present in your static partition file. Here is an updated version of the project which should better match your setup:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7142.peripheral_5F00_lbs_5F00_dfu_5F00_test_5F00_nrf5340_5F00_v290_5F00_non_5F00_sim.zip"&gt;devzone.nordicsemi.com/.../7142.peripheral_5F00_lbs_5F00_dfu_5F00_test_5F00_nrf5340_5F00_v290_5F00_non_5F00_sim.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/525126?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 15:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95c21487-d174-4ded-b9ec-fb3b61dbc798</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Hi, I tried using my pm_static from the old project, and I can update the application core if I disable the net core update and secure boot on the net core (see first code in my initial post). But it does not compile anymore if I try to enable the net core update, both with and without pm_static.yml. That&amp;#39;s why I tried enabling mcuboot including net core updates from scratch, based on a sample project. Which did not work, too.&lt;/p&gt;
&lt;p&gt;I had a look at the github fix. Will this even fix my problem? It talks about &lt;span style="font-family:courier new, courier;"&gt;mcuboot_secondary_1&lt;/span&gt; and not about &lt;span style="font-family:courier new, courier;"&gt;mcuboot_primary_1&lt;/span&gt; ... will there be an updated version SDK (version 2.9.1) with the fixes in the near future?&lt;/p&gt;
&lt;p&gt;The second link doesn&amp;#39;t have any new information either...&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/525123?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 15:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9edf87d-eb40-4654-bec4-bd82874df115</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In that case, please have a look at this PR: &lt;a id="" href="https://github.com/nrfconnect/sdk-mcuboot/pull/397"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/397&lt;/a&gt;. I just assumed you had the secondary slots in external flash. You should also be using the generated partition file from your v2.5.3 project as a static partition file in your new project to ensure the memory layout remains the same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&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;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_nsib/bootloader_partitioning.html#static_partition_requirement_for_dfu&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/525120?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 15:36:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dc6aa1a-9757-4652-b5ca-3ee515d7d185</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for checking. Unfortunately, your sample uses external flash and if I disable this in the configuration, I get the same error message about &lt;span style="font-family:courier new, courier;"&gt;mcuboot_primary_1&lt;/span&gt;&amp;nbsp; again:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could you please look a little bit deeper into this? Normally, all partitions should be generated by the build system, which I can use as a basis for my static partitioning later. At least this is what the Nordic Academy course said. If the build system&amp;#39;s partitioning mechanism does not work by itself without external flash, this is a software bug in my opinion...&lt;/p&gt;
&lt;p&gt;Also, I noticed that the build system also creates&amp;nbsp;&lt;span style="font-family:courier new, courier;"&gt;mcuboot_secondary_1&lt;/span&gt; in &lt;span style="font-family:courier new, courier;"&gt;DT_CHOSEN(nordic_pm_ext_flash)&lt;/span&gt;. Under SDK v2.5.3, I could use the same slot (&lt;span style="font-family:courier new, courier;"&gt;mcuboot_secondary&lt;/span&gt;) for app core and net core updates. How can I get this running in SDK v2.9.0? ALso, in SDK v2.5.3, I didn&amp;#39;t have a &lt;span style="font-family:courier new, courier;"&gt;ram_flash&lt;/span&gt; partition or region.&lt;/p&gt;
&lt;p&gt;I do not have external flash on my board, and I cannot reserve another 256K of internal flash for the net core&amp;#39;s update image. Up until now, I used application specific code to transfer new firmware images directly into &lt;span style="font-family:courier new, courier;"&gt;mcuboot_secondary&lt;/span&gt; and flag them for confirmed update via mcuboot (executed upon the next system restart). Mcuboot seemed to detect by itself whether this was an app core or a net core image (maybe based on metadata included in the signatures). We need to keep this convention in our update process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in Secure Boot / b0n related partition configuration for nRF5340 under sysbuild in SDK v2.9.0?</title><link>https://devzone.nordicsemi.com/thread/524898?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 16:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18f8a758-fe6b-428a-a60e-23f8f268482f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using a static partition file from your existing project? &amp;#39;_primary_1&amp;#39; is the emulated flash partition in RAM used to transfer the FW update to the network core.&amp;nbsp;&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/pastedimage1740587592879v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Project I used to generate the memory report above (only verified that it builds without errors)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_lbs_5F00_dfu_5F00_test_5F00_nrf5340_5F00_v290.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_lbs_5F00_dfu_5F00_test_5F00_nrf5340_5F00_v290.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>