<?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 14.2-&amp;gt;15.2 (BL+SD+App)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43995/dfu-14-2--15-2-bl-sd-app</link><description>Hi, 
 I have migrated my projekt from SDK 14.2 to 15.2, the bootloader is basically the secure_bootloader example with some tiny adjustments. When I try to upgrade my product running on 14.2 and the old Softdevice I get the this message in nRF Connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Feb 2019 11:04:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43995/dfu-14-2--15-2-bl-sd-app" /><item><title>RE: DFU 14.2-&gt;15.2 (BL+SD+App)</title><link>https://devzone.nordicsemi.com/thread/172486?ContentTypeID=1</link><pubDate>Fri, 22 Feb 2019 11:04:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:962ab6dc-6e6d-48ba-9a2d-269926375419</guid><dc:creator>Henrik</dc:creator><description>&lt;p&gt;AH!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the help! I interpreted the &amp;quot;--sd-id 0xAF,0xBF&amp;quot; flag wrong when I first read the documentation.&amp;nbsp;If I changed it to only &amp;quot;--sd-id 0xAF&amp;quot; in my initial post it worked!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU 14.2-&gt;15.2 (BL+SD+App)</title><link>https://devzone.nordicsemi.com/thread/172480?ContentTypeID=1</link><pubDate>Fri, 22 Feb 2019 10:31:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf7974c8-a153-4eed-9132-9dac1613705a</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi again Henrik.&lt;/p&gt;
&lt;p&gt;Thanks for the clarification :-)&lt;/p&gt;
&lt;p&gt;I have ran a test now, with success.&lt;/p&gt;
&lt;p&gt;Can you try to follow this procedure?&lt;/p&gt;
&lt;p&gt;1. Create a &lt;a href="https://www.nordicsemi.com/DocLib/Content/User_Guides/nrfutil/latest/UG/nrfutil/nrfutil_keys_generate_display"&gt;key.pem file&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Use the command&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil keys display --key pk --format code private.pem&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To display it on a code format and paste this code into the &lt;strong&gt;dfu_public_key.c&lt;/strong&gt; file in both SDK 14.2 and SDK 15.2&lt;/p&gt;
&lt;p&gt;2. Build the bootloader in SDK 14.2 with the &lt;strong&gt;dfu_public_key.c&lt;/strong&gt; file in use.&lt;/p&gt;
&lt;p&gt;Build the bootloader in SDK 15.2 with the same &lt;strong&gt;dfu_public_key.c &lt;/strong&gt;file in use.&lt;/p&gt;
&lt;p&gt;3. Generate the DFU package with the following command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --hw-version 52 --sd-req 0x9D,0xAF --application-version 1 --application &amp;lt;app_file_name&amp;gt;.hex --softdevice &amp;lt;s132_v6.1.0_name&amp;gt;.hex --bootloader &amp;lt;bootloader_with_s132_name&amp;gt;.hex  --bootloader-version 2 --sd-id 0xAF --key-file priv.pem dfu_package.zip&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Where you change &amp;lt;app_file_name&amp;gt;.hex, &amp;lt;s132_v6.1.0_name&amp;gt;.hex, and &amp;lt;bootloader_with_s132_name&amp;gt;.hex with the correct file names.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;4. Flash 1 device with the bootloader from SDK 14.2 and SoftDevice S132 5.0.0 and reset the device.&lt;/p&gt;
&lt;p&gt;Open the nRF Connect BLE Application and Connect to the &amp;quot;DfuTarg&amp;quot; (or what name you have given to the bootloader)&lt;/p&gt;
&lt;p&gt;And select the &lt;strong&gt;.zip file&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;First the SoftDevice and Bootloader are transferred:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-39d9c1dc55b74e46af5ba845be60bb98/pastedimage1550831308570v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then the Application, and here you can see that the transfer was a success:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-39d9c1dc55b74e46af5ba845be60bb98/pastedimage1550831431720v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU 14.2-&gt;15.2 (BL+SD+App)</title><link>https://devzone.nordicsemi.com/thread/172438?ContentTypeID=1</link><pubDate>Fri, 22 Feb 2019 08:20:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5ddbecd-a5ea-419f-ab64-6678f7055079</guid><dc:creator>Henrik</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for the unclear post, I hope this will make things clearer :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;You wish to do a DFU upgrade where you go from SDK 14.2 to 15.2?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Exaclty.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Which chip/board do you have?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Custom board with an nRF52832_xxaa.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Which SoftDevice are you going from in SDK 14.2?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;S132, 5.0.0&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Which SoftDevice are you going to in SDK 15.2?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;S132, 6.1.0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR Henrik&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU 14.2-&gt;15.2 (BL+SD+App)</title><link>https://devzone.nordicsemi.com/thread/172434?ContentTypeID=1</link><pubDate>Fri, 22 Feb 2019 08:07:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c02f642f-5d13-45d2-87ef-e075d72139f7</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Henrik.&lt;/p&gt;
&lt;p&gt;Can we clarify some points?&lt;/p&gt;
&lt;p&gt;You wish to do a DFU upgrade where you go from SDK 14.2 to 15.2?&lt;/p&gt;
&lt;p&gt;Which chip/board do you have?&lt;/p&gt;
&lt;p&gt;Which SoftDevice are you going from in SDK 14.2?&lt;/p&gt;
&lt;p&gt;Which SoftDevice are you going to in SDK 15.2?&lt;/p&gt;
&lt;p&gt;To do a DFU upgrade where you go from one SDK to another, and also change SoftDevice, you need the following things in the DFU package:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Bootloader with the new SoftDevice&lt;/li&gt;
&lt;li&gt;Application with the new SoftDevice&lt;/li&gt;
&lt;li&gt;The new SoftDevice&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Looking at your &lt;strong&gt;nrfutil &lt;/strong&gt;command it looks like you want to use SoftDevice S132 v6.1.0 in your new Application?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>