<?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 of NRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54297/dfu-update-of-nrf52840</link><description>Hello, 
 I need some help updating NRF52840. This is my first project and I have a working application which uses Softdevice 140. I would like to update it with usb-serial in the field. 
 4. I generated my update file with following command: 
 
 5. Using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Nov 2019 09:32:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54297/dfu-update-of-nrf52840" /><item><title>RE: DFU Update of NRF52840</title><link>https://devzone.nordicsemi.com/thread/221254?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 09:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8f3dbf7-2a9f-40c5-b4ff-a50cc0f5031e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;A workaround for this is to modify the bootloader itself, where the validation happens. Take a look at the file &lt;em&gt;nrf_dfu_ver_validation.c&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Update of NRF52840</title><link>https://devzone.nordicsemi.com/thread/221228?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 08:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd2bbfac-8c72-483f-b3ec-c8315065df80</guid><dc:creator>Andreas48752</dc:creator><description>&lt;p&gt;Thanks for the verification that this is not possible.&lt;br /&gt;&lt;br /&gt;Well the goal was to use one update file in production and field update. I could make two different files but that would at least require a little bit more administrative effort which I would have liked to avoid if possible. If it cannot be done, I can live with it...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Update of NRF52840</title><link>https://devzone.nordicsemi.com/thread/221157?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 17:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:def6c55b-286e-4086-b00d-1512d678440b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I tested this myself, and I couldn&amp;#39;t figure out how to do it using the same command.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a reason you have to use the same packet (generated with the same command) two times in a row?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Couldn&amp;#39;t you just&amp;nbsp;use the following command on the first update:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrfutil pkg generate --hw-version 52 --key-file priv.pem --sd-id 0xb6 --softdevice s140_nrf52_6.1.1_softdevice.hex --sd-req 0x00 --application-version 0xFF --application ble_application1.hex dfu_update1.zip&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then, on the second update, you use this command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrfutil pkg generate --hw-version 52 --key-file priv.pem --sd-req 0xB6 --application-version 0xFF --application BLE_application2.hex dfu_update2.zip&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you tell me your end goal? Then it is easier to find a solution to your problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, if you need to use the same command (dfu packet) for both updates, I can look into it. I can ask the developers how to go about this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Update of NRF52840</title><link>https://devzone.nordicsemi.com/thread/220859?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 13:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:939e371d-d74f-4db0-ba9d-130a89d4edf6</guid><dc:creator>Andreas48752</dc:creator><description>&lt;p&gt;As you suggested, I made the update file with following command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --hw-version 52 --key-file C:\vault\priv.pem --sd-id 0xb6 --softdevice files\s140_nrf52_6.1.1_softdevice.hex --application-version 0xFF --application \s140\ses\Output\Debug\Exe\App_s140.hex --sd-req &amp;quot;0x00,0xb6&amp;quot; files\dfu_update_s140.zip&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But it does still not work:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Traceback (most recent call last):
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Scripts\nrfutil-script.py&amp;quot;, line 11, in &amp;lt;module&amp;gt;
    load_entry_point(&amp;#39;nrfutil==5.2.0&amp;#39;, &amp;#39;console_scripts&amp;#39;, &amp;#39;nrfutil&amp;#39;)()
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\click\core.py&amp;quot;, line 764, in __call__
    return self.main(*args, **kwargs)
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\click\core.py&amp;quot;, line 717, in main
    rv = self.invoke(ctx)
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\click\core.py&amp;quot;, line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\click\core.py&amp;quot;, line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\click\core.py&amp;quot;, line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\click\core.py&amp;quot;, line 555, in invoke
    return callback(*args, **kwargs)
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\nordicsemi\__main__.py&amp;quot;, line 1001, in usb_serial
    timeout)
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\nordicsemi\__main__.py&amp;quot;, line 956, in do_serial
    dfu.dfu_send_images()
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 121, in dfu_send_images
    self._dfu_send_image(self.manifest.softdevice)
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 97, in _dfu_send_image
    self.dfu_transport.send_init_packet(data)
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 256, in send_init_packet
    self.__execute()
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 421, in __execute
    self.__get_response(DfuTransportSerial.OP_CODE[&amp;#39;Execute&amp;#39;])
  File &amp;quot;C:\Users\Andreas\AppData\Roaming\Python\Python27\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 502, in __get_response
    raise NordicSemiException(&amp;#39;Extended Error 0x{:02X}: {}&amp;#39;.format(resp[3], data))
pc_ble_driver_py.exceptions.NordicSemiException: Extended Error 0x07: The array of supported SoftDevices for the update does not contain the FWID of the current SoftDevice.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I first made an update with ereased target, that worked. After that I entered bootloader (with pin at startup) and tried a second update that failed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Update of NRF52840</title><link>https://devzone.nordicsemi.com/thread/220750?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 09:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eaa84a1-d7a9-4c89-a895-23e8f2a68ee5</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try defining both sd-req: &lt;em&gt;--sd-req 0x00, 0xB6&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Update of NRF52840</title><link>https://devzone.nordicsemi.com/thread/220310?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 12:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fecbd758-fc05-45bc-9fec-5f26a9b5631e</guid><dc:creator>Andreas48752</dc:creator><description>&lt;p&gt;Thanks for the reply.&lt;br /&gt;If I do this the update succeeds if softdevice is already on the target but fails if if the target is blank. I want an update file where both ways (blank target and target with SD 6.1.1) is working.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Update of NRF52840</title><link>https://devzone.nordicsemi.com/thread/220305?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 12:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a22107b8-c883-4bad-b697-1f1e751bc986</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try setting&amp;nbsp;--sd-req to&amp;nbsp;0xB6 (s140_nrf52_6.1.0).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>