<?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>Serial DFU and Application with SoftDevice Issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56086/serial-dfu-and-application-with-softdevice-issues</link><description>Having problems bootloading my own application on my hardware. The application runs fine alone. Using SDK 16.0 and secure_bootloader/pca10056_uart example via Segger SES. 
 1. Build pca10056_uart DFU using SES 2. Erase and download DFU using SES 3. Build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Jan 2020 16:44:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56086/serial-dfu-and-application-with-softdevice-issues" /><item><title>RE: Serial DFU and Application with SoftDevice Issues</title><link>https://devzone.nordicsemi.com/thread/227477?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2020 16:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:936c392f-46c2-4f6e-9ac2-61b724079711</guid><dc:creator>figsys100</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;That did it! Added the SoftDevice hex file to my SES project file (and removed the mbr) as in the BLE DFU examples. I was under the impression that you did not need a SD pre-update but can work around this. Also had to set&amp;nbsp;&lt;span&gt;sd-req and sd-id to 0xCA.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for the quick response!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Gary&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU and Application with SoftDevice Issues</title><link>https://devzone.nordicsemi.com/thread/227363?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2020 09:29:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdbbef6c-660a-4d98-aa76-f5a837e03ee9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gary,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think I know what&amp;#39;s wrong here. The serial DFU bootloader doesn&amp;#39;t contain a softdevice. It&amp;#39;s made to work with just the MBR.&lt;/p&gt;
&lt;p&gt;If you want to update an application that requires the softdevice, you&amp;nbsp;would need to flash the softdevice in addition, when you flash the bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU and Application with SoftDevice Issues</title><link>https://devzone.nordicsemi.com/thread/227317?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 22:21:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:849ecce0-6d23-488f-9c1f-006c7ceb34a9</guid><dc:creator>figsys100</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;1. I can DFU a simple application (blinky SES w/mbr) onto my hardware with no issues.&lt;/p&gt;
&lt;p&gt;2. I get same results with a simple application with SD (ble_app_blinky_pca10056_s140).&amp;nbsp;&amp;nbsp;&lt;span&gt;sd-req and sd-id set to 0x00 Image loads with no errors but does not run.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. When I change&amp;nbsp;sd-req and sd-id to 0xCA&amp;nbsp; (one or both) I get the following error :&amp;nbsp;&amp;nbsp;Extended Error 0x07: The array of supported SoftDevices for the update does not contain the FWID of the current SoftDevice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\junk\test&amp;gt;nrfutil -v dfu serial -pkg testB.zip -p COM22 -b 115200 -fc 0

Traceback (most recent call last):
  File &amp;quot;C:\Python38-32\Scripts\nrfutil-script.py&amp;quot;, line 11, in &amp;lt;module&amp;gt;
    load_entry_point(&amp;#39;nrfutil==6.0.1&amp;#39;, &amp;#39;console_scripts&amp;#39;, &amp;#39;nrfutil&amp;#39;)()
  File &amp;quot;c:\python38-32\lib\site-packages\click\core.py&amp;quot;, line 764, in __call__
    return self.main(*args, **kwargs)
  File &amp;quot;c:\python38-32\lib\site-packages\click\core.py&amp;quot;, line 717, in main
    rv = self.invoke(ctx)
  File &amp;quot;c:\python38-32\lib\site-packages\click\core.py&amp;quot;, line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;c:\python38-32\lib\site-packages\click\core.py&amp;quot;, line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;c:\python38-32\lib\site-packages\click\core.py&amp;quot;, line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File &amp;quot;c:\python38-32\lib\site-packages\click\core.py&amp;quot;, line 555, in invoke
    return callback(*args, **kwargs)
  File &amp;quot;c:\python38-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 1034, in serial
    do_serial(package, port, connect_delay, flow_control, packet_receipt_notification, baud_rate, serial_number, True,
  File &amp;quot;c:\python38-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 949, in do_serial
    dfu.dfu_send_images()
  File &amp;quot;c:\python38-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 119, in dfu_send_images
    self._dfu_send_image(self.manifest.softdevice)
  File &amp;quot;c:\python38-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 95, in _dfu_send_image
    self.dfu_transport.send_init_packet(data)
  File &amp;quot;c:\python38-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 256, in send_init_packet
    self.__execute()
  File &amp;quot;c:\python38-32\lib\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:\python38-32\lib\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;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. Looking at the hex dump or using nRF Connect GUI tool the memory map looks as expected.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can anyone provide an actual script to generate DFU image for an example using SoftDevice (e.g., ble_app_blinky_pca10056_s140 )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU and Application with SoftDevice Issues</title><link>https://devzone.nordicsemi.com/thread/227297?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 16:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87c793e6-1b61-4866-806b-48ddde30e2b8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gary,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you modified the bootloader ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think you can call&amp;nbsp;nrfutil settings display with a hex dump from the chip. The function only works with the generated bootloader setting hex (or the hex that cover the exact part of bootloader setting).&lt;/p&gt;
&lt;p&gt;Have you tried to test DFU only the application, not with the softdevice ?&amp;nbsp;&lt;br /&gt;I&amp;#39;m not sure why you set the sd-req and sd-id to 0x00. You would need to use the correct id of the softdevice as shown by&amp;nbsp;nrfutil pkg generate --help&lt;/p&gt;
&lt;p&gt;When you take the hex dump, do you see the application copied to the correct location ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>