<?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>Is it possible to update firmware via BLE DFU from v14 to v15 of the nRF5 SDK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48176/is-it-possible-to-update-firmware-via-ble-dfu-from-v14-to-v15-of-the-nrf5-sdk</link><description>I am trying to update firmware that uses v14 of the nRF5 SDK to firmware that uses v15.3, but I am getting the error &amp;quot;Init command larger than expected.&amp;quot;. 
 I&amp;#39;m wondering if this is supposed to be possible, or if v15.3 is not backwards compatible (I didn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Jun 2019 07:02:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48176/is-it-possible-to-update-firmware-via-ble-dfu-from-v14-to-v15-of-the-nrf5-sdk" /><item><title>RE: Is it possible to update firmware via BLE DFU from v14 to v15 of the nRF5 SDK?</title><link>https://devzone.nordicsemi.com/thread/193999?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2019 07:02:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a9f7ad1-13e6-4798-aa1c-553d3580b4d6</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Yes, no worries. When you are back and have the time, just submit information to this ticket.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="jlubawy"]We are trying to go from v14.2 to v15.3.[/quote]
&lt;p&gt;&amp;nbsp;Thank you! There were some issues with v14.0, but this is none of your concern.&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to update firmware via BLE DFU from v14 to v15 of the nRF5 SDK?</title><link>https://devzone.nordicsemi.com/thread/193972?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2019 01:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03cf0ac5-5758-4721-925e-29fce24213c7</guid><dc:creator>jlubawy</dc:creator><description>&lt;p&gt;I will actually be out of the country for work until 7/9, is it ok if I get back to you then with the memory dump?&lt;/p&gt;
&lt;p&gt;We are trying to go from v14.2 to v15.3.&lt;/p&gt;
&lt;p&gt;Thank You,&lt;br /&gt;Josh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to update firmware via BLE DFU from v14 to v15 of the nRF5 SDK?</title><link>https://devzone.nordicsemi.com/thread/193136?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 10:50:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7184779-dfe9-4aa6-b859-4fd1a29f6ad2</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Have a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27194/dfu-bootloader-not-verified-error/107166#107166"&gt;this thread&lt;/a&gt; as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to update firmware via BLE DFU from v14 to v15 of the nRF5 SDK?</title><link>https://devzone.nordicsemi.com/thread/193103?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 09:12:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ef8223c-ed4e-4fa1-8eed-fe6a05ea9b5b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you provide a memory dump&amp;nbsp;of your device? One after each try, one with iOS and one with Android.&amp;nbsp;Can you&amp;nbsp;run the following command?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="bat"&gt;nrfjprog --memrd 0x73000 --n 0xd000 &amp;gt; dump.txt&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you updating from SDK 14.0 or 14.2?&lt;/p&gt;
[quote user="jlubawy"]Now I&amp;#39;m stuck here:[/quote]
&lt;p&gt;Is this&amp;nbsp;with iOS or Android?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to update firmware via BLE DFU from v14 to v15 of the nRF5 SDK?</title><link>https://devzone.nordicsemi.com/thread/192982?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 19:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de89f72c-3ece-48f6-97ee-211d68a6eb1b</guid><dc:creator>jlubawy</dc:creator><description>&lt;p&gt;So I changed two things that got me further along (at least with nRF Connect 4.22.3 on Android):&lt;/p&gt;
&lt;p&gt;1) Removed the `--sd-boot-validation` as you said.&lt;br /&gt;2) Changed&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;--sd-req 0x98,0x99,0x9E,0x9D,0xB7&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;--sd-req 0x9D&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Without #2 the &amp;quot;SD req not met&amp;quot; pre-validate was failing. For some reason it was only seeing the last SD ID in the list, so removing all but the one matching the current firmware fixed it.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still getting the same original error using the iOS DFU library,&amp;nbsp;but not Android, so that&amp;#39;s likely a separate issue I need to open with them.&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m stuck here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
[00175162] &amp;lt;debug&amp;gt; dfu_req_handling: Reset.
[00000000] &amp;lt;info&amp;gt; app: Inside main
[00000000] &amp;lt;debug&amp;gt; app: In nrf_bootloader_init
[00000000] &amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user
[00000000] &amp;lt;debug&amp;gt; app: In real nrf_dfu_init
[00000000] &amp;lt;debug&amp;gt; nrf_dfu_settings: Running nrf_dfu_settings_init(sd_irq_initialized=false).
[00000000] &amp;lt;debug&amp;gt; nrf_dfu_flash: Calling nrf_dfu_flash_init(sd_irq_initialized=false)...
[00000000] &amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.
[00000000] &amp;lt;debug&amp;gt; app: Initializing the clock.
[00000000] &amp;lt;debug&amp;gt; app: Enter nrf_dfu_continue
[00000002] &amp;lt;debug&amp;gt; app: Valid SD + BL
[00000003] &amp;lt;debug&amp;gt; app: Enter nrf_dfu_sd_bl_continue
[00000006] &amp;lt;debug&amp;gt; app: Enter nrf_bootloader_dfu_sd_continue
[00000009] &amp;lt;debug&amp;gt; app: Updating SD. Old SD ver: 50, New ver: 60
[00000012] &amp;lt;debug&amp;gt; app: Copying [0x00023000-0x0002D000] to [0x00001000-0x0000B000]: Len: 0x0000A000
[00000757] &amp;lt;debug&amp;gt; app: Finished copying [0x00023000-0x0002D000] to [0x00001000-0x0000B000]: Len: 0x0000A000
[00000766] &amp;lt;debug&amp;gt; app: Validated 0x00023000-0x0002D000 to 0x00001000-0x0000B000: Size: 0x0000A000
[00000770] &amp;lt;debug&amp;gt; app: Finished with the SD update.
[00000773] &amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...
[00000775] &amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007F000
[00000779] &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007F000, len=1 pages), queue usage: 1
[00000785] &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0007F000, pending 0
[00000789] &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0007F000, len=0x1B8 bytes), queue usage: 1
[00000802] &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0007F000, pending 0
[00000805] &amp;lt;debug&amp;gt; app: Copying [0x0002D000-0x00037000] to [0x0000B000-0x00015000]: Len: 0x0000A000
[00001551] &amp;lt;debug&amp;gt; app: Finished copying [0x0002D000-0x00037000] to [0x0000B000-0x00015000]: Len: 0x0000A000
[00001560] &amp;lt;debug&amp;gt; app: Validated 0x0002D000-0x00037000 to 0x0000B000-0x00015000: Size: 0x0000A000
[00001564] &amp;lt;debug&amp;gt; app: Finished with the SD update.
[00001567] &amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...
[00001569] &amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007F000
[00001573] &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007F000, len=1 pages), queue usage: 1
[00001579] &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0007F000, pending 0
[00001583] &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0007F000, len=0x1B8 bytes), queue usage: 1
[00001596] &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0007F000, pending 0
[00001599] &amp;lt;debug&amp;gt; app: Copying [0x00037000-0x00041000] to [0x00015000-0x0001F000]: Len: 0x0000A000
[00002345] &amp;lt;debug&amp;gt; app: Finished copying [0x00037000-0x00041000] to [0x00015000-0x0001F000]: Len: 0x0000A000
[00002353] &amp;lt;debug&amp;gt; app: Validated 0x00037000-0x00041000 to 0x00015000-0x0001F000: Size: 0x0000A000
[00002358] &amp;lt;debug&amp;gt; app: Finished with the SD update.
[00002360] &amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...
[00002363] &amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007F000
[00002366] &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007F000, len=1 pages), queue usage: 1
[00002373] &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0007F000, pending 0
[00002377] &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0007F000, len=0x1B8 bytes), queue usage: 1
[00002389] &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0007F000, pending 0
[00002393] &amp;lt;debug&amp;gt; app: Copying [0x00041000-0x00048000] to [0x0001F000-0x00026000]: Len: 0x00007000
[00002916] &amp;lt;debug&amp;gt; app: Finished copying [0x00041000-0x00048000] to [0x0001F000-0x00026000]: Len: 0x00007000
[00002924] &amp;lt;debug&amp;gt; app: Validated 0x00041000-0x00048000 to 0x0001F000-0x00026000: Size: 0x00007000
[00002928] &amp;lt;debug&amp;gt; app: Finished with the SD update.
[00002931] &amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...
[00002933] &amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007F000
[00002937] &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007F000, len=1 pages), queue usage: 1
[00002943] &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0007F000, pending 0
[00002947] &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0007F000, len=0x1B8 bytes), queue usage: 1
[00002960] &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0007F000, pending 0
[00002963] &amp;lt;debug&amp;gt; app: Verifying BL: Addr: 0x00073000, Src: 0x00047150, Len: 0x00005A10
[00002967] &amp;lt;debug&amp;gt; app: Bootloader not verified, copying: Src: 0x00047150, Len: 0x00005A10

&amp;lt;hangs here, reset doesn&amp;#39;t help either&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank You,&lt;br /&gt;Josh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to update firmware via BLE DFU from v14 to v15 of the nRF5 SDK?</title><link>https://devzone.nordicsemi.com/thread/192940?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 13:25:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:847d6fc6-c6eb-4d6f-9100-f9d29ab4cb5a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello again,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve managed to reproduce the issue, and the issue seems to be&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;--sd-boot-validation VALIDATE_ECDSA_P256_SHA256&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;which was not supported in SDK14.2, but is new in SDK15.3.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The following call worked for me:&lt;br /&gt;&lt;pre class="ui-code" data-mode="bat"&gt;nrfutil pkg generate --application ble_app_hrs_pca10040_s132.hex --application-version 1 --softdevice s132_nrf52_6.1.1_softdevice.hex --bootloader secure_bootloader_ble_s132_pca10040.hex --bootloader-version 3  --hw-version 52 --sd-req 0x98,0x99,0x9E,0x9D,0xB7 --sd-id 0xB7 --app-boot-validation VALIDATE_ECDSA_P256_SHA256 --sd-boot-validation VALIDATE_ECDSA_P256_SHA256  --key-file private.pem hrs_dfu.zip&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This updated the bootloader and softdevice to newest and installed the correct app.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please try to remove sd-boot-validation and let me know how that works for you.&lt;/p&gt;
&lt;p&gt;Kind regards,&amp;nbsp;&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to update firmware via BLE DFU from v14 to v15 of the nRF5 SDK?</title><link>https://devzone.nordicsemi.com/thread/192909?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 11:44:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c1fdb6-c913-4892-af91-7056ffac896e</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Josh,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I have not been able to reproduce your issue yet but it is work in progress. Discussing the issue with my team as well and we think there might be an issue with the:&lt;/p&gt;
&lt;p&gt;--sd-boot-validation VALIDATE_ECDSA_P256_SHA256 &lt;br /&gt; --app-boot-validation VALIDATE_ECDSA_P256_SHA256&lt;/p&gt;
&lt;p&gt;But will verify. In the mean time, please have look at the&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;DFU tutorial&lt;/a&gt;&amp;nbsp;(if you have not looked at this) it mentions: &amp;quot;&lt;span&gt;&lt;em&gt;For bootloader and softdevice update, please see the Appendix.&lt;/em&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to update firmware via BLE DFU from v14 to v15 of the nRF5 SDK?</title><link>https://devzone.nordicsemi.com/thread/192812?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 02:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61f6be6c-9d74-458d-befa-daa3e5852771</guid><dc:creator>jlubawy</dc:creator><description>&lt;p&gt;I&amp;#39;ve been trying to update&amp;nbsp;using the iOS DFU library (4.4.2) which is when I get the error mentioned above.&lt;/p&gt;
&lt;p&gt;When I try to update using the Android nRF Connect app I get a totally different error (&amp;#39;dfq_req_handling: Prevalidate failed!&amp;#39;), but it makes it a farther along in the process.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll have to keep looking into this, but I think since the two DFU libraries act differently, it might be something wrong with the firmware or one of the&amp;nbsp;libraries, and probably not something wrong with the DFU&amp;nbsp;ZIP I&amp;#39;m generating.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Josh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to update firmware via BLE DFU from v14 to v15 of the nRF5 SDK?</title><link>https://devzone.nordicsemi.com/thread/192795?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 21:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f649dcd1-e350-4bfd-baeb-381710ddea58</guid><dc:creator>jlubawy</dc:creator><description>&lt;p&gt;Here is what we are using:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil settings generate 
    --family NRF52 
    --application $APP_HEX_FILE 
    --application-version $APP_FW_VERSION 
    --bootloader-version 3 
    --bl-settings-version 2
    $BOOT_SETTINGS_HEX_FILE

nrfutil pkg generate 
    --hw-version 52 
    --sd-req 0x98,0x99,0x9E,0x9D,0xB7 
    --sd-id 0xB7 
    --application $APP_HEX_FILE 
    --application-version $APP_FW_VERSION 
    --bootloader $BOOT_HEX_FILE
    --bootloader-version 3 
    --softdevice nrf5sdk/components/softdevice/s132/hex/s132_nrf52_6.1.1_softdevice.hex 
    --sd-boot-validation VALIDATE_ECDSA_P256_SHA256 
    --app-boot-validation VALIDATE_ECDSA_P256_SHA256 
    --key-file $PRIVATE_KEY_FILE
    $PKG_OUTPUT_FILE&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I noticed that we never merge the&amp;nbsp;&lt;strong&gt;$BOOT_SETTINGS_HEX_FILE&lt;/strong&gt; and the&amp;nbsp;&lt;strong&gt;$BOOT_HEX_FILE&lt;/strong&gt;, and I&amp;#39;m thinking that this merged file is what actually should be passed to the &amp;quot;nrfutil settings generate --bootloader&amp;quot; option? Otherwise the default settings are used and the DFU firmware doesn&amp;#39;t know it needs to upgrade the settings page.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try this while waiting for an answer.&lt;/p&gt;
&lt;p&gt;Thank You,&lt;br /&gt;Josh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to update firmware via BLE DFU from v14 to v15 of the nRF5 SDK?</title><link>https://devzone.nordicsemi.com/thread/191115?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 12:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fc56119-2c83-4dc4-9a80-1e864eecc689</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Josh,&amp;nbsp;&lt;/p&gt;
[quote user=""]I&amp;#39;m wondering if&amp;nbsp;this is supposed to be possible,&amp;nbsp;or if v15.3 is not backwards compatible (I didn&amp;#39;t see anything in the documentation saying it&amp;#39;s not compatible).[/quote]
&lt;p&gt;&amp;nbsp;Yes, you should be able to update from v14 to v15.3 using DFU.&lt;/p&gt;
[quote user=""]I am getting the error &amp;quot;Init command larger than expected.[/quote]
&lt;p&gt;&amp;nbsp;What command are you using when generating the DFU package?&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>