<?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>Generate package to migrate SD+BL+APP from SDK15 to SDK17</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71576/generate-package-to-migrate-sd-bl-app-from-sdk15-to-sdk17</link><description>Hi all, First I would like to notice that I did look into the forum and found this similar question which did not solve my problem: https://devzone.nordicsemi.com/f/nordic-q-a/27862/update-sd-bl-app-from-sdk-v13-to-v14-via-dfu-fails My problem: 
 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Feb 2021 11:12:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71576/generate-package-to-migrate-sd-bl-app-from-sdk15-to-sdk17" /><item><title>RE: Generate package to migrate SD+BL+APP from SDK15 to SDK17</title><link>https://devzone.nordicsemi.com/thread/295055?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 11:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0146438b-c428-4889-83bf-f9af705929e7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Pedro,&amp;nbsp;&lt;br /&gt;Please&amp;nbsp; try testing again using stock images (bootloader and apps)&amp;nbsp;&lt;br /&gt;I tested here and&amp;nbsp; got no problem upgrade to SDK 17 app.&lt;br /&gt;You may want to try debugging&amp;nbsp; the bootloader to see if anything wrong.&amp;nbsp;&lt;br /&gt;I attached here the file I used. My test&amp;#39;s steps:&amp;nbsp;&lt;br /&gt;1. Flash bootloader+SDK v15.2&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. DFU update app_SDK15.zip&lt;/p&gt;
&lt;p&gt;3. DFU update sd_bl_SDK17.zip&lt;/p&gt;
&lt;p&gt;4. DFU update app_SDK17.zip&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After step 4 the device works as expected.&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DFU_5F00_SD_5F00_BL_5F00_18Feb.zip"&gt;devzone.nordicsemi.com/.../DFU_5F00_SD_5F00_BL_5F00_18Feb.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate package to migrate SD+BL+APP from SDK15 to SDK17</title><link>https://devzone.nordicsemi.com/thread/294899?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2021 14:37:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13f8f006-dd60-4218-8338-2d0bb294cbe9</guid><dc:creator>prodrigues</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/71576/generate-package-to-migrate-sd-bl-app-from-sdk15-to-sdk17/294874#294874"]If you do it manually (2 .zip files, one SD+BL and one APP) would it work&amp;nbsp; ?&amp;nbsp;[/quote]
&lt;p&gt;No, I have the same problem. BL+SD&amp;nbsp;dfu returns success popup and advertises as bootloader. APP,&amp;nbsp;DFU after BL+SD dfu returns success popup but the APP does not boot (stays in bootloader instead).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/71576/generate-package-to-migrate-sd-bl-app-from-sdk15-to-sdk17/294874#294874"]Please provide the log on the phone app and let us know the app version&amp;nbsp; you are using. Have you tried both nRF Toolbox and NRF Connect ?&amp;nbsp;[/quote]
&lt;p&gt;Yes, tried with nRF Toolbox, same problem.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Bellow you may find attached the log of NRF Connect after a DFU of BL+SD+APP.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Log-2021_2D00_02_2D00_17-14_5F00_24_5F00_01.txt"&gt;devzone.nordicsemi.com/.../Log-2021_2D00_02_2D00_17-14_5F00_24_5F00_01.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Edit:&lt;br /&gt;Just tried the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Flashed SD+BL by merging hex files and using nrfjprog&lt;/li&gt;
&lt;li&gt;performed DFU with the same APP Zip generated earlier for the 2 zip test and worked correctly.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate package to migrate SD+BL+APP from SDK15 to SDK17</title><link>https://devzone.nordicsemi.com/thread/294874?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2021 13:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3c6b0b4-88ee-49d7-a125-138daaff5cdb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Pedro,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you do it manually (2 .zip files, one SD+BL and one APP) would it work&amp;nbsp; ?&amp;nbsp;&lt;br /&gt;We need to look into why the DFU of the APP was not executed automatically.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please provide the log on the phone app and let us know the app version&amp;nbsp; you are using. Have you tried both nRF Toolbox and NRF Connect ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate package to migrate SD+BL+APP from SDK15 to SDK17</title><link>https://devzone.nordicsemi.com/thread/294691?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 16:19:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0ee51d8-de26-4d48-ac0c-799c005c9454</guid><dc:creator>prodrigues</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;indeed the variable&amp;nbsp;FLASH_START=0x78000 was differing in both bootloader projects. Now, after DFU with Soft Device + Bootloader the device advertises as the bootloader!&lt;br /&gt;&lt;br /&gt;However, when performing DFU with full package the Application still does not start. Instead the bootloader starts.&lt;br /&gt;&lt;br /&gt;What could still be wrong?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Pedro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate package to migrate SD+BL+APP from SDK15 to SDK17</title><link>https://devzone.nordicsemi.com/thread/294648?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 14:06:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55cd174a-19db-4e23-9866-65d93ab4722d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Perdo,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you made sure the start address of the 2 bootloaders are the same ? I had a quick check here with the bootloader _debug version, the one in SDK v15.2 start at address 0x72000 when the one in SDK v17.0.2 starts at address 0x71000.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;They should be the same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I attached here the file I used for testing (it worked fine).&amp;nbsp;&lt;br /&gt;I used this script to generate the .zip file:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --hw-version 52 --sd-req 0xAF --sd-id 0x0101 --softdevice s132_nrf52_7.2.0_softdevice.hex  --bootloader-version 2 --bootloader Bootloader_SDK17.hex --key-file private.key sd_bl.zip&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please unzip this:&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DFU_5F00_SD_5F00_BL.zip"&gt;devzone.nordicsemi.com/.../DFU_5F00_SD_5F00_BL.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate package to migrate SD+BL+APP from SDK15 to SDK17</title><link>https://devzone.nordicsemi.com/thread/294576?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 10:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15e722e4-2101-40ec-a8a2-aa70f78bc56f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Thanks Pedro. There could be a change in the bootloader setting.&amp;nbsp;&lt;br /&gt;I will try to test doing a DFU update here and let you know if I find something.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate package to migrate SD+BL+APP from SDK15 to SDK17</title><link>https://devzone.nordicsemi.com/thread/294570?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 10:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bcd5482-dded-4bab-8bc7-ff656a353753</guid><dc:creator>prodrigues</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;Haven&amp;#39;t tried everything yet but here goes some preliminary info:&lt;br /&gt;&lt;br /&gt;1 - Yes it advertises&lt;br /&gt;2- No it does not advertise if I run:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --program Output/sd_bl.hex --sectorerase -r&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It advertises if I run:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -e
nrfjprog --program Output/sd_bl.hex -r&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;So, what is the difference?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Pedro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate package to migrate SD+BL+APP from SDK15 to SDK17</title><link>https://devzone.nordicsemi.com/thread/294565?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 10:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b9b5339-5aa4-4489-94c5-4355a63ea8d1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Pedro,&amp;nbsp;&lt;br /&gt;Regarding the issue with Linux, what you reported (error&amp;nbsp;0x802a) similar to one of the case &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56570/dfu-with-nrf-connect-linux-write-failure-with-unknown-value-0x8005"&gt;here&lt;/a&gt;. You may need to disable MSD to use nrfConnect on Linux.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to try the following:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Flash the stock BL+SD&amp;nbsp;of SDK v15.2. Verify that it&amp;#39;s advertising.&lt;/p&gt;
&lt;p&gt;2. Flash the stock BL+SD of SDK v17 to the same chip (do nrfjprog --program with --sectorerase) . Verify that the new bootloader is advertising.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. Read flash out using nrfjprog --readcode&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4. Erase the chip and Redo Step 1.&lt;/p&gt;
&lt;p&gt;5. Do DFU update of BL+SD of SDK v17 .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;6. If it&amp;#39;s not advertising try read flash out using nrfjprog --readcode&lt;/p&gt;
&lt;p&gt;7. Compare the 2 hex dump at step 3 and step 6.&amp;nbsp;I usually use Notepad++ to compare.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please send us your files (including the private keys and public keys, the .zip file, your bootloader and softdevice in SDK v15.2 ) so that we can test here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate package to migrate SD+BL+APP from SDK15 to SDK17</title><link>https://devzone.nordicsemi.com/thread/294460?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 17:35:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16c3669e-61fc-4eda-9d64-7160d73bdf8c</guid><dc:creator>prodrigues</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;More info:&lt;br /&gt;&lt;br /&gt;When I first created the post I was only trying with nRFConnect on my Android phone. When trying with nRF connect on linux I get this error:&lt;/p&gt;
&lt;div class="core-log-entry core-log-level-info"&gt;
&lt;div class="core-log-time"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;17:22:31.417	Performing DFU with file: /home/prodrig/Documents/git/ble5_firmware/Output/5.0.0/bl_sd.zip
17:22:32.458	Attribute value changed, handle: 0x10, value (0x): 01-00
17:22:32.492	Attribute value changed, handle: 0x0F, value (0x): 02-00-00
17:22:32.494	Attribute value changed, handle: 0x0F, value (0x): 60-02-01
17:22:32.546	Attribute value changed, handle: 0x0F, value (0x): 06-01
17:22:32.562	Attribute value changed, handle: 0x0F, value (0x): 60-06-01-00-01-00-00-00-00-00-00-00-00-00-00
17:22:32.592	Attribute value changed, handle: 0x0F, value (0x): 01-01-97-00-00-00
17:22:32.607	Attribute value changed, handle: 0x0F, value (0x): 60-01-01
17:22:34.150	Received status with code 4 Unknown value, message: &amp;#39;Error sending packet to target. Code: 0x802a&amp;#39;
17:22:35.653	Received status with code 4 Unknown value, message: &amp;#39;Error sending packet to target. Code: 0x802a&amp;#39;
17:22:37.155	DFU failed with error: When writing &amp;#39;CREATE&amp;#39; command to Control Point Characteristic of DFU Target: Could not write CREATE command: Failed to write to attribute with handle: 15: Error occured when writing. Errorcode: Unknown value (0x8005) .
17:22:37.159	Received status with code 4 Unknown value, message: &amp;#39;Error sending packet to target. Code: 0x802a&amp;#39;
17:22:38.660	Received status with code 4 Unknown value, message: &amp;#39;Error sending packet to target. Code: 0x802a&amp;#39;&lt;/pre&gt;&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/71576/generate-package-to-migrate-sd-bl-app-from-sdk15-to-sdk17/294443#294443"]Please use nRF Connect and check if the device after updating the BL+SD if it runs as a Bootloader and advertises anything?[/quote]
&lt;p&gt;No it does not advertise.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/71576/generate-package-to-migrate-sd-bl-app-from-sdk15-to-sdk17/294443#294443"]Any reason why your bootloader version in your script to generate the DFU package was &amp;quot;--bootloader-version 0 &amp;quot; ?&amp;nbsp;[/quote]
&lt;p&gt;That was wrong at the time of the post creation. After reading my old settings.hex I realized bootloader-version was 1. So I changed and I am now generating the packages with --bootloader-version 2.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/71576/generate-package-to-migrate-sd-bl-app-from-sdk15-to-sdk17/294443#294443"]Please try to do SD+BL and APP DFU update separately (2 zip files) before testing with one single .zip.&amp;nbsp;[/quote]
&lt;p&gt;Tried this. On nRF Connect from linux I had the same issue reported above. On my phone, It sent and in the end a popup appeared saying &amp;quot;Application has been sent successfully&amp;quot;. But after that the device does not advertise as expected...&lt;/p&gt;
&lt;div class="core-log-entry core-log-level-error"&gt;
&lt;div class="core-log-message"&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Pedro&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate package to migrate SD+BL+APP from SDK15 to SDK17</title><link>https://devzone.nordicsemi.com/thread/294443?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 15:53:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fba70f46-26d4-4eb0-81e2-4f753323952f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Pedro,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Please use nRF Connect and check if the device after updating the BL+SD if it runs as a Bootloader and advertises anything?&lt;/p&gt;
&lt;p&gt;Any reason why your bootloader version in your script to generate the DFU package was &amp;quot;--bootloader-version 0 &amp;quot; ?&amp;nbsp;&lt;br /&gt;Usually the bootloader doesn&amp;#39;t allow update to lower or the same bootloader version.&amp;nbsp;&lt;br /&gt;Please try to do SD+BL and APP DFU update separately (2 zip files) before testing with one single .zip.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>