<?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 test image became active confirm without external confirm from mcumgr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100927/mcuboot-test-image-became-active-confirm-without-external-confirm-from-mcumgr</link><description>I am testing with NCS 2.3.0, nrf5340dk, on an application based on smp_svr sample. 
 I was testing with mcumgr and found an unexpected behavior. Maybe its a feature I have unwittingly enabled. 
 I added the configuration from nrf/tests/modules/mcuboot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Jun 2023 08:24:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100927/mcuboot-test-image-became-active-confirm-without-external-confirm-from-mcumgr" /><item><title>RE: mcuboot test image became active confirm without external confirm from mcumgr</title><link>https://devzone.nordicsemi.com/thread/432219?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 08:24:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adb99002-7b14-474b-87a9-63399d5e5a64</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;With my &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_uart_feat_external_flash"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_uart_feat_external_flash&lt;/a&gt; sample, I am able to update the application and tag the new update as &amp;quot;test&amp;quot; and then it will revert back on next reset:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.2.99-ncs2 ***
I: Starting bootloader
I: Primary image: magic=good, swap_type=0x4, copy_done=0x1, image_ok=0x1
I: Secondary image: magic=good, swap_type=0x2, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: test
I: Starting swap using move algorithm.
I: Bootloader chainload address offset: 0x10000
*** Booting Zephyr OS build v3.2.99-ncs2 ***
AAA this to see it change.
*** Booting Zephyr OS build v3.2.99-ncs2 ***
I: Starting bootloader
I: Primary image: magic=good, swap_type=0x2, copy_done=0x1, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: revert
I: Starting swap using move algorithm.
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Bootloader chainload address offset: 0x10000
*** Booting Zephyr OS build v3.2.99-ncs2 ***
Change this to see it change.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is this what you want?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot test image became active confirm without external confirm from mcumgr</title><link>https://devzone.nordicsemi.com/thread/432206?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 08:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5552507-cfc0-4769-8224-b145bec2d9ca</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="anthony.asterisk"]I&amp;#39;m not interested in serial recovery.&amp;nbsp;[/quote]
&lt;p&gt;Ah, good to get that cleared up then.&lt;/p&gt;
&lt;p&gt;This probably related to this note from &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;&amp;quot;&lt;/p&gt;
&lt;p&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 &lt;code&gt;&lt;span&gt;USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY&lt;/span&gt;&lt;/code&gt; 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;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;I checked with our developers, and this is also the case for non-simultaneous updates for the nRF5340.&lt;/p&gt;
&lt;p&gt;EDIT: No wait, this is only the case if you test both network an appliucation image at the same time.&lt;br /&gt;Let me do some more testing and get back to you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot test image became active confirm without external confirm from mcumgr</title><link>https://devzone.nordicsemi.com/thread/432109?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 16:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12c61e32-d486-4d76-b634-9b07aabcee7c</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;I&amp;#39;m not interested in serial recovery.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to get nrf5340 cpuapp and cpunet non-simultaneous upgrade from external flash.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From internal flash I was able to perform the update using the swap method to test the downloaded image. After switching to external flash the swap/test procedure no longer works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems like cpunet update requires&amp;nbsp;CONFIG_BOOT_UPGRADE_ONLY and&amp;nbsp;CONFIG_BOOT_UPGRADE_ONLY prevents the swap, is that correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot test image became active confirm without external confirm from mcumgr</title><link>https://devzone.nordicsemi.com/thread/431947?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 10:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fc1a1ec-030d-4f18-8367-3e66487d4420</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Does this sample do what you want?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/mcuboot_5F00_serial_5F00_recovery_5F00_uart_5F00_feat_5F00_smp_5F00_server_5F00_app.zip"&gt;devzone.nordicsemi.com/.../mcuboot_5F00_serial_5F00_recovery_5F00_uart_5F00_feat_5F00_smp_5F00_server_5F00_app.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellevsik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot test image became active confirm without external confirm from mcumgr</title><link>https://devzone.nordicsemi.com/thread/431845?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 18:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccdd1aeb-e904-4085-ad2b-296fda904e93</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;I suspect the issue is caused by the&amp;nbsp;&lt;span&gt;CONFIG_BOOT_UPGRADE_ONLY=y option in&amp;nbsp;child_image/mcuboot/boards/nrf5340dk_nrf5340_cpuapp.conf&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Perhaps&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I just tried disabling that option, however I started getting a errors with the partition manager addresses:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[156/198] Building C object modules/nrf/modules/mcuboot/hooks/CMakeFiles/..__nrf__modules__mcuboot__hooks.dir/nrf53_hooks.c.obj&lt;br /&gt;FAILED: modules/nrf/modules/mcuboot/hooks/CMakeFiles/..__nrf__modules__mcuboot__hooks.dir/nrf53_hooks.c.obj &lt;br /&gt;D:\Bmmpr\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DEXT_API_MAGIC=0x281ee6de,0xb845acea,13570 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,13570 -DKERNEL -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -ID:/Bmmpr/v2.3.0/zephyr/include -Izephyr/include/generated -ID:/Bmmpr/v2.3.0/zephyr/soc/arm/nordic_nrf/nrf53 -ID:/Bmmpr/v2.3.0/zephyr/soc/arm/nordic_nrf/common/. -ID:/Bmmpr/v2.3.0/nrf/include -ID:/Bmmpr/v2.3.0/nrf/tests/include -ID:/Bmmpr/v2.3.0/modules/hal/cmsis/CMSIS/Core/Include -ID:/Bmmpr/v2.3.0/modules/hal/nordic/nrfx -ID:/Bmmpr/v2.3.0/modules/hal/nordic/nrfx/drivers/include -ID:/Bmmpr/v2.3.0/modules/hal/nordic/nrfx/mdk -ID:/Bmmpr/v2.3.0/zephyr/modules/hal_nordic/nrfx/. -ID:/Bmmpr/v2.3.0/bootloader/mcuboot/ext/tinycrypt/lib/include -ID:/Bmmpr/v2.3.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -ID:/Bmmpr/v2.3.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -ID:/Bmmpr/v2.3.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -ID:/Bmmpr/v2.3.0/bootloader/mcuboot/boot/bootutil/zephyr/../../../ext/tinycrypt/lib/include -isystem D:/Bmmpr/v2.3.0/zephyr/lib/libc/minimal/include -isystem d:/bmmpr/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -isystem d:/bmmpr/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -isystem D:/Bmmpr/v2.3.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros D:/Bmmpr/provisioning/provisioning_image/smp_svr/build/mcuboot/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=D:/Bmmpr/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros D:/Bmmpr/v2.3.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=D:/Bmmpr/v2.3.0/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=D:/Bmmpr/v2.3.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=D:/Bmmpr/v2.3.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT modules/nrf/modules/mcuboot/hooks/CMakeFiles/..__nrf__modules__mcuboot__hooks.dir/nrf53_hooks.c.obj -MF modules\nrf\modules\mcuboot\hooks\CMakeFiles\..__nrf__modules__mcuboot__hooks.dir\nrf53_hooks.c.obj.d -o modules/nrf/modules/mcuboot/hooks/CMakeFiles/..__nrf__modules__mcuboot__hooks.dir/nrf53_hooks.c.obj -c D:/Bmmpr/v2.3.0/nrf/modules/mcuboot/hooks/nrf53_hooks.c&lt;br /&gt;D:/Bmmpr/v2.3.0/nrf/modules/mcuboot/hooks/nrf53_hooks.c: In function &amp;#39;boot_read_image_header_hook&amp;#39;:&lt;br /&gt;D:\Bmmpr\v2.3.0\nrf\modules\mcuboot\hooks\nrf53_hooks.c:28:42: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ADDRESS&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ADDRESS&amp;#39;?&lt;br /&gt; 28 | img_head-&amp;gt;ih_load_addr = PM_MCUBOOT_PRIMARY_1_ADDRESS;&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt; | PM_MCUBOOT_PRIMARY_ADDRESS&lt;br /&gt;D:\Bmmpr\v2.3.0\nrf\modules\mcuboot\hooks\nrf53_hooks.c:28:42: note: each undeclared identifier is reported only once for each function it appears in&lt;br /&gt;In file included from D:\Bmmpr\v2.3.0\zephyr\include\zephyr\toolchain\gcc.h:89,&lt;br /&gt; from D:\Bmmpr\v2.3.0\zephyr\include\zephyr\toolchain.h:50,&lt;br /&gt; from D:\Bmmpr\v2.3.0\zephyr\include\zephyr\sys\__assert.h:11,&lt;br /&gt; from D:\Bmmpr\v2.3.0\zephyr\lib\libc\minimal\include\assert.h:11,&lt;br /&gt; from D:\Bmmpr\v2.3.0\nrf\modules\mcuboot\hooks\nrf53_hooks.c:7:&lt;br /&gt;D:/Bmmpr/v2.3.0/nrf/modules/mcuboot/hooks/nrf53_hooks.c: In function &amp;#39;network_core_update&amp;#39;:&lt;br /&gt;D:\Bmmpr\v2.3.0\zephyr\include\zephyr\device.h:83:41: error: &amp;#39;__device_dts_ord_DT_N_NODELABEL_PM_MCUBOOT_PRIMARY_1_DEV_ORD&amp;#39; undeclared (first use in this function)&lt;br /&gt; 83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)&lt;br /&gt; | ^~~~~~~~~&lt;br /&gt;D:\Bmmpr\v2.3.0\zephyr\include\zephyr\device.h:209:37: note: in expansion of macro &amp;#39;DEVICE_NAME_GET&amp;#39;&lt;br /&gt; 209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))&lt;br /&gt; | ^~~~~~~~~~~~~~~&lt;br /&gt;D:\Bmmpr\v2.3.0\zephyr\include\zephyr\device.h:226:34: note: in expansion of macro &amp;#39;DEVICE_DT_NAME_GET&amp;#39;&lt;br /&gt; 226 | #define DEVICE_DT_GET(node_id) (&amp;amp;DEVICE_DT_NAME_GET(node_id))&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~&lt;br /&gt;D:\Bmmpr\v2.3.0\nrf\modules\mcuboot\hooks\nrf53_hooks.c:85:26: note: in expansion of macro &amp;#39;DEVICE_DT_GET&amp;#39;&lt;br /&gt; 85 | mock_flash_dev = DEVICE_DT_GET(DT_NODELABEL(PM_MCUBOOT_PRIMARY_1_DEV));&lt;br /&gt; | ^~~~~~~~~~~~~&lt;br /&gt;[157/198] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/D_/Bmmpr/v2.3.0/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj&lt;br /&gt;[158/198] Building C object modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/D_/Bmmpr/v2.3.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj&lt;br /&gt;[159/198] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/D_/Bmmpr/v2.3.0/modules/hal/nordic/nrfx/drivers/src/nrfx_dppi.c.obj&lt;br /&gt;[160/198] Linking C static library zephyr\drivers\pinctrl\libdrivers__pinctrl.a&lt;br /&gt;[161/198] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/D_/Bmmpr/v2.3.0/modules/hal/nordic/nrfx/mdk/system_nrf5340_application.c.obj&lt;br /&gt;[162/198] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a&lt;br /&gt;[163/198] Linking C static library modules\nrf\subsys\fw_info\lib..__nrf__subsys__fw_info.a&lt;br /&gt;[164/198] Linking C static library modules\nrf\subsys\pcd\lib..__nrf__subsys__pcd.a&lt;br /&gt;[165/198] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/D_/Bmmpr/v2.3.0/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;[429/447] Generating zephyr/b0_container.hex&lt;br /&gt;FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf &lt;br /&gt;cmd.exe /C &amp;quot;cd /D D:\Bmmpr\provisioning\provisioning_image\smp_svr\build\mcuboot &amp;amp;&amp;amp; D:\Bmmpr\toolchains\v2.3.0\opt\bin\cmake.exe --build . --&amp;quot;&lt;br /&gt;[431/447] Linking C executable zephyr\zephyr.elf&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot test image became active confirm without external confirm from mcumgr</title><link>https://devzone.nordicsemi.com/thread/431841?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 17:48:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ef14f28-8f11-454f-9cfd-597536a8cc6f</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;Actually I have already tested with the serial recovery config options disabled, last week.&amp;nbsp; It was still overwriting and not swapping.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also I should add that I did already review the differences between 2.4.0 and 2.3.0.&lt;/p&gt;
&lt;p&gt;Here is my child_image/mcuboot/prj.conf, you can see I have commented out the&amp;nbsp;&lt;span&gt;CONFIG_MCUBOOT_SERIAL and&amp;nbsp;CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;# In order to provide board specific configurations to the MCUboot child image&lt;br /&gt;# we also need to provide a base configuration for MCUboot. This file contains&lt;br /&gt;# the basic configurations needed to successfully build and run MCUboot.&lt;br /&gt;CONFIG_PM=n&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;# MCUboot requires a large stack size, otherwise an MPU fault will occur&lt;br /&gt;CONFIG_MAIN_STACK_SIZE=10240&lt;br /&gt;CONFIG_MBEDTLS_CFG_FILE=&amp;quot;mcuboot-mbedtls-cfg.h&amp;quot;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;#since flash pages are heterogenous swap with scratch?&lt;br /&gt;CONFIG_BOOT_SWAP_USING_SCRATCH=y&lt;br /&gt;CONFIG_BOOT_PREFER_SWAP_MOVE=n&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;#AA TODO switch y ?&lt;br /&gt;#CONFIG_BOOT_SWAP_SAVE_ENCTLV=n&lt;br /&gt;CONFIG_BOOT_ENCRYPT_RSA=n&lt;br /&gt;CONFIG_BOOT_ENCRYPT_EC256=n&lt;br /&gt;CONFIG_BOOT_ENCRYPT_X25519=n&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;CONFIG_BOOT_UPGRADE_ONLY=n&lt;br /&gt;CONFIG_BOOT_BOOTSTRAP=n&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;# Enable flash operations&lt;br /&gt;CONFIG_FLASH=y&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;CONFIG_LOG=y&lt;br /&gt;CONFIG_LOG_MODE_MINIMAL=y # former CONFIG_MODE_MINIMAL&lt;br /&gt;### Ensure Zephyr logging changes don&amp;#39;t use more resources&lt;br /&gt;CONFIG_LOG_DEFAULT_LEVEL=0&lt;br /&gt;### Decrease footprint by ~4 KB in comparison to CBPRINTF_COMPLETE=y&lt;br /&gt;CONFIG_CBPRINTF_NANO=y&lt;br /&gt;CONFIG_NRF_RTC_TIMER_USER_CHAN_COUNT=0&lt;br /&gt;# This can be increased to accommodate the bigger images.&lt;br /&gt;CONFIG_BOOT_MAX_IMG_SECTORS=256&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;# Enable serial recovery&lt;br /&gt;# AA TODO maybe?&lt;br /&gt;#CONFIG_UART_CONSOLE=n&lt;br /&gt;#CONFIG_MCUBOOT_SERIAL=y&lt;br /&gt;#CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD=&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is my child_image/mcuboot/boards/nrf5340dk_nrf5340_cpuapp.conf&lt;/p&gt;
&lt;p&gt;# The following configurations are required to support simultaneous multi image update&lt;br /&gt;CONFIG_PCD_APP=y&lt;br /&gt;CONFIG_UPDATEABLE_IMAGE_NUMBER=2&lt;br /&gt;CONFIG_FLASH_SIMULATOR=y&lt;br /&gt;CONFIG_FLASH_SIMULATOR_DOUBLE_WRITES=y&lt;br /&gt;CONFIG_FLASH_SIMULATOR_STATS=n&lt;br /&gt;CONFIG_BOOT_UPGRADE_ONLY=y&lt;/p&gt;
&lt;p&gt;CONFIG_SIZE_OPTIMIZATIONS=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is my child_image/mcuboot.conf&lt;/p&gt;
&lt;p&gt;CONFIG_NCS_MCUBOOT_IN_BUILD=y&lt;br /&gt;CONFIG_FW_INFO_FIRMWARE_VERSION=&lt;/p&gt;
&lt;p&gt;# Configure QSPI for external flash&lt;br /&gt;CONFIG_FLASH=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot test image became active confirm without external confirm from mcumgr</title><link>https://devzone.nordicsemi.com/thread/431838?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 17:13:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d5a69b5-d4dc-407a-90b0-6d629c6e4864</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;Thanks for the link to your (unofficial) documentation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I understand it, serial recover should be a serial interface from mcuboot, right?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I sent the image using the application running the smp server, NOT serial recovery so it should not have overwritten the primary slot.&amp;nbsp; &amp;nbsp;Further it only performs the update after i have marked it for TEST and then perform a reset. It Is not marked CONFIRM, yet the image is still written into the primary slow instead of being temporarily swapped.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However perhaps when serial recover is enabled the behavior to always overwrite the primary slot becomes the default?&amp;nbsp; I will remove the serial recover options and re-test to see if this behavior goes away.&amp;nbsp; &amp;nbsp;If it does, then I feel this is a bug.&amp;nbsp; The serial recovery behavior should only be active when mcuboot recieves the image via serial, not when the application / smp server writes it into the secondary slot and clearly marks it as a test image.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot test image became active confirm without external confirm from mcumgr</title><link>https://devzone.nordicsemi.com/thread/431816?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 14:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffac528e-f9d9-484e-9626-51fdbb2ae91b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First a note: The test you use have been updated in v2.4.0, I suggest looking at the changes to child image configuration, which makes it configure the MCUboot child image properly.&lt;/p&gt;
&lt;p&gt;Then to your question:&lt;/p&gt;
&lt;p&gt;Serial Recovery will overwrite the primary slot, and by default not interact with the secondary slot.&lt;br /&gt;So what you explain is expected.&lt;/p&gt;
&lt;p&gt;I have written a little intro to MCUboot + samples at &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples&lt;/a&gt;. (not official)&lt;/p&gt;
&lt;p&gt;Give it a read, and let me know if you got any questions.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>