<?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>nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76529/nrf5-sdk-possible-to-ota-update-to-nrf-connect-sdk</link><description>Hi, 
 
 Just need a quick checking on this. 
 Currently we using nRF5 SDK, after production, is it possible we OTA update the firmware which using nRF Connect SDK? 
 This very important for us to decide our roadmap of development. 
 Thank you 
 
 Best</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Sep 2021 09:13:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76529/nrf5-sdk-possible-to-ota-update-to-nrf-connect-sdk" /><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/329162?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 09:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5d9e6dc-85eb-40fd-b1cd-eec40e8253b3</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Handled by&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79571/dfu-update-from-nrf5-sdk-to-nrf-connect-sdk"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/79571/dfu-update-from-nrf5-sdk-to-nrf-connect-sdk&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/329112?ContentTypeID=1</link><pubDate>Sun, 12 Sep 2021 10:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6720d0e2-98e6-4fed-8bea-7a403e707c21</guid><dc:creator>FARLY7</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am finally working on the process for UART DFU update from nRF5 SDK -&amp;gt; NCS, but I am having some issues.&lt;/p&gt;
&lt;p&gt;I am testing with Nordic example projects as much as possible to help you identify any issues&lt;/p&gt;
&lt;p&gt;I am flashing the PCA10040 (nRF52 DK) with the &amp;#39;examples/dfu/secure_bootloader/pca10040_uart_debug&amp;#39; application included in the latest nRF_SDK_17.0.2. This application allows me to enter UART DFU bootloader. I can test writing the included test application &amp;#39;examples/dfu/secure_dfu_test_images/uart/nrf52832/blinky_mbr.zip&amp;#39;. This process works fine as expected (nRF5 SDK -&amp;gt; nRF5 SDK).&lt;/p&gt;
&lt;p&gt;To begin testing from nRF5 SDK -&amp;gt; NCS:&lt;/p&gt;
&lt;p&gt;1. I again flash the same secure_bootloader DFU example application to enter DFU mode.&lt;/p&gt;
&lt;p&gt;2. I then follow the instructions you linked &lt;a href="https://docs.zephyrproject.org/latest/boards/arm/nrf52840dongle_nrf52840/doc/index.html#option-1-using-the-built-in-bootloader-only"&gt;here&lt;/a&gt;&amp;nbsp;to flash the Zephyr blinky.zip application (I also add the --key-file parameter to sign it).&lt;/p&gt;
&lt;pre&gt;west build -b nrf52dk_nrf52832 zephyr/samples/basic/blinky&lt;br /&gt;nrfutil pkg generate --hw-version 52 --sd-req=0x00 --application build/zephyr/zephyr.hex --application-version 1 blinky.zip --key-file private.key&lt;br /&gt;nrfutil dfu serial -pkg blinky.zip -p /dev/ttyACM0&lt;/pre&gt;
&lt;p&gt;However, after the DFU seems to complete, the application does not boot (LEDs are not blinking). You can find the device DFU logs&amp;nbsp;&lt;a href="https://pastebin.com/p1BLdJuL"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;NOTE: After DFU completes the logs always seem to be cut short, this occurs even on successful update with the example application earlier.&lt;/p&gt;
&lt;p&gt;Some questions/points:&lt;/p&gt;
&lt;p&gt;1. Flashing the Zephyr blinky example directly works fine as you would expect.&lt;/p&gt;
&lt;p&gt;2. I&amp;nbsp;also&amp;nbsp;added the small change to the nRF bootloader that &lt;a href="https://devzone.nordicsemi.com/members/mtsunstrum"&gt;mtsunstrum&lt;/a&gt; suggested.&lt;/p&gt;
&lt;p&gt;3. The instructions in the link you provided are only included in the nRF52840 Dongle board page, they are not included in the nRF52 DK board page. Are these instructions not compatible with nRF52 DK?&lt;/p&gt;
&lt;p&gt;4. As there is no private.key provided with the secure_bootloader DFU example applications I use my own dfu_public_key.c and private.key files to like the bootloader and NCS Blinky application.&lt;/p&gt;
&lt;p&gt;5. I have tried with both `nrfutil dfu serial` and `usb-serial` parameter. There seems to be slight differences in how the DFU completes at the end, but the end result is the same (LEDs are not blinking).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/319456?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 19:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:418e0250-5a03-4cad-942c-506bbdf11f8f</guid><dc:creator>FARLY7</dc:creator><description>&lt;p&gt;Thanks for your reply, Amanda.&lt;/p&gt;
&lt;p&gt;I am very interested to hear if this is possible using the nRF5 SDK UART DFU bootloader. I will be attempting it at some point so I would appreciate any instructions you can give similar to your post to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/klliew"&gt;KLLiew&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I thought updating devices from nRF5 SDK to NCS over DFU would be a common request by users so perhaps it could deserve a blog post or an app note.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/319455?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 18:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bffd8760-7dc1-4278-a8b4-8220d0c2523f</guid><dc:creator>mtsunstrum</dc:creator><description>&lt;p&gt;I do see a very small change in&amp;nbsp;nrf_bootloader_fw_activation.c,&amp;nbsp;in function&amp;nbsp;sd_activate()&lt;/p&gt;
&lt;p&gt;Commented out the return value ...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if (SD_MAGIC_NUMBER_GET(src_addr) != SD_MAGIC_NUMBER)
{
    NRF_LOG_ERROR(&amp;quot;Source address does not contain a valid SoftDevice.&amp;quot;)
    //return NRF_ERROR_INTERNAL;     &amp;lt;&amp;lt; commented out this line
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/319438?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 16:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99fb42c1-8cef-4144-b5e5-0ecb97222491</guid><dc:creator>mtsunstrum</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;Yes we are looking at OTA DFU to NCS for units in the field for nRF52832 devices.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll explore your notes above.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For&amp;nbsp;&lt;span&gt;Softdevice+bootloader (&lt;/span&gt;&lt;span&gt;&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;&lt;/span&gt;&lt;span&gt;) update, I&amp;#39;ll have to dig deeper to understand if our system would be doing single or dual bank updates. (if that matters)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You mentioned&lt;span style="background-color:#ccffff;"&gt;&amp;nbsp;some minor modifications to the existing bootloader to make it accept zephyr application as a Softdevice image&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does that mean the nRF Secure Bootloader had a specific code modification &lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;before&lt;/span&gt; &lt;/strong&gt;it was progammed/shipped to customer ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For&amp;nbsp;&lt;span style="background-color:#ccffff;"&gt;We disabled flash protection to get around this limitation&lt;/span&gt;.&amp;nbsp; ... I am not deep into understanding the inner workings in there, but is that a DFU image setting, or related to Bootloader code modification ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks again, Martin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/319404?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 13:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c039a6e7-0b0a-417e-8215-93e93a6856ed</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Sean,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="FARLY7"]Is this possible using the existing nRF SDK UART DFU Bootloader?[/quote]
&lt;p&gt;I think it is possible, but I need time to try.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="FARLY7"]If so, does the existing nRF bootloader and MCUBoot bootloader coexist afterwards?[/quote]
&lt;p&gt;&amp;nbsp;No.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/319402?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 13:41:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4165d9d-16fb-4f70-9d71-45655a2a7ec5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Martin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you looking to support OTA DFU to NCS on existing devices in the field? The MCUboot is placed at address 0x0 by default, the same place as where the MBR used to reside. It&amp;#39;s however possible to relocate it with the partition manager. My colleague actually did this as an experiment a little while ago to see if it&amp;#39;s possible to do DFU from nRF5 SDK 17 to NCS v.1.4.0. Attached below are the projects he made if you want to review them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Memory layout (defined by pm_static.yml)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;$ west build -b nrf52840dk_nrf52840 // West command to build peripheral_uart sample (MCUboot is automatically built as a child image, see&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.0/nrf/ug_multi_image.html"&gt;Multi-image builds&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;$ west build -t rom_report // Ninja build target to display flash layout as shown below&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610719673245v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;FOTA from nRF5 SDK to NCS test&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_nRF5_5F00_NCS.zip"&gt;dfu_nRF5_NCS.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Some quick notes about the test:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. Here we update MCUboot and the zephyr application image in one go by calling it a Softdevice+bootloader (&lt;span&gt;&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;&lt;/span&gt;) update. So, this is 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.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. The flash protection mechanism in MCUboot assumes that the mcuboot_primary slot is always placed after the mcuboot partition. We disabled flash protection to get around this limitation.&lt;/p&gt;
&lt;p&gt;--&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tried it on v1.6.0, but I will take time to do it later. Hope this can help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/319250?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 23:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4844f5e1-4728-44cc-a427-7ff146915948</guid><dc:creator>mtsunstrum</dc:creator><description>&lt;p&gt;Hi @KLLiew I reviewed your link, but could not see clear reference if we can migrate from nRF5 to NCS.&lt;/p&gt;
&lt;p&gt;Did you see something specific in there ?&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;We have units in the field, that get upgrade via smartphone app, using the nRF5 Secure Bootloader.&lt;/p&gt;
&lt;p&gt;I know that it can presumably update Application, and Bootloader and SoftDevice.&lt;/p&gt;
&lt;p&gt;But to date, we have only performed Application updates.&lt;/p&gt;
&lt;p&gt;Would be great if someone from Nordic could chime in here ...&lt;/p&gt;
&lt;p&gt;It would really help in our planning of migration to NCS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/316335?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 16:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9b89b27-7d6f-46bb-aa2c-a6140f844cf7</guid><dc:creator>FARLY7</dc:creator><description>&lt;p&gt;Good timing with this question. We are also&amp;nbsp;interested in the same thing.&lt;/p&gt;
&lt;p&gt;We currently have ~500 nRF52832 devices in the field running nRF5 SDK. These are typically remotely updated over&amp;nbsp;UART DFU to perform firmware upgrades using nRF5 SDK.&lt;/p&gt;
&lt;p&gt;We would like to migrate future devices to NCS (nRF Connect SDK), and ideally, update those existing devices in the field to the NCS-based application.&lt;/p&gt;
&lt;p&gt;Is this possible using the existing nRF SDK UART DFU Bootloader?&lt;/p&gt;
&lt;p&gt;If so, does the existing nRF bootloader and MCUBoot bootloader coexist afterwards?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/316243?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 11:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d705899-7142-4a44-aa1f-1e325fc95991</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Alan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is technically possible if you have enough memory.&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/boards/arm/nrf52840dongle_nrf52840/doc/index.html#option-1-using-the-built-in-bootloader-only"&gt;Here &lt;/a&gt;is a use case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/316144?ContentTypeID=1</link><pubDate>Sun, 20 Jun 2021 15:21:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6988199-f081-4593-9678-a966da8a0528</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;I cannot seem to find the documentation I referred to, and I&amp;#39;m sure someone from Nordic will provide a definitive answer, but I do remember reading that DFU from the nRF SDK to NCS is not possible. It makes sense given that the bootloaders function quite differently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/316135?ContentTypeID=1</link><pubDate>Sun, 20 Jun 2021 05:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:849cb0e5-24a1-41dc-900b-c0f0afb50294</guid><dc:creator>KLLiew</dc:creator><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;Sorry to make the confusion, i mean DFU Firmware update. Can we directly update firmware from nRF5 to NCS?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And I just found reference below:&lt;br /&gt;&lt;a href="https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/documentation/dfu_connect.html"&gt;https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/documentation/dfu_connect.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It sound like we can update from nRF5 to NCS. Please correct me if i&amp;#39;m wrong.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK possible to OTA update to nRF Connect SDK?</title><link>https://devzone.nordicsemi.com/thread/316133?ContentTypeID=1</link><pubDate>Sun, 20 Jun 2021 02:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e97d68d8-22d2-415c-b76c-2eef75065c80</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;I cannot remember where I read this as it ha been a while, probably the NCS release notes, but it was made very clear that it is not possible to do an OTA update from the nRF SDK to NCS/mcuboot.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>