<?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>DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79571/dfu-update-from-nrf5-sdk-to-nrf-connect-sdk</link><description>Hi there, 
 We currently have ~500 nRF52832 devices running nRF5 SDK (bootloader, S132, application). These devices are updated using the nRF5 SDK Secure Bootloader UART DFU. 
 I have rewritten the application firmware using NCS (nRF Connect SDK) and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Nov 2021 07:59:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79571/dfu-update-from-nrf5-sdk-to-nrf-connect-sdk" /><item><title>RE: DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/337399?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 07:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27ac2c3e-ab4e-4f36-bdae-6b538c4ce56f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Sean,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. I got the&amp;nbsp;INSUFFICIENT RESOURCES error while updating DFU with your procedure. To get rid of the error, I have to modify&amp;nbsp;FLASH&amp;nbsp;(rx)&amp;nbsp;:&amp;nbsp;ORIGIN&amp;nbsp;=&amp;nbsp;0x78000 to&amp;nbsp;0x64000. I think it might cause by the bootloader sizes different. The current space for the bootloader is insufficient&lt;span&gt;&amp;nbsp;for the new mcuboot.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Yes, you can modify the bootloader address to achieve that. Make sure the bootloader address is the same as the mcuboot address.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/337303?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 14:27:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de42e68b-b122-46f9-a8d8-5cd6719b611e</guid><dc:creator>FARLY7</dc:creator><description>[quote userid="77782" url="~/f/nordic-q-a/79571/dfu-update-from-nrf5-sdk-to-nrf-connect-sdk/337190#337190"]You can use&amp;nbsp;&lt;span&gt;the nRF52832_UART_pm_static.yml under the NCS_blinky folder, but you have to modify the&amp;nbsp;FLASH_START of the nRF5 bootloader to 0x64000 the same as the mcuboot address. Here is my test file. &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_nRF5_5F00_NCS_5F00_over_5F00_DFU_5F00_1102.zip"&gt;dfu_nRF5_NCS_over_DFU_1102.zip&lt;/a&gt; I have added pca10040_s112_ble and&amp;nbsp;pca10040_s112_ble_debug under&amp;nbsp;secure_bootloader with&amp;nbsp;FLASH_START at&amp;nbsp;0x64000 and updated with&amp;nbsp;NCS_blinky and&amp;nbsp;NCS_peripheral_uart generated by nRF52832_UART_pm_static.yml without issue.&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;Ok thank you, I will test your project tomorrow and let you know. I have two questions:&lt;/p&gt;
&lt;p&gt;1. From the .zip you shared a few weeks ago, I checked the file &amp;#39;&lt;code&gt;pca10040_s132_ble/armgcc/secure_bootloader_gcc_nrf52.ld&amp;#39; &lt;/code&gt;and the bootloader address is set to&amp;nbsp;&lt;code&gt;&lt;span&gt;FLASH&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;rx&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ORIGIN&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;strong&gt;0x78000&lt;/strong&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;LENGTH&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x6000. &lt;/span&gt;&lt;/code&gt;The pm_static.yml file from the NCS_Blinky project has set the MCUBoot address to &lt;strong&gt;0x64000&lt;/strong&gt;. However, this configuration works fine when I was testing with the UART DFU method. Do you know why it works and why the BLE DFU is different and requires this change?&lt;/p&gt;
&lt;p&gt;2. In my production devices, the bootloader begins at&amp;nbsp;0x76000 and has a length of 0x8000 (32KB). The MCUBoot bootloader compiles&amp;nbsp;a &amp;#39;Used size&amp;#39; of just less than 32KB, however, the &amp;#39;Region size&amp;#39; is 48KB. In the scenario where the MCUBoot bootloader does not fit into this area, is it possible to first update the secure_bootloader to move it slightly and increase its flash allocation so MCUBoot can fit in the next update?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/337190?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 08:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b78f2a36-128c-4681-ab39-9a661788e7fa</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="FARLY7"]Do you know what is causing these differences (version number missing a .0, bootable=false, flags empty, hash unavailable)?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;d recommend asking questions regarding the mcumgr in their slack channel, as described in the repos readme.md:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Our Slack channel:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://mynewt.slack.com/messages/C7Y3K0C2J" rel="nofollow"&gt;https://mynewt.slack.com/messages/C7Y3K0C2J&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We have little to no knowledge about this in tech support.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="FARLY7"]There was not an equivalent BLE file for the nRF52832, only the nRF52840. Was there a reason for this?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If one were to modify MCUBoot’s settings then the size of MCUBoot will change.&amp;nbsp; In case the size of MCUBoot is larger than the allocated partition size, the value of &lt;span&gt;0x18000&lt;/span&gt; would have to be increased.&amp;nbsp; Similarly, if MCUBoot’s size shrinks due to different build options, then the value of &lt;span&gt;0x18000&lt;/span&gt; can be reduced.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="FARLY7"]Would providing a &amp;#39;BLE version&amp;#39; of the pm_static.yml for the nRF52832 be the solution?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can use&amp;nbsp;&lt;span&gt;the nRF52832_UART_pm_static.yml under the NCS_blinky folder, but you have to modify the&amp;nbsp;FLASH_START of the nRF5 bootloader to 0x64000 the same as the mcuboot address. Here is my test file. &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_nRF5_5F00_NCS_5F00_over_5F00_DFU_5F00_1102.zip"&gt;devzone.nordicsemi.com/.../dfu_5F00_nRF5_5F00_NCS_5F00_over_5F00_DFU_5F00_1102.zip&lt;/a&gt; I have added pca10040_s112_ble and&amp;nbsp;pca10040_s112_ble_debug under&amp;nbsp;secure_bootloader with&amp;nbsp;FLASH_START at&amp;nbsp;0x64000 and updated with&amp;nbsp;NCS_blinky and&amp;nbsp;NCS_peripheral_uart generated by nRF52832_UART_pm_static.yml without issue.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/336781?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 08:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a93d8eeb-def7-44d2-a59a-ba7c5426e86e</guid><dc:creator>FARLY7</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Just adding to my reply I sent a few days ago.. as I was successful in updating App + MCUBoot over UART I have now began testing the same process over BLE.&lt;/p&gt;
&lt;p&gt;Unfortunately, when I attempt to update over BLE I am getting an INSUFFICIENT RESOURCES error from the device. From reading online this means there is not enough space on the device for the update?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I am using the nRF52832_XXAA (512KB flash)&lt;/li&gt;
&lt;li&gt;I tried flashing the smaller (peripheral-only) S112 SoftDevice.&lt;/li&gt;
&lt;li&gt;I tried updating with the NCS_Blinky application and not my own, so it is much smaller.&lt;/li&gt;
&lt;li&gt;There is a line in the uart_log_recovery.conf file &amp;#39;CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x18000&amp;#39;. I don&amp;#39;t understand why the partition size is set to 98KB when the MCUBoot compiles down to 37KB?&lt;/li&gt;
&lt;li&gt;The output from the NCS_blinky build shows the MCUBoot region size as 112KB, could this be reserving unused memory in the update package that is making the image seem larger and unable to fit?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;[258/258] Linking C executable zephyr/zephyr.elf&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Memory region Used Size Region Size %age Used&lt;/code&gt;&lt;br /&gt;&lt;code&gt; FLASH:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 37476 B&amp;nbsp; &amp;nbsp;112 KB&amp;nbsp; &amp;nbsp; &amp;nbsp; 32.68%&lt;/code&gt;&lt;br /&gt;&lt;code&gt; SRAM:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;25952 B&amp;nbsp; &amp;nbsp;64 KB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;39.60%&lt;/code&gt;&lt;br /&gt;&lt;code&gt; IDT_LIST:&amp;nbsp; &amp;nbsp; &amp;nbsp;0 GB&amp;nbsp; &amp;nbsp; &amp;nbsp; 2 KB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00%&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[147/165] Linking C executable zephyr/zephyr_prebuilt.elf&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;[154/165] Linking C executable zephyr/zephyr.elf&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Memory region Used Size Region Size %age Used&lt;/code&gt;&lt;br /&gt;&lt;code&gt; FLASH:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16636 B&amp;nbsp; &amp;nbsp;243200 B&amp;nbsp; &amp;nbsp; 6.84%&lt;/code&gt;&lt;br /&gt;&lt;code&gt; SRAM:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5376 B&amp;nbsp; &amp;nbsp; 64 KB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8.20%&lt;/code&gt;&lt;br /&gt;&lt;code&gt; IDT_LIST:&amp;nbsp; &amp;nbsp; &amp;nbsp;0 GB&amp;nbsp; &amp;nbsp; &amp;nbsp; 2 KB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00%&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[165/165] Generating zephyr/merged.hex&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Since the NCS_Blinky + MCUBoot application is pretty small, I don&amp;#39;t think it is a resources issue? Could it be something to do with the flash layout defined in the pm_static.yml file? I am using the nRF52832_UART_pm_static.yml file included in your NCS_blinky folder. There was not an equivalent BLE file for the nRF52832, only the nRF52840. Was there a reason for this? Would providing a &amp;#39;BLE version&amp;#39; of the pm_static.yml for the nRF52832 be the solution?&lt;/p&gt;
&lt;p&gt;Thanks again for your help so far.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/336522?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 14:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6642aea8-331e-4837-a625-7e1a0e65e061</guid><dc:creator>FARLY7</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thanks for all this information. I have been working on this for the past 1-2 weeks and I can now successfully replace the nRF5 secure_bootloader with MCUBoot and Zephyr application. I have only tested this over serial so far, I will try and test over BLE soon.&lt;/p&gt;
&lt;p&gt;My update process has been:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;(Original app and secure_bootloader already exist on the device).&lt;/li&gt;
&lt;li&gt;Update secure_bootloader with secure_bootloader_patched by issuing a BL DFU update.&lt;/li&gt;
&lt;li&gt;Update the device with my Zephyr app + MCUboot by issuing an SD + BL DFU update.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I have one question/possible issue. After performing a DFU update using secure_bootloader to replace it with Zephyr app + MCUBoot, when I use mcumgr to list the images on the device, I get:&lt;/p&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;Images:&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;image=0 slot=0&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;version: 0.0.0.0&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;bootable: false&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;flags:&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;hash: Unavailable&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;Split status: N/A (0)&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;Compared to when I flash an application directly using &amp;#39;west flash&amp;#39;&amp;nbsp;&lt;/p&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;Images:&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt; image=0 slot=0&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;version: 0.0.0&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;bootable:&amp;nbsp;&lt;span&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;flags:&amp;nbsp;&lt;span&gt;active confirmed&lt;/span&gt; &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;hash:&amp;nbsp;&lt;span&gt;38771b4b3c567a292ab579e7e0f8709857c241ef4d890bde267637a60cc74279&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="p1"&gt;&lt;code&gt;&lt;span class="s1"&gt;Split status: N/A (0)&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;Do you know what is causing these differences (version number missing a .0, bootable=false, flags empty, hash unavailable)?&lt;/p&gt;
&lt;ul&gt;
&lt;li class="p1"&gt;&lt;span class="s1"&gt;The application runs fine, even between resets (so is &amp;#39;booting&amp;#39;).&lt;/span&gt;&lt;/li&gt;
&lt;li class="p1"&gt;&lt;span class="s1"&gt;I am using the&amp;nbsp;nRF52832_UART_pm_static.yml file included in the NCS_blinky project you shared.&lt;/span&gt;&lt;/li&gt;
&lt;li class="p1"&gt;Updating the app again from the app_update.bin does not change the info, and still works fine.&lt;/li&gt;
&lt;li class="p1"&gt;The app doesn&amp;#39;t call any &amp;#39;image ok&amp;#39; type API after booting to signal that the image is ok to continue running.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Sean&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/330963?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 06:17:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0cebb0d-74ec-48ea-a2ee-20e1a8aeff57</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Sean,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the delay.&lt;/p&gt;
&lt;p&gt;You can use partition manager to locate mcuboot.&amp;nbsp;The memory layout could be defined in&amp;nbsp;pm_static.yml as&lt;br /&gt; &amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4572.276425_5F00_1.PNG" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-components-multipleuploadfilemanager/78f2cfe2_2D00_453e_2D00_41ae_2D00_b96a_2D00_23a87a4a326d-77782-complete/276425.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;FOTA from nRF5 SDK to NCSv1.6.1 over uart test&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1033.dfu_5F00_nRF5_5F00_NCS_5F00_over_5F00_uart_5F00_0928.zip"&gt;devzone.nordicsemi.com/.../1033.dfu_5F00_nRF5_5F00_NCS_5F00_over_5F00_uart_5F00_0928.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Some quick notes about the test:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;This test updats MCUboot and the zephyr application image in one go by calling it a Softdevice+bootloader (&lt;a title="SoftDevice and bootloader" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader_dfu_banks.html?cp=7_1_3_5_1_2_0_0#lib_bootloader_dfu_dual_banks_sd"&gt;SoftDevice and bootloader&lt;/a&gt;) update. This to be able to overwrite the softdevice with the zephyr app. However, it did require some minor modifications to the existing bootloader to make it accept zephyr application as a Softdevice image.Use dfu_nRF5_NCS\nRF5_SDK_17.0.2_d674dde to build and run the bootloader.&lt;/li&gt;
&lt;li&gt;There are several *_pm_static.yml for nRF52832/52840 ble/USB/UART. Rename the &amp;quot;pm_static.yml&amp;quot; to pm_static.yml for your target.&lt;/li&gt;
&lt;li&gt;The flash protection mechanism in MCUboot assumes that the mcuboot_primary slot is always placed after the mcuboot partition. It disabled flash protection to get around this limitation.Disabled mcuboot flash protection is as the config under&lt;/li&gt;
&lt;li&gt;Modify the OVERLAY_CONFIG path in build_blinky.bat and run the script to build NCS_blinky_over_uart project.&lt;/li&gt;
&lt;li&gt;The mcuboot image is zephyr.hex under build\mcuboot\zephyr and you can use &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/readme-ncs.html?highlight=app_update%20bin"&gt;app_update.bin&lt;/a&gt; to generate the updated package.&lt;/li&gt;
&lt;li&gt;After updating withNCS_blinky_over_uart, you can use mcumgr to update via DFU. See &amp;nbsp;this tutorial&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/software/posts/device-firmware-update-dfu-with-mcuboot-bootloader"&gt;device-firmware-update-dfu-with-mcuboot-bootloader&lt;/a&gt;&amp;nbsp;and &lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/software/posts/device-firmware-update-dfu-with-mcuboot-bootloader?CommentId=c963d7c6-b8e2-40f7-a48e-daf00a826fe6"&gt;this thread&lt;/a&gt;. If you update with&amp;nbsp;NCS_peripheral_uart, you can refer to&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Bluetooth: Peripheral UART&lt;/a&gt;&amp;nbsp;to test.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="FARLY7"]how does the nRF5 bootloader get &amp;#39;replaced&amp;#39; by MCUboot?[/quote]
&lt;p&gt;It&amp;#39;s not updated as an application+bootloader, but rather Softdevice + bootloader.&amp;nbsp;&lt;a title="SoftDevice and bootloader" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_dfu_banks.html?cp=8_1_3_5_1_2_0_0#lib_bootloader_dfu_dual_banks_sd"&gt;SoftDevice and bootloader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/330597?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 08:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e6a99c6-d070-47d9-8923-dc2dc2c7ac6c</guid><dc:creator>FARLY7</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Do you have any information on&amp;nbsp;how it is possible to replace the nRF5 Bootloader with MCUBoot from NCS?&lt;/p&gt;
&lt;p&gt;Please see my other reply on how I have unsuccessfully attempted this already.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/329432?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 12:09:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c05f9381-d811-47ba-ba2d-3294f4cce9b7</guid><dc:creator>FARLY7</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Amanda,&lt;/span&gt;&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/79571/dfu-update-from-nrf5-sdk-to-nrf-connect-sdk/329416#329416"]After updating with&amp;nbsp;&lt;span&gt;MCUboot + Application, the nRF&lt;/span&gt;5 bootloader will be replaced with mcuboot and you will have the MBR as the first entry point.&amp;nbsp;MCUboot can be used as a 1st stage bootloader&amp;nbsp;and usually is if you use the 52 series.&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;I cannot get an MCUboot + Application to boot successfully. Do you have a list of steps to get this working and any additional KConfig options required?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. I enable the CONFIG_BOOTLOADER_MCUBOOT option, and the linker options are shown as:&lt;/span&gt;&lt;/p&gt;
&lt;table height="59" width="442"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;FLASH_LOAD_OFFSET&lt;/td&gt;
&lt;td&gt;0xC000 (Unconfigurable, set from the .dts it seems)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FLASH_LOAD_SIZE&lt;/td&gt;
&lt;td&gt;0x32000 (Unconfigurable, set from the .dts it seems)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ROM_START_OFFSET&lt;/td&gt;
&lt;td&gt;0x1000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span&gt;2. I then create a DFU package from the&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;zephyr/merged.hex&amp;nbsp;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;file and proceed as before, passing the merged.hex as an --application parameter.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. When I perform the DFU update, I have the same error as in the original post, where the reset_vector address is all wrong and the device hardfaults.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Do I need to pass the MCUboot hex as a separate --bootloader parameter? nrfutil does not allow the combination of App + BL, these must be separate packages. I am unsure which .hex file is MCUboot, and in what order to delivery the updates.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also, how does the nRF5 bootloader get &amp;#39;replaced&amp;#39; by MCUboot? I don&amp;#39;t understand this. If the Application+MCUboot is being flashed as an Application in nRF5 bootloader terms, then the bootloader is untouched. The device still boots up, checks the MBR, and then the nRF5 bootloader points it to the start of the &amp;#39;Application&amp;#39; which is the MCUboot? Is my understanding wrong?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot for your help so far!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/329416?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 11:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6be1fd6-d851-46dc-958f-f301b262a1c1</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Sean,&amp;nbsp;&lt;/p&gt;
[quote user="FARLY7"]Do you know if it is possible to have the MCUboot updated to become the 1st stage bootloader?[/quote]
&lt;p&gt;After updating with&amp;nbsp;&lt;span&gt;MCUboot + Application, the nRF&lt;/span&gt;5 bootloader will be replaced with mcuboot and you will have the MBR as the first entry point.&amp;nbsp;MCUboot can be used as a 1st stage bootloader&amp;nbsp;and usually is if you use the 52 series.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="FARLY7"]Could I write the MCUboot + Application to offset 0x0 (therefore overwriting the MBR)?[/quote]
&lt;p&gt;No,&amp;nbsp;&amp;nbsp;it won&amp;#39;t be possible. The mbr protects itself with &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/bprot.html?cp=4_2_0_11#concept_gdr_qlx_vr"&gt;BPROT&lt;/a&gt;/&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/acl.html?cp=4_0_0_5_2"&gt;ACL&lt;/a&gt;&amp;nbsp;and any unexpected resets will obviously brick the device&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/329339?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 08:04:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c465e82d-f6f9-4276-9321-742da299d30b</guid><dc:creator>FARLY7</dc:creator><description>&lt;p&gt;Thanks for your reply&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;&amp;nbsp;you beat me too it. I was in the middle of posting:&lt;/p&gt;
&lt;p&gt;----------------------------------&lt;/p&gt;
&lt;p&gt;I have made some progress on this..&lt;/p&gt;
&lt;p&gt;I was able to update and run the Zephyr blinky application (no MCUboot) using the instructions above, however I needed to&amp;nbsp;change the Zephyr application&amp;nbsp;&lt;span&gt;FLASH_LOAD_OFFSET&amp;nbsp;Kconfig option from 0x0 to 0x1000. From what I&amp;#39;ve understood so far, this is to place the application &lt;strong&gt;after&amp;nbsp;&lt;/strong&gt;the MBR region in flash (which resides at 0x0).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have also tested that I can re-enter the bootloader from the new application by setting the GREGRET register and then resetting the device. This allows me to&amp;nbsp;continue triggering new DFU updates&amp;nbsp;from the new Zephyr based application.&lt;br /&gt;&lt;br /&gt;I am currently attempting to get the MCUboot + Application updated and running.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Do you know if it is possible to have the MCUboot updated to become the 1st stage bootloader? Or can it only become the 2nd stage bootloader (nRF5 SDK Bootloader -&amp;gt; MCUboot -&amp;gt; Application). Could I write the MCUboot + Application to offset 0x0 (therefore overwriting the MBR)? I understand this process would prevent from recovering from a failed update.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update from nRF5 SDK to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/329334?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 07:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4b43de2-9b2b-4417-914d-11ac4e8faf8f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Sean,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As the log (&lt;em&gt;&amp;lt;debug&amp;gt; app: Running nrf_bootloader_app_start with address: 0x00001000&lt;/em&gt;) indicated, the&amp;nbsp;app start address is 0x1000. Adding CONFIG_FLASH_LOAD_OFFSET=0x1000 to prj.conf should fix the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>