<?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>Multi-image or non-simultaneous network core update example with BOOT_SWAP_USING_SCRATCH?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115765/multi-image-or-non-simultaneous-network-core-update-example-with-boot_swap_using_scratch</link><description>Hi, 
 We are trying to enable Multi-Image DFU on the nRF5340 so we may update the network core on its own (no app core update). We realized that to be able to update just the network core on its own we basically had to pull most of Kconfig options used</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Oct 2024 16:03:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115765/multi-image-or-non-simultaneous-network-core-update-example-with-boot_swap_using_scratch" /><item><title>RE: Multi-image or non-simultaneous network core update example with BOOT_SWAP_USING_SCRATCH?</title><link>https://devzone.nordicsemi.com/thread/507804?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 16:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e216f00-690f-4f1a-bdc1-26b312d36dd2</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="responsible_duck"]But&amp;nbsp;&lt;em&gt;CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY&lt;/em&gt; is only for when not using&amp;nbsp;CONFIG_BOOT_UPGRADE_ONLY?[/quote]
&lt;p&gt;That&amp;#39;s right, see the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/modules/mcuboot/Kconfig#L93"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/modules/mcuboot/Kconfig#L93&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY
	bool
	help
	  Enabling this option allows you to use NRF53_MULTI_IMAGE update
	  without having BOOT_UPGRADE_ONLY enabled, allowing you to use
	  different swapping methods. This will however give you the potential
	  of bricking the network core upon reverts.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are you able to build this project&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/mcuboot_5F00_netcore_5F00_serial_5F00_recovery_5F00_cdc_5F00_acm_5F00_302425.7z"&gt;devzone.nordicsemi.com/.../mcuboot_5F00_netcore_5F00_serial_5F00_recovery_5F00_cdc_5F00_acm_5F00_302425.7z&lt;/a&gt; without issue?&amp;nbsp;&amp;nbsp;It is enabled&amp;nbsp;CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY=y in prj.conf.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-image or non-simultaneous network core update example with BOOT_SWAP_USING_SCRATCH?</title><link>https://devzone.nordicsemi.com/thread/507659?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 22:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b551363c-f475-4426-8285-62c7c4a22300</guid><dc:creator>responsible_duck</dc:creator><description>&lt;p&gt;Yes we use 2.6.1 :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is the error:&lt;/p&gt;
&lt;p&gt;error: USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY (defined at&lt;br /&gt;/opt/nordic/ncs/v2.6.1/nrf/modules/mcuboot/Kconfig:93) is assigned in a configuration file, but is&lt;br /&gt;not directly user-configurable (has no prompt). It gets its value indirectly from other symbols. See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt;&lt;br /&gt;and/or look up USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY in the menuconfig/guiconfig interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-image or non-simultaneous network core update example with BOOT_SWAP_USING_SCRATCH?</title><link>https://devzone.nordicsemi.com/thread/507658?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 22:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f4b3aff-e994-4c8f-b32d-7c65f09c548c</guid><dc:creator>responsible_duck</dc:creator><description>&lt;p&gt;But&amp;nbsp;&lt;em&gt;CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY&lt;/em&gt; is only for when not using&amp;nbsp;CONFIG_BOOT_UPGRADE_ONLY?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-image or non-simultaneous network core update example with BOOT_SWAP_USING_SCRATCH?</title><link>https://devzone.nordicsemi.com/thread/507638?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 17:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc1f6bb8-c0f8-41e3-bc9a-b80a18cd014b</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="responsible_duck"]We tried&amp;nbsp;defining&amp;nbsp;&lt;em&gt;CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY&amp;nbsp;&lt;/em&gt;in the Kconfig and then enabling it but had no luck having it appear in our .config.[/quote]
&lt;p&gt;It doesn&amp;#39;t need to&amp;nbsp;&lt;span&gt;define&amp;nbsp;&lt;/span&gt;&lt;em&gt;CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY&amp;nbsp;&lt;/em&gt;&lt;span&gt;in the Kconfig for NCS v2.6.1. If you get the config is undefined, try to update SDK via ToolChain Manager.&amp;nbsp;&lt;br /&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/pastedimage1729705363212v1.png" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Did you see any build warnings regarding&amp;nbsp;&lt;em&gt;CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY got n?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Just add&amp;nbsp;CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY=y to prj.conf. That should be enough.&amp;nbsp;&lt;/p&gt;
[quote user="responsible_duck"]But what you are saying is we should not use&amp;nbsp;&lt;em&gt;CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY&amp;nbsp;&lt;/em&gt;since we should only use&amp;nbsp;&lt;span&gt;CONFIG_BOOT_UPGRADE_ONLY.&lt;/span&gt;[/quote]
&lt;p&gt;I mean you should use&amp;nbsp;&lt;span&gt;CONFIG_BOOT_UPGRADE_ONLY&amp;nbsp;instead of&lt;/span&gt;&amp;nbsp;&lt;span&gt;CONFIG_BOOT_SWAP_USING_SCRATCH.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-image or non-simultaneous network core update example with BOOT_SWAP_USING_SCRATCH?</title><link>https://devzone.nordicsemi.com/thread/507636?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 17:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:207f9ff0-490d-475f-9d7c-1435608081b6</guid><dc:creator>responsible_duck</dc:creator><description>&lt;p&gt;Hi Amanda,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Appreciate the response&lt;/p&gt;
&lt;p&gt;We tried&amp;nbsp;defining&amp;nbsp;&lt;em&gt;CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY&amp;nbsp;&lt;/em&gt;in the Kconfig and then enabling it but had no luck having it appear in our .config.&lt;/p&gt;
&lt;p&gt;But what you are saying is we should not use&amp;nbsp;&lt;em&gt;CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY&amp;nbsp;&lt;/em&gt;since we should only use&amp;nbsp;&lt;span&gt;CONFIG_BOOT_UPGRADE_ONLY.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-image or non-simultaneous network core update example with BOOT_SWAP_USING_SCRATCH?</title><link>https://devzone.nordicsemi.com/thread/507635?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 16:55:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d86521d-6c78-46ba-9800-6feb63642d9a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We recommend CONFIG_BOOT_UPGRADE_ONLY when using an external flash chip. Please see my colleague&amp;#39;s explanation in&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/85175/nrf5340-netcore-firmware-update-using-external-flash/361159"&gt; this post&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]how does USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY work? I don&amp;#39;t see it used anywhere in the SDK (v.2.6.1). And how to enable it?[/quote]
&lt;p&gt;See this note from&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/working_with_nrf/nrf53/nrf5340.html#simultaneous-multi-image-dfu"&gt;Working with the nRF5340&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The application core can be reverted, but doing so bricks the network core upon revertion, as the reversion process fills the network core with the content currently in the RAM that pcd uses. To enable this, define the&amp;nbsp;&lt;code&gt;USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY&lt;/code&gt;&amp;nbsp;Kconfig option in the project-level Kconfig file. When this is option is defined, you can enable it by setting :kconfig:option`CONFIG_USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY`.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]We are nearing production and need to establish revertible non-simultaneous updates for network core.[/quote]
&lt;p&gt;Check out my colleague&amp;#39;s unofficial example&amp;nbsp;&lt;a title="mcuboot_smp_ble" href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_ble"&gt;mcuboot_smp_ble&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a title="mcuboot_smp_uart" href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_uart"&gt;mcuboot_smp_uart&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>