<?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 don&amp;#39;t start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37295/dfu-don-t-start-with-nrfutil-dfu-ble</link><description>Hi, 
 I face a problem when trying to perform a DFU firmware update via command line using nrfutil dfu ble. 
 I&amp;#39;m using windows 10 and nrfutil.exe version 3.5.0 
 
 I am using for the PCA10040 EVB as connectivity device 
 The SoftDevice is: s132_nrf52_5</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Aug 2018 14:05:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37295/dfu-don-t-start-with-nrfutil-dfu-ble" /><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/145964?ContentTypeID=1</link><pubDate>Mon, 27 Aug 2018 14:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2005ccc7-0078-4626-9c93-b6f257c59e71</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Glad it worked out. I was not aware that it interpreted the nRF Connect firmware as &amp;quot;firmware already installed&amp;quot;. Nice catch!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/145778?ContentTypeID=1</link><pubDate>Sun, 26 Aug 2018 14:21:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:221b7f7f-a726-4d26-996c-1d2cb76ca61f</guid><dc:creator>Yosi.stx</dc:creator><description>&lt;p&gt;At last the issue has been solved.&lt;/p&gt;
&lt;p&gt;In the bottom line: the problem is due to the fact the &lt;em&gt;nRF connect&lt;/em&gt; and &lt;em&gt;nfrutil&lt;/em&gt; &lt;strong&gt;do not use the same connectivity FW.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When ever I used the EVB with nrfutil, even with the parameter &amp;quot;-f &amp;quot;, it found a connectivity FW, but is was the connectivity FW that suites&amp;nbsp;the&amp;nbsp;&lt;span&gt;&lt;em&gt;nRF connect&lt;/em&gt;. Only after I start the session of nrfutil from something else (not connectivity FW), the &amp;quot;-f &amp;quot; parameter&amp;nbsp;took place and the appropriate&amp;nbsp;connectivity FW for&amp;nbsp;&lt;em&gt;nrfutil&lt;/em&gt; was downloaded to the EVB and afterwards&amp;nbsp;&lt;em&gt;nrfutil&lt;/em&gt; worked as expected.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for all the support.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Projects\Dalton\DFU_test&amp;gt;nrfutil dfu ble -pkg Fake_app.zip -ic NRF52 -p &amp;quot;COM7&amp;quot; -n &amp;quot;DfuBoot_2018_08_21&amp;quot; -f
Board already flashed with connectivity firmware.
  [####################################]  100%
Device programmed.
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/145769?ContentTypeID=1</link><pubDate>Sat, 25 Aug 2018 20:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5a1180a-83ce-474a-8a25-e8ac10298939</guid><dc:creator>Yosi.stx</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for your help and for the files.&lt;/p&gt;
&lt;p&gt;I have changed all the required changes in the batch file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have downloaded the SoftDevice,&amp;nbsp;buttonless, bootloader and settings to my&amp;nbsp;&lt;span&gt;nrf52 target board and used the&amp;nbsp;nrf51 as the controller&amp;nbsp;board.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I used the command prompt window in administrator mode and i&lt;/span&gt;&lt;span&gt;t failed as usual.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here are the results:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Projects\Dalton\DFU_test&amp;gt;nrfutil dfu ble -pkg dfu_packages\app_dfu_package2.zip -ic NRF51 -p &amp;quot;COM8&amp;quot; -n &amp;quot;Nordic_Buttonless&amp;quot; -f
Board already flashed with connectivity firmware.
  [------------------------------------]    0%
Traceback (most recent call last):
  File &amp;quot;C:\Python27\Scripts\nrfutil-script.py&amp;quot;, line 9, in &amp;lt;module&amp;gt;
    load_entry_point(&amp;#39;nrfutil==3.5.1&amp;#39;, &amp;#39;console_scripts&amp;#39;, &amp;#39;nrfutil&amp;#39;)()
  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 838, in ble
    dfu.dfu_send_images()
  File &amp;quot;c:\python27\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 129, 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 90, 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;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I really start to believe that this failure has to do with the &lt;strong&gt;drivers&lt;/strong&gt; that connect Python to Windows.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could anyone suggest any clue in that direction?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As usual the same combination of boards and packages worked fine with my PC nRF connect program.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here are some screenshots:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7357.2018_2D00_08_2D00_25_5F00_233515.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7673.2018_2D00_08_2D00_25_5F00_233548.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6443.2018_2D00_08_2D00_25_5F00_233558.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/145301?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 11:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a4a3760-edcb-4512-a873-9d7c3f86a65b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;You need to change the bottom nrfutil line in the .bat-file.&lt;/p&gt;
&lt;p&gt;Attached the modified .bat file. Make sure to replace the original file (It has to have the same path as the one included in the zip folder)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2de1571f24aa4269a45164e1fbe78213/flash_5F00_bootloader.bat"&gt;devzone.nordicsemi.com/.../flash_5F00_bootloader.bat&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try it, and let me know whether it works or not.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;You still need to remember to change COM20 to whatever COM port that the nRF51DK is connected to.&lt;/p&gt;
&lt;p&gt;Also change the --snr &amp;lt;serial_number&amp;gt; with the serial number of your dfu target DK.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/145171?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 15:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff0a46c4-a95e-44f7-8e1b-77c2795be07d</guid><dc:creator>Yosi.stx</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I do have 2 EVBs, but one is&amp;nbsp;PCA10040 (nrf52) and the other is&amp;nbsp;PCA10028 (nrf51).&lt;/p&gt;
&lt;p&gt;For trying your files, can I use the&amp;nbsp;PCA10028 as the connectivity board and the&amp;nbsp;&lt;span&gt;PCA10040&amp;nbsp;as the target board?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My Segger JLink version is &amp;quot;JLink_V620i&amp;quot;.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;Segger JLink version is OK, since both of the EVBs work fine as connectivity boards when I work with the &amp;quot;nRF Connect v2.3.0&amp;quot; running on my PC (see attached figures).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PCA10040&amp;nbsp; as connectivity&amp;nbsp;board:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2018_2D00_08_2D00_21_5F00_183908.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PCA10028&amp;nbsp;as connectivity&amp;nbsp;board:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2018_2D00_08_2D00_21_5F00_184037.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In both cases I can perform successful&amp;nbsp;secure DFU with many ZIP packages that I have created. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The only problem is with the nrfutil when used as DFU controller.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/145035?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 07:27:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec6f8f5d-556d-4be0-90f6-94966b5a2277</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you use the debug bootloader projects? I don&amp;#39;t see that it should cause any problems with opening the com-port, so it is a shot in the dark, but still worth a shot.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a&amp;nbsp; zip-folder which I used to test the nrfutil DFU operation once.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;can you unzip it and test it? All you should have to do is to open flash_bootloader.bat in notepad, and change all the references to --snr 682654319 with --snr &amp;lt;SeggerID of your DFU chip&amp;gt;, and change COM20 with the corresponding COM port of your connectivity DK (Keep the brackets &amp;quot;).&lt;/p&gt;
&lt;p&gt;Then you can just run the flash_bootloader.bat in CMD, and it should flash the bootloader, and do the DFU transfer using nrfutil.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2de1571f24aa4269a45164e1fbe78213/DFU_5F00_test.zip"&gt;devzone.nordicsemi.com/.../DFU_5F00_test.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You probably need 2x DK to test this. If that doesn&amp;#39;t work. What Segger JLink version do you have on your computer?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/144954?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 13:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09900c4a-b42d-4b12-893f-f6f7c5beae4a</guid><dc:creator>Yosi.stx</dc:creator><description>&lt;p&gt;Hello Edvin.&lt;/p&gt;
&lt;p&gt;Thank you for the answer.&lt;/p&gt;
&lt;p&gt;1) usually, for create zip packages, I worked with the nrfutil.exe that is in &amp;quot;c:\util\&amp;quot; folder which is on my PC environment path. And from there I began trying to do the DFU with nrfutil.&lt;/p&gt;
&lt;p&gt;Only after I become desperate I started to use&amp;nbsp;&amp;nbsp;__main__.py from:&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\Python27\Lib\site-packages\nordicsemi&amp;gt;&amp;quot; which obviously is not in the &lt;span&gt;environment&amp;nbsp;&lt;/span&gt;path. have to say that in both cases the result was:&lt;em&gt; Error code: 13&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;2+3)&amp;nbsp;&lt;span&gt;the connectivity board:&amp;nbsp;&amp;nbsp;PCA10040;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;target board: Our board (based on&amp;nbsp;nRF52832),&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The combination of those boards&amp;nbsp;&lt;strong&gt;can&lt;/strong&gt; perform DFU when using the nrf Connect.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/144846?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 07:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9fb3211-7e94-4470-8f42-6fb9bb144046</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I see that you have tried many different solutions, from the list.&lt;/p&gt;
&lt;p&gt;1: Are you sure you have added the nrfutil tool to your environment path on the computer?&lt;/p&gt;
&lt;p&gt;2: You do have two devices, right? One for the connectivity board, and one for your target board (the DFU target)?&lt;/p&gt;
&lt;p&gt;3: Is the connectivity board an nRF development kit, or is this also a custom board?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the different versions of the different tools. You can stick to the latest version of nrfutil, v 3.5.1 and Python 2.7.12 (which is what I use). I also tend to use &amp;quot;-f&amp;quot;, since it ensures that the correct version of pc-ble-driver is flashed to the board (which depends on what version of nrfutil you use).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/144809?ContentTypeID=1</link><pubDate>Sun, 19 Aug 2018 17:56:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b0bce28-75dc-4c55-a77e-c58c8113d00d</guid><dc:creator>Yosi.stx</dc:creator><description>&lt;p&gt;I even tried to change to connectivity FW to:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;connectivity_1.0.1_&lt;strong&gt;115k&lt;/strong&gt;2_with_s132_3.0.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;according to this recommendation: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18620/problem-installing-pc-ble-driver-py"&gt;here&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It also did not help, I still get the following feedback:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Python27\Lib\site-packages\nordicsemi&amp;gt;__main__.py dfu ble -ic NRF52 -p COM7 -n &amp;quot;DfuBoot_2018_08_16&amp;quot; -pkg app_128FF.zip -f
Board already flashed with connectivity firmware.
  [------------------------------------]    0%
Traceback (most recent call last):
  File &amp;quot;C:\Python27\Lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 987, in &amp;lt;module&amp;gt;
    cli()
  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 838, in ble
    dfu.dfu_send_images()
  File &amp;quot;C:\Python27\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 129, 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 90, 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;needless to mention that I put the ZIP file &amp;quot;app_128FF.zip&amp;quot; in the location of&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;C:\Python27\Lib\site-packages\nordicsemi&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/144793?ContentTypeID=1</link><pubDate>Sat, 18 Aug 2018 19:56:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e30bdac4-4070-4c55-abfe-27f4a7e203c2</guid><dc:creator>Yosi.stx</dc:creator><description>&lt;p&gt;The target device is &amp;quot;our&amp;quot; board (not PCA10040) compiled with our Public key while the ZIP package is appropriate one created with the correct private key.&amp;nbsp;&lt;span style="font-family:inherit;"&gt;I am sure about it since the &lt;strong&gt;whole DFU process is working perfectly fine&lt;/strong&gt; when I am using exactly the same combination of HW, FW and ZIP package but running the DFU from the nrf Connect application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t use the sample from the SDK since our board has different pin layout from the&amp;nbsp;&lt;span&gt;PCA10040.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;I put&amp;nbsp;&lt;em&gt;Device Monitor Studio&lt;/em&gt; on the UART communication between the PC and the connectivity device, and got this info, maybe it can help if an expert will look on it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2018_2D00_08_2D00_18_5F00_225633.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/144783?ContentTypeID=1</link><pubDate>Sat, 18 Aug 2018 16:38:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1510e75-2f9a-42a0-990e-78a6c8065e1e</guid><dc:creator>retrostately</dc:creator><description>&lt;p&gt;Also, your version of nrfutil is probably fine.&amp;nbsp; But if you want to try building it from source, you can do the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mkdir nrfutil
cd nrfutil
git clone https://github.com/NordicSemiconductor/pc-nrfutil.git .
pip2 install -r requirements.txt
pip2 install pyinstaller
pyinstaller nrfutil.spec&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This assumes you have Python 2.x and git installed. After this, it will produce an nrfutil.exe file in the &amp;#39;dist&amp;#39; folder.&amp;nbsp; You can move it wherever you want.&amp;nbsp; Just make sure that directory is in your PATH variable &lt;em&gt;before&lt;/em&gt; the Python path listing (otherwise it will run the version of nrfutil you installed via pip).&amp;nbsp; Again, I doubt the nrfutil is the problem, but it&amp;#39;s worth a shot.&lt;/p&gt;
&lt;p&gt;Also, it would help if you explained a bit more about the setup.&amp;nbsp; So, you have your nRF connectivity device connected to the COM port with the connectivity firmware flashed to it.&amp;nbsp; What about the target device?&amp;nbsp; Is it also a PCA10040?&amp;nbsp; Does it already have a DFU bootloader flashed to it?&amp;nbsp; Is it a custom bootloader or did you flash a sample from the SDK to it?&amp;nbsp; Are you signing the ZIP package with the correct key?&amp;nbsp; Some more details would be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/144782?ContentTypeID=1</link><pubDate>Sat, 18 Aug 2018 16:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17ac5c02-9b3a-41ba-9c67-425ceb50bc57</guid><dc:creator>retrostately</dc:creator><description>&lt;p&gt;It seems to me it has to be one of two things:&lt;/p&gt;
&lt;p&gt;1) There is something wrong with your nrfutil application.&lt;/p&gt;
&lt;p&gt;2) There is something wrong with how you are generating your package.&lt;/p&gt;
&lt;p&gt;Have you tried this command with one of the example ZIP files provided with the SDK?&amp;nbsp; Also, what command are you using to generate the package?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/144781?ContentTypeID=1</link><pubDate>Sat, 18 Aug 2018 15:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e68c04ea-5c51-417f-a590-46f7e822b923</guid><dc:creator>Yosi.stx</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have tried a lot of things to make it work, yet with no success.&lt;/p&gt;
&lt;p&gt;Regarding your suggestions:&lt;/p&gt;
&lt;p&gt;1) The com port is not used by another application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) I did power cycle of the board before running the nrfutil command.&lt;/p&gt;
&lt;p&gt;3) My python is 2.7.12 and I have tried several versions of nrfutil (including 3.5.1) on two different PC&amp;#39;s .&lt;/p&gt;
&lt;p&gt;4) I did several tried with the &amp;quot;-f&amp;quot;, always return with:&amp;nbsp;&lt;strong&gt;&amp;quot;Board already flashed with connectivity firmware.&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Other experiments I have tried:&lt;/p&gt;
&lt;p&gt;5) Try with different evaluation boards with NRF51 and NRF52 as the connectivity board.&lt;/p&gt;
&lt;p&gt;6) Changing to other version of the nrfutil (3.5.1; 3.4.0; 3.5.0)&lt;/p&gt;
&lt;p&gt;7) Try with different PC with windows 7, with new installation of the &amp;quot;pip install nrfutil&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I searched google on: &amp;quot;&lt;strong&gt;nrfutil dfu ble error code 13&lt;/strong&gt;&amp;quot;&amp;nbsp; and I have found that it is repeated issue for many other users, yet there was no good answer for this problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt="ERROR 13" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6102.2018_2D00_08_2D00_18_5F00_173051.png" /&gt;&lt;/p&gt;
&lt;p&gt;Maybe it has to do with the fact that my target board is in DFU mode from the bootloader itself and not from &amp;quot;buttonless application&amp;quot;?&lt;/p&gt;
&lt;p&gt;Could it be that there is an issue with the &amp;quot;&lt;span&gt;pc_ble_driver_py&amp;quot; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Is there any importance to the order of the parameter given to &amp;quot;nrfutil dfu ble ...&amp;quot; command?&lt;/p&gt;
&lt;p&gt;for example:&lt;/p&gt;
&lt;p&gt;nrfutil dfu ble -ic NRF52 -n &amp;quot;DfuBoot_2018_08_16&amp;quot; -p COM45 -pkg Fake_app.zip&lt;br /&gt;nrfutil dfu ble -ic NRF52 -p COM45 -pkg Fake_app.zip -n &amp;quot;DfuBoot_2018_08_16&amp;quot;&lt;/p&gt;
&lt;p&gt;p.s. in the other PC the &amp;quot;&lt;strong&gt;Jlink CDC Uart port&lt;/strong&gt;&amp;quot; was changed to COM45.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/143609?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 14:27:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4240b04a-ab5b-4df0-9ca7-43396a325c97</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you sure that the COM port / the nRF is not used by another application?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try to power cycle the board before running the nrfutil command.&lt;/p&gt;
&lt;p&gt;I just tested this, with the -f command:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrfutil dfu ble -ic NRF52 -pkg application\app_dfu_package.zip -p COM20 -f -n &amp;quot;Nordic_Buttonless&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have the following versions of Python and nrfutil:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;gt;python --version
Python 2.7.12

&amp;gt;nrfutil version
nrfutil version 3.5.1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you try to update to nrfutil 3.5.1, and python 2.7.12, with the &amp;quot;-f&amp;quot; and try to close anything that may use the nRF connected to COM7.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU don't start with nrfutil dfu ble</title><link>https://devzone.nordicsemi.com/thread/143467?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 04:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00b0bc07-8b68-4011-8e74-27c735d4968e</guid><dc:creator>retrostately</dc:creator><description>&lt;p&gt;What version of Python did you use to install nrfutil? Have you tried using a different version? i.e. Python2 if you installed with Python3, or Python3 if you installed with Python2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>