<?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>nrfutil fails dfu - &amp;quot;UUID not found&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33220/nrfutil-fails-dfu---uuid-not-found</link><description>Hi, 
 As a part of settings up an automatic BLE DFU testing environment, we&amp;#39;re trying to update a single NRF52 board using a PC connected to a NRF51 dongle. 
 The dongle is programmed using the hex file: connectivity_2.0.1_115k2_with_s130_2.0.1 
 TheNRF52</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 May 2018 08:54:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33220/nrfutil-fails-dfu---uuid-not-found" /><item><title>RE: nrfutil fails dfu - "UUID not found"</title><link>https://devzone.nordicsemi.com/thread/130472?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 08:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eff87be-c629-405d-8bb5-3e2f3e1a4a21</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In a private conversation we found nrfutil to raise an exception on service changed indication if it had not yet done database discovery.&lt;/p&gt;
&lt;p&gt;Thanks to your reporting the nrfutil team is now aware of the issue, and they hope to have a fix for this for the next nrfutil release.&lt;/p&gt;
&lt;p&gt;For now, three possible workarounds are 1) to send service changed indications from the DFU target after a delay or not at all, or 2) to use a different tool than nrfutil, or 3) to try to patch the offending line in ble_adapter.py (e.g. not raise the exception).&lt;/p&gt;
&lt;p&gt;Finally I would like to thank you for reporting this issue and providing logs and further information in the private thread. It is highly appreciated, and allowed us to understand the problem and pinpoint the issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil fails dfu - "UUID not found"</title><link>https://devzone.nordicsemi.com/thread/128353?ContentTypeID=1</link><pubDate>Sun, 15 Apr 2018 08:57:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:706508e1-c8e3-4c01-b113-3851cd36cdf6</guid><dc:creator>ohtap</dc:creator><description>&lt;p&gt;Yes, it&amp;#39;s the same error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Right now we bypass the issue by reprogramming the device to the same version we just updated to, before another update.&lt;/p&gt;
&lt;p&gt;Since reprogramming works and resetting doesn&amp;#39;t, we might have an issue on our side. We&amp;#39;ll look into it.&lt;/p&gt;
&lt;p&gt;In the meanwhile, we&amp;#39;ll close this ticket.&lt;/p&gt;
&lt;p&gt;Thanks for the help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil fails dfu - "UUID not found"</title><link>https://devzone.nordicsemi.com/thread/128167?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 07:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ce0ecf8-6a8a-4ea4-87ce-68ae47cdd532</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Do you get the same exact log error as in your first comment (i.e.&amp;nbsp;(&amp;#39;c:\\python27\\lib\\site-packages\\pc_ble_driver_py\\ble_adapter.py&amp;#39;, 486, &amp;#39;on_gattc_evt_hvx&amp;#39;, &amp;quot;raise NordicSemiException(&amp;#39;UUID not found&amp;#39;)&amp;quot;))? If it is different, could you add a comment with the updated log when it fails the second time round.&lt;/p&gt;
&lt;p&gt;I have tested with the regular bootloader_secure_ble using the v5 softdevice &amp;amp; updating the ble_peripheral/blinky application. The nrfutil dfu works multiple times with that. I have to reset the nrf52 dk while holding in button 4 to enter bootloader mode, so that could maybe influence the process slightly. Have you tested with the regular buttonless dfu application in the ble_peripheral folder to see if you can do the dfu multiple times? That should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil fails dfu - "UUID not found"</title><link>https://devzone.nordicsemi.com/thread/128035?ContentTypeID=1</link><pubDate>Thu, 12 Apr 2018 11:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bdf8f8d-2193-48b2-8868-a4ebf6e2a058</guid><dc:creator>ohtap</dc:creator><description>&lt;p&gt;Thanks for clarifying about the documentation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t specify earlier, but we&amp;#39;re not using the nRF52 DK, we&amp;#39;re using nRF52832, so it&amp;#39;s a buttonless DFU.&lt;/p&gt;
&lt;p&gt;Your suggestion did help, but partially. Indeed erasing the nRF51 and using the nrfutil command (with the -n and -p parameters in addition to the -f flag) updates the firmware correctly and consistently.&lt;/p&gt;
&lt;p&gt;The is still a problem with successive updates. After a successful DFU, if we restart the nrf52 unit (without erasing its contents) and try another&amp;nbsp;DFU with nrfutil&amp;nbsp;it fails with the UUID error. It doesn&amp;#39;t happen when using the mobile nRF connect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is this some sort of a cache issue the nrfutil can&amp;#39;t handle?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil fails dfu - "UUID not found"</title><link>https://devzone.nordicsemi.com/thread/128001?ContentTypeID=1</link><pubDate>Thu, 12 Apr 2018 09:30:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fe88440-88ff-41c0-ba2a-de40b0718f90</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;This question has been assigned to another group. An application engineer from that group will take a look at your question as soon as possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil fails dfu - "UUID not found"</title><link>https://devzone.nordicsemi.com/thread/127959?ContentTypeID=1</link><pubDate>Thu, 12 Apr 2018 07:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9d036d0-4a8c-4924-877b-943a04bf67f1</guid><dc:creator>Takeshi Goda</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33310/invert-pwm-behaviour"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/33310/invert-pwm-behaviour&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;Can you tell me how to solve this problem?Many thanks！&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil fails dfu - "UUID not found"</title><link>https://devzone.nordicsemi.com/thread/127958?ContentTypeID=1</link><pubDate>Thu, 12 Apr 2018 07:14:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:139f8b6b-1d9c-4518-b0f2-c58ec09a1755</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Since you want an automated process, you&amp;#39;ll most likely have to use a command line tool like nrfutil to do the DFU. nRF Connect for PC does not have a command line API as far as I am aware of.&lt;/p&gt;
&lt;p&gt;I figured out the issue with some external help! The documentation at &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrfutil/nrfutil_dfu_ble.html?cp=5_5_4_0" target="_blank" rel="noopener noreferrer"&gt;this link&lt;/a&gt; is slightly wrong. Turns out the connectivity firmware we both have been running was the wrong version. Instead of flashing the connectivity firmware to the nrf51 dongle before you start the DFU process, just follow this process:&lt;/p&gt;
&lt;p&gt;set up your nrf52 dk for the DFU, should be in bootloader mode (i.e. LEDs 1 &amp;amp; 3 should be on I believe, follow &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader" target="_blank" rel="noopener noreferrer"&gt;this link&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;erase the nrf51 dongle using nrfjprog --eraseall&lt;/p&gt;
&lt;p&gt;run this command to start the dfu &amp;amp; flash the connectivity FW: nrfutil dfu ble -ic NRF51 -pkg app_dfu.zip -f&lt;/p&gt;
&lt;p&gt;where app_dfu.zip is the name you gave the zip file to update. The -f command will flash the correct connectivity FW to the dongle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil fails dfu - "UUID not found"</title><link>https://devzone.nordicsemi.com/thread/127787?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 10:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac2cfd47-8b67-4928-99a6-ee2f56fed815</guid><dc:creator>ohtap</dc:creator><description>&lt;p&gt;We&amp;#39;re using SDK 14.0 and SD v5.0.&lt;/p&gt;
&lt;p&gt;Using the PC&amp;#39;s &lt;strong&gt;nrf Connect Low Energy Bluetooth 2.3.0&lt;/strong&gt; application, we managed to initiate successful DFU a couple of times, but now it produces the error:&lt;/p&gt;
&lt;p&gt;When writing &amp;#39;ENTER_BOOTLOADER&amp;#39; command to Buttonless Characteristic of DFU Target: Operation code 1 (ENTER_BOOTLOADER) failed on DFU Target. Result code 4 (OPERATION_FAILED)&lt;/p&gt;
&lt;p&gt;Can you try a few consequent updates to see if you get the same issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With &lt;strong&gt;nrfutil&lt;/strong&gt; we sometimes get the Error code: 13 , then we reset the NRF51 dongle and either get the UUID error, or a rare successful update.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We want an automated process after every successful code build, so if we can get the nrf Connect to always work reliably, we&amp;#39;d still need some command line API. Is there a command line tool?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil fails dfu - "UUID not found"</title><link>https://devzone.nordicsemi.com/thread/127748?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 08:09:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17b5cc8e-f33d-45c5-908a-bce7ef0db60e</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;You mention that the nrf52 device is &amp;quot;discoverable and connectable&amp;quot; on nrf connect for pc. Does that mean you have been able to do a DFU from nrf connect for pc? I&amp;nbsp;followed &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader" target="_blank" rel="noopener noreferrer"&gt;this blog post&lt;/a&gt; &amp;amp; managed to do a dfu of the ble_blinky app (using the s132 softdevice). I used sdk 15 with the newest s132 softdevice. I did the dfu process using a nrf51 dongle as the connectivity bridge between the pc and the 52 DK. All I did was flash the newest firmware to the dongle when nrf connect asked to update the firmware (&lt;a href="https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/documentation/dfu_connect.html" target="_blank" rel="noopener noreferrer"&gt;see link&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;I also tried running the dfu via the nrfutil command you provided &amp;amp; I also received some weird errors. I used the command:&amp;nbsp;nrfutil dfu ble -ic NRF51 -pkg &amp;quot;dfu_firmware.zip&amp;quot;, which I believe is essentially the same as you are doing. You could try running my command to see if that makes a difference, but I doubt it will. Here is the error log I receive:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  [------------------------------------]    0%
Traceback (most recent call last):
  File &amp;quot;c:\python27\lib\runpy.py&amp;quot;, line 174, in _run_module_as_main
    &amp;quot;__main__&amp;quot;, fname, loader, pkg_name)
  File &amp;quot;c:\python27\lib\runpy.py&amp;quot;, line 72, in _run_code
    exec code in run_globals
  File &amp;quot;C:\Python27\Scripts\nrfutil.exe\__main__.py&amp;quot;, line 9, in &amp;lt;module&amp;gt;
  File &amp;quot;c:\python27\lib\site-packages\click\core.py&amp;quot;, line 722, in __call__
    return self.main(*args, **kwargs)
  File &amp;quot;c:\python27\lib\site-packages\click\core.py&amp;quot;, line 697, in main
    rv = self.invoke(ctx)
  File &amp;quot;c:\python27\lib\site-packages\click\core.py&amp;quot;, line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;c:\python27\lib\site-packages\click\core.py&amp;quot;, line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;c:\python27\lib\site-packages\click\core.py&amp;quot;, line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File &amp;quot;c:\python27\lib\site-packages\click\core.py&amp;quot;, line 535, in invoke
    return callback(*args, **kwargs)
  File &amp;quot;c:\python27\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 812, in ble
    dfu.dfu_send_images()
  File &amp;quot;c:\python27\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 122, in dfu_send_images
    self._dfu_send_image(self.manifest.application)
  File &amp;quot;c:\python27\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 83, in _dfu_send_image
    self.dfu_transport.open()
  File &amp;quot;c:\python27\lib\site-packages\nordicsemi\dfu\dfu_transport_ble.py&amp;quot;, line 450, in open
    self.dfu_adapter.open()
  File &amp;quot;c:\python27\lib\site-packages\nordicsemi\dfu\dfu_transport_ble.py&amp;quot;, line 106, in open
    self.adapter.driver.open()
  File &amp;quot;c:\python27\lib\site-packages\wrapt\wrappers.py&amp;quot;, line 562, in __call__
    args, kwargs)
  File &amp;quot;c:\python27\lib\site-packages\pc_ble_driver_py\ble_driver.py&amp;quot;, line 126, in wrapper
    raise NordicSemiException(&amp;#39;Failed to {}. Error code: {}&amp;#39;.format(wrapped.__name__, err_code))
pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: 13&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you need to run the dfu via nrfutil or are you fine using nrf connect instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>