<?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>problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110706/problem-updating-mcuboot-over-fota-in-dual-stage-bootloader-configuration</link><description>My main goal is to update the firmware over FOTA on a nRF5340, but with a signed firmware update file, and the bootloader verifies it. This is possible with mcuboot and works. But I also want to change the public key which mcuboot uses to verify the firmware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 May 2024 09:51:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110706/problem-updating-mcuboot-over-fota-in-dual-stage-bootloader-configuration" /><item><title>RE: problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/thread/484912?ContentTypeID=1</link><pubDate>Mon, 20 May 2024 09:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d00d088d-cf22-418a-a27e-7c59c044dff2</guid><dc:creator>frankbuss</dc:creator><description>&lt;p&gt;I think the problem was that the external flash was in some weird state because of all the testings. I erased it with &lt;span&gt;&amp;quot;flash erase mx25r6435f&lt;/span&gt;&lt;span&gt;@0 0 800000&lt;/span&gt;&lt;span&gt;&amp;quot; from the shell, and then nRF Connect worked again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/thread/482585?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 16:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c80bc827-9a23-4e82-8ba2-8cba587cd728</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Could you use the latest version of NCS v2.6.1 for bug fixing?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/thread/482182?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 07:45:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dacbac5-5145-444e-8f2e-5a3678e94d33</guid><dc:creator>frankbuss</dc:creator><description>&lt;p&gt;Yes, I changed MCUBoot as well. Here is the current sample project:&lt;br /&gt;&lt;a id="" href="https://www.frank-buss.de/tmp/peripheral_hr_smp_b0.zip"&gt;https://www.frank-buss.de/tmp/peripheral_hr_smp_b0.zip&lt;/a&gt;&lt;br /&gt;First I flashed it with&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FW_INFO_FIRMWARE_VERSION&lt;/span&gt;&lt;span&gt;=14&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;in mcuboot.conf, and also used&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;BOOT_LOG_INF&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Starting bootloader 14&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;for&amp;nbsp;bootloader/mcuboot/boot/zephyr/main.c. I&amp;nbsp;built the project with this line:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;rm -rf build ; west build --board=nrf5340dk_nrf5340_cpuapp -p always&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Then I flashed it with &amp;quot;west flash --recover&amp;quot;.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Then I changed the two 14 numbers to 15, built it again, and flashed it with &amp;quot;&lt;span&gt;build/zephyr/dfu_mcuboot.zip&amp;quot; over FOTA with nRF Connect. It showed the graph, which looked like it transferred 2 files. While transferring, it&amp;nbsp;showed also some information that it erased something, but apparently not the mcuboot. I needed to reset it manually, and it showed the same 14 numbers. Full log:&lt;br /&gt;&lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs2 *** &lt;br /&gt;Attempting to boot slot 0. &lt;br /&gt;Attempting to boot from address 0x8200. &lt;br /&gt;Verifying signature against key 0. &lt;br /&gt;Hash: 0xb4...42 &lt;br /&gt;Firmware signature verified. &lt;br /&gt;Firmware version 14 &lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs2 *** &lt;br /&gt;I: Starting bootloader 14 &lt;br /&gt;I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 &lt;br /&gt;I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 &lt;br /&gt;I: Boot source: none &lt;br /&gt;I: Swap type: none &lt;br /&gt;I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 &lt;br /&gt;I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 &lt;br /&gt;I: Boot source: none &lt;br /&gt;I: Swap type: none &lt;br /&gt;I: Bootloader chainload address offset: 0x28000 &lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs2 *** &lt;br /&gt;[00:00:00.030,273] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: HW Platform: Nordic Semiconductor (0x0002) &lt;br /&gt;[00:00:00.030,334] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: HW Variant: nRF53x (0x0003) &lt;br /&gt;[00:00:00.030,364] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 216.11532 Build 3803067951 &lt;br /&gt;[00:00:00.032,348] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: Identity: F2:7C:B6:5D:C3:74 (random) &lt;br /&gt;[00:00:00.032,379] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: HCI: version 5.3 (0x0c) revision 0x224b, manufacturer 0x0059 &lt;br /&gt;[00:00:00.032,409] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: LMP: version 5.3 (0x0c) subver 0x224b &lt;br /&gt;Bluetooth initialized &lt;br /&gt;Advertising successfully started &lt;br /&gt;build time: May &amp;nbsp;7 2024 a 09:26:26 &lt;br /&gt;Connected &lt;br /&gt;[00:02:29.361,358] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none &lt;br /&gt;[00:02:29.501,556] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none &lt;br /&gt;[00:02:29.501,586] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none &lt;br /&gt;[00:02:34.856,658] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none &lt;br /&gt;[00:02:34.856,719] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none &lt;br /&gt;[00:02:35.721,282] &amp;lt;inf&amp;gt; mcumgr_img_mgmt: img_mgmt_erase_image_data: Erased 0xa000 bytes of image slot &lt;br /&gt;[00:02:35.807,739] &amp;lt;inf&amp;gt; mcumgr_img_mgmt: img_mgmt_erase_image_data: Erased 0x1000 bytes of image slot trailer &lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs2 *** &lt;br /&gt;Attempting to boot slot 0. &lt;br /&gt;Attempting to boot from address 0x8200. &lt;br /&gt;Verifying signature against key 0. &lt;br /&gt;Hash: 0xb4...42 &lt;br /&gt;Firmware signature verified. &lt;br /&gt;Firmware version 14 &lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs2 *** &lt;br /&gt;I: Starting bootloader 14 &lt;br /&gt;I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 &lt;br /&gt;I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 &lt;br /&gt;I: Boot source: none &lt;br /&gt;I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 &lt;br /&gt;I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 &lt;br /&gt;I: Boot source: none &lt;br /&gt;I: Swap type: none &lt;br /&gt;I: Bootloader chainload address offset: 0x28000 &lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs2 *** &lt;br /&gt;[00:00:00.030,303] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: HW Platform: Nordic Semiconductor (0x0002) &lt;br /&gt;[00:00:00.030,364] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: HW Variant: nRF53x (0x0003) &lt;br /&gt;[00:00:00.030,395] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 216.11532 Build 3803067951 &lt;br /&gt;[00:00:00.032,379] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: Identity: F2:7C:B6:5D:C3:74 (random) &lt;br /&gt;[00:00:00.032,409] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: HCI: version 5.3 (0x0c) revision 0x224b, manufacturer 0x0059 &lt;br /&gt;[00:00:00.032,440] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: LMP: version 5.3 (0x0c) subver 0x224b &lt;br /&gt;Bluetooth initialized &lt;br /&gt;Advertising successfully started&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/thread/482136?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 21:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c666d2a-7bfe-4e5c-83bc-6ec597ecfa9b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Do you&amp;nbsp;&lt;span&gt;make a change to MCUBoot?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To make the change visible, make a change to MCUBoot, for example add a log in $NRF_CONNECT_SDK/bootloader/mcuboot/boot/zephyr/main.c.&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: problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/thread/482111?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 16:18:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13d04a6a-1371-4071-b0cd-b2755fd8cb77</guid><dc:creator>frankbuss</dc:creator><description>&lt;p&gt;I tried the&amp;nbsp;&lt;span&gt;peripheral_hr_smp_b0.zip file from the link you posted, but still doesn&amp;#39;t work. First I had to change the source file, because some includes where outdated. Then I removed the hardcoded private file, which should cause it to use the internal key. I flashed then the version 11 Then I changed it to version 12 and compiled it again. This&amp;nbsp;it looks like I could use the dfu_mcuboot.zip file, I got the progress graph, and looks like it flashed both files. But after booting it was still version 11. See below for the log on the serial terminal.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I also tried the 2 files&amp;nbsp;&lt;span&gt;signed_by_mcuboot_and_b0_s0_image_update.bin and&amp;nbsp;signed_by_mcuboot_and_b0_s1_image_update.bin with the peripheral_hr_smp_b0 demo project, but didn&amp;#39;t work either. Looks like they didn&amp;#39;t flash anything&lt;br /&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m out of ideas. Could you try the&amp;nbsp;peripheral_hr_smp_b0 sample on a nrf5340dk board, and&amp;nbsp;fix it if required, or describe in detail how I can compile and flash it so that mcuboot gets updated?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;*** Booting Zephyr OS build v3.2.99-ncs2 *** &lt;br /&gt;Attempting to boot slot 0. &lt;br /&gt;Attempting to boot from address 0x8200. &lt;br /&gt;Verifying signature against key 0. &lt;br /&gt;Hash: 0x7f...07 &lt;br /&gt;Firmware signature verified. &lt;br /&gt;Firmware version 11 &lt;br /&gt;Setting monotonic counter (version: 11, slot: 0) &lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs2 *** &lt;br /&gt;Attempting to boot slot 0. &lt;br /&gt;Attempting to boot from address 0x8200. &lt;br /&gt;Verifying signature against key 0. &lt;br /&gt;Hash: 0x7f...07 &lt;br /&gt;Firmware signature verified. &lt;br /&gt;Firmware version 11 &lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs2 *** &lt;br /&gt;[00:00:00.030,242] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: HW Platform: Nordic Semiconductor (0x0002) &lt;br /&gt;[00:00:00.030,303] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: HW Variant: nRF53x (0x0003) &lt;br /&gt;[00:00:00.030,334] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 216.11532 Build 3803067951 &lt;br /&gt;[00:00:00.032,318] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: Identity: F2:7C:B6:5D:C3:74 (random) &lt;br /&gt;[00:00:00.032,348] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: HCI: version 5.3 (0x0c) revision 0x224b, manufacturer 0x0059 &lt;br /&gt;[00:00:00.032,379] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: LMP: version 5.3 (0x0c) subver 0x224b &lt;br /&gt;Bluetooth initialized &lt;br /&gt;Advertising successfully started &lt;br /&gt;build time: May &amp;nbsp;6 2024 a 17:30:00 &lt;br /&gt;Connected &lt;br /&gt;[00:14:17.292,266] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none &lt;br /&gt;[00:14:17.433,807] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none &lt;br /&gt;[00:14:17.433,868] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none &lt;br /&gt;[00:14:22.428,955] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none &lt;br /&gt;[00:14:22.429,016] &amp;lt;inf&amp;gt; mcuboot_util: boot_swap_type_multi: Swap type: none &lt;br /&gt;[00:14:23.293,853] &amp;lt;inf&amp;gt; mcumgr_img_mgmt: img_mgmt_erase_image_data: Erased 0xa000 bytes of image slot &lt;br /&gt;[00:14:23.380,340] &amp;lt;inf&amp;gt; mcumgr_img_mgmt: img_mgmt_erase_image_data: Erased 0x1000 bytes of image slot trailer &lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs2 *** &lt;br /&gt;Attempting to boot slot 0. &lt;br /&gt;Attempting to boot from address 0x8200. &lt;br /&gt;Verifying signature against key 0. &lt;br /&gt;Hash: 0x7f...07 &lt;br /&gt;Firmware signature verified. &lt;br /&gt;Firmware version 11 &lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs2 *** &lt;br /&gt;[00:00:00.030,303] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: HW Platform: Nordic Semiconductor (0x0002) &lt;br /&gt;[00:00:00.030,364] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: HW Variant: nRF53x (0x0003) &lt;br /&gt;[00:00:00.030,364] &amp;lt;inf&amp;gt; bt_hci_core: hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 216.11532 Build 3803067951 &lt;br /&gt;[00:00:00.032,379] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: Identity: F2:7C:B6:5D:C3:74 (random) &lt;br /&gt;[00:00:00.032,409] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: HCI: version 5.3 (0x0c) revision 0x224b, manufacturer 0x0059 &lt;br /&gt;[00:00:00.032,440] &amp;lt;inf&amp;gt; bt_hci_core: bt_dev_show_info: LMP: version 5.3 (0x0c) subver 0x224b &lt;br /&gt;Bluetooth initialized &lt;br /&gt;Advertising successfully started &lt;br /&gt;build time: May &amp;nbsp;6 2024 a 17:30:00&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/thread/481828?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 14:01:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6614110d-d98b-4b9c-9c7b-635f7672d429</guid><dc:creator>frankbuss</dc:creator><description>&lt;p&gt;This is the same posting, but I&amp;#39;ll try their project zip, maybe some setting is different.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/thread/481822?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 13:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:773e0811-eb3f-4356-a736-00ad7b0b8e21</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93928/dfu-of-mcuboot-over-ble-fails-with-not_supported?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;This post&lt;/a&gt;&amp;nbsp;has the answer.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/thread/481813?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 13:33:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3f28034-7d6b-4f1a-bf58-487dbac18b01</guid><dc:creator>frankbuss</dc:creator><description>&lt;p&gt;I checked the posting about dfu_mcuboot.zip. They tried&amp;nbsp;signed_by_mcuboot_and_b0_s0_image_update.bin and&amp;nbsp;signed_by_mcuboot_and_b0_s1_image_update.bin, but it doesn&amp;#39;t work. I also changed&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FW_INFO_FIRMWARE_VERSION in mcuboot.conf to 2.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I looked at the nRF log when I tried the zip file, and it&amp;nbsp;looks like it is something on the device:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&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/Screenshot_5F00_20240503_5F00_153307.png" alt=" " /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/thread/481390?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 15:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c832db7d-2498-41ed-be8d-16b4cf149bb5</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="frankbuss"]But updating mcuboot with dfu_mcuboot.zip doesn&amp;#39;t work.[/quote]
&lt;p&gt;Check out&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93928/dfu-of-mcuboot-over-ble-fails-with-not_supported?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;this post.&lt;/a&gt;&lt;/p&gt;
[quote user="frankbuss"]How many keys can I store in this OTP place?[/quote]
&lt;p&gt;One-time programmable (OTP) memory is typically used for holding values that are written once, and then never to be changed again throughout the product lifetime. The OTP region of UICR is emulated by placing a write-once per halfword limitation on registers defined here.&lt;/p&gt;
&lt;p&gt;The key storage region contains multiple key slots, where each slot consists of a key header and an associated key value. The key value is limited to 128 bits. Any key size greater than 128 bits must be divided and distributed over multiple key slot instances.&lt;/p&gt;
&lt;p&gt;Key headers are allocated an address range of 0x400 in the UICR memory map, allowing a total of 128 keys to be addressable inside the key storage region. See &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/kmu.html#ariaid-title2"&gt;nRF5340 PS&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also see&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/samples/bootloader/README.html#otp-regions"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/samples/bootloader/README.html#otp-regions&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/thread/481378?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 13:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fbe6994-b7b8-449d-a1de-4263580b429c</guid><dc:creator>frankbuss</dc:creator><description>&lt;p&gt;Thanks, this works, now I can update the application with the&amp;nbsp;&lt;span&gt;dfu_application.zip file. But updating mcuboot with dfu_mcuboot.zip doesn&amp;#39;t work.&amp;nbsp;nRF Connect shows the upload graph, but then&amp;nbsp;looks like it closes without uploading. I also tried to increase&amp;nbsp;&lt;/span&gt;CONFIG_FW_INFO_FIRMWARE_VERSION to 2.&lt;/p&gt;
&lt;p&gt;But if this works, I might be in trouble anyway, because the 2 instances of mcuboot and B0 reduces the space for the application. Best would be if B0 could update the application from the external flash, because I can use multiple keys with B0, so I could revoke compromised keys, as described here:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/security/bootloader/bl_storage.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/security/bootloader/bl_storage.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;But I guess B0 can&amp;#39;t update the application image from external flash, and mucboot can&amp;#39;t use the keys in the Bootloader storage? If mcuboot could use the keys from this storage, this would be probably the best solution. I could provision it then&amp;nbsp;with the normal&amp;nbsp;public key, and a disaster public key (or multiple) in case the first key gets compromised. How many keys can I store in this OTP place?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem updating mcuboot over FOTA in dual stage bootloader configuration</title><link>https://devzone.nordicsemi.com/thread/481342?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 17:55:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:350660eb-ec6e-4963-8585-3a3905d4284d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]When I change the message in the app, and compile it again, and want to update it over FOTA with the file &amp;quot;build/zephyr/dfu_application.zip&amp;quot; and nRF Connect, then&amp;nbsp;looks like the mobile app hangs, says just &amp;quot;Connecting&amp;quot;, but it doesn&amp;#39;t upload. This used to work without the extra settings for b0 etc. Is there some setting wrong or missing?[/quote]
&lt;p&gt;Try to add this config&amp;nbsp;CONFIG_MCUMGR_SMP_BT_AUTHEN=n to prj.conf.&lt;/p&gt;
[quote user=""]can I combine the mcuboot update zip file with the application and network update zip file?[/quote]
&lt;p&gt;Unfortunately, no. the app doesn&amp;#39;t support that.&amp;nbsp;&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>