<?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 v6.1.0 dfu ble fail with connectivity firmware v4.1.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70251/nrfutil-v6-1-0-dfu-ble-fail-with-connectivity-firmware-v4-1-2</link><description>Hi, devzone 
 
 I tested nrfutil6.1.0 dfu ble feature and pca10040 as host board to upgrade another board pca10040, successful! 
 when test nrf connect desktop v3.6.0 and pca10059 as host board to upgrade another board pca10040, successful! 
 But, when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Jan 2021 15:08:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70251/nrfutil-v6-1-0-dfu-ble-fail-with-connectivity-firmware-v4-1-2" /><item><title>RE: nrfutil v6.1.0 dfu ble fail with connectivity firmware v4.1.2</title><link>https://devzone.nordicsemi.com/thread/288980?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 15:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50788bd5-1871-4ace-a7cc-d3e84f0886c9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;You did use the bootloader from the nrf52840 dongle programming tutorial? If not, try to use it (attached here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0045.pca10059_5F00_bootloader.zip"&gt;devzone.nordicsemi.com/.../0045.pca10059_5F00_bootloader.zip&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;If you can confirm that this is the bootloader you programmed on the dongle, looking into your log:&lt;/p&gt;
&lt;p&gt;Is the dongle and the target device properly powered? And are they well within range?&lt;/p&gt;
&lt;p&gt;And do you restart the DFU process manually after the error code&amp;nbsp;12290? And is there something missing in the log at the line saying &amp;quot;...&amp;quot;? Or did nrfutil print this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v6.1.0 dfu ble fail with connectivity firmware v4.1.2</title><link>https://devzone.nordicsemi.com/thread/288629?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 12:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:494c02cd-b727-4ac7-a008-40ac44cc2df5</guid><dc:creator>jacksong</dc:creator><description>&lt;p&gt;Unfortunately, it did not resolve.&lt;/p&gt;
&lt;p&gt;step1,&amp;nbsp;via&amp;nbsp;jlink erase&amp;nbsp;dongle&lt;/p&gt;
&lt;p&gt;step2, via jlink program dongle with bootloader&lt;/p&gt;
&lt;p&gt;step3, PC plug in dongle, Enumerate into &lt;strong&gt;nRF52 SDFU USB(COM4)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;step4, open nRF Connect for Desktop-&amp;gt;Programmer, select COM3, and upload&amp;nbsp;&lt;span&gt;connectivity_4.1.2_usb_with_s132_5.1.0.hex. hit &amp;quot;Write&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;COM port become&amp;nbsp;&lt;strong&gt;nRF Connect USB CDC ACM (COM3)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It seems that the programmer operation is ok , but&amp;nbsp;still &lt;strong&gt;FAIL&lt;/strong&gt; when use nrfutil dfu ble&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v6.1.0 dfu ble fail with connectivity firmware v4.1.2</title><link>https://devzone.nordicsemi.com/thread/288362?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 11:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf83e6a1-269a-48e2-9f7a-3da20cf00992</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So did you remove the pre-flashed bootloader from the Dongle?&lt;/p&gt;
&lt;p&gt;If so, please read the section &amp;quot;Adapting firmware to set REGOUT0 properly&amp;quot; and from the &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;nRF52840 dongle programming tutorial&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is usually done in the pre-flashed bootloader. Perhaps you can try to add the bootloader back in, to see if that is the issue you are encountering.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested (without an external programmer, but programming via nRF Connect for Desktop -&amp;gt; Programmer), and I didn&amp;#39;t see the issues that you are seeing. Perhaps they are caused by resets due to incorrect voltage supply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&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: nrfutil v6.1.0 dfu ble fail with connectivity firmware v4.1.2</title><link>https://devzone.nordicsemi.com/thread/288307?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 07:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01034c24-3b89-4d7f-960f-25df3701e1ef</guid><dc:creator>jacksong</dc:creator><description>&lt;p&gt;Sorry i didn&amp;#39;t make it clear, the log I uploaded was generated by manually inputting instructions, not a batch. I program it via a external jlink swd first,&amp;nbsp;then,&amp;nbsp;plug in dongle which seen as COM3.&lt;/p&gt;
&lt;p&gt;No need to doubt operation,&amp;nbsp;as I have repeatedly confirmed that it is okay many times.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v6.1.0 dfu ble fail with connectivity firmware v4.1.2</title><link>https://devzone.nordicsemi.com/thread/288304?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 07:34:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d25581a3-4280-4683-8735-391652f6df47</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I am a bit confused about your setup. Are you using the nRF52 Dongle as your connecitivity device? The reason I ask is because the dongle doesn&amp;#39;t have a programmer, so you can&amp;#39;t run this command:&lt;/p&gt;
&lt;p&gt;PS C:\Users\Administrator&amp;gt; nrfjprog -f NRF52 --program &amp;quot;C:\Python38\Lib\site-packages\pc_ble_driver_py\hex\sd_api_v5\connectivity_4.1.2_usb_with_s132_5.1.0.hex&amp;quot;&amp;nbsp; --chiperase&lt;/p&gt;
&lt;p&gt;If so, then the dongle is not the device that will be programmed. What device is your COM3? What is it programmed with, and how did you program it?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unless you have soldered on a programming header, and used an external programmer on your nRF52 Dongle, then the dongle is not programmed with &amp;quot;C:\Python38\Lib\site-packages\pc_ble_driver_py\hex\sd_api_v5\connectivity_4.1.2_usb_with_s132_5.1.0.hex&amp;quot;.&lt;/p&gt;
&lt;p&gt;&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: nrfutil v6.1.0 dfu ble fail with connectivity firmware v4.1.2</title><link>https://devzone.nordicsemi.com/thread/288258?ContentTypeID=1</link><pubDate>Sat, 09 Jan 2021 07:59:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42a92bad-2af9-4049-bd42-8012e55b97cb</guid><dc:creator>jacksong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply&lt;/p&gt;
&lt;p&gt;I tested it today.&amp;nbsp;as you mentioned above, I&amp;nbsp;use nrfjprog flash connectivity_4.1.2 firmware, all other test environment remain the same.&lt;/p&gt;
&lt;p&gt;The result is barely succeeded, &lt;strong&gt;many errors&amp;nbsp;&lt;/strong&gt;be reported in the process. then, I tried again&amp;nbsp;several times , all of result are like first&amp;nbsp;one, or wrose!&lt;/p&gt;
&lt;p&gt;btw guys, ble connect failure&amp;nbsp;originally mentioned in this post may be due to target board is run in &amp;quot;Nordic_Buttonless&amp;quot; instead of &amp;quot;DfuTarg&amp;quot;&lt;/p&gt;
&lt;p&gt;post some useful logs and attachment&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
PS C:\Users\Administrator&amp;gt; nrfjprog -f NRF52 --program &amp;quot;C:\Python38\Lib\site-packages\pc_ble_driver_py\hex\sd_api_v5\connectivity_4.1.2_usb_with_s132_5.1.0.hex&amp;quot;  --chiperase
Parsing image file.
Erasing user available code and UICR flash areas.
Applying system reset.
Checking that the area to write is not protected.
Programming device.
PS C:\Users\Administrator&amp;gt; nrfjprog -f NRF52 --verify &amp;quot;C:\Python38\Lib\site-packages\pc_ble_driver_py\hex\sd_api_v5\connectivity_4.1.2_usb_with_s132_5.1.0.hex&amp;quot;
Parsing image file.
Verifying programming.
Verified OK.
PS C:\Users\Administrator&amp;gt; nrfutil dfu ble -pkg &amp;quot;E:\nrfutil_DFU_test\ble_app_buttonless_dfu_without_bonds_s132.zip&amp;quot; -ic NRF52 -n &amp;quot;Nordic_Buttonless&amp;quot; -p COM3
...
PS C:\Users\Administrator&amp;gt; nrfutil dfu ble -pkg &amp;quot;E:\nrfutil_DFU_test\ble_app_buttonless_dfu_without_bonds_s132.zip&amp;quot; -ic NRF52  -p COM3
No target selected. Default device name: DfuTarg is used.
  [########----------------------------]   23%  00:00:53
...
  File &amp;quot;c:\python38\lib\site-packages\pc_ble_driver_py\ble_driver.py&amp;quot;, line 103, in wrapper
    raise NordicSemiException(
pc_ble_driver_py.exceptions.NordicSemiException: Failed to ble_gattc_write. Error code: 12290
PS C:\Users\Administrator&amp;gt; nrfutil dfu ble -pkg &amp;quot;E:\nrfutil_DFU_test\ble_app_buttonless_dfu_without_bonds_s132.zip&amp;quot; -ic NRF52  -p COM3
No target selected. Default device name: DfuTarg is used.
  [###############################-----]   87%  00:00:02
...
  File &amp;quot;c:\python38\lib\site-packages\pc_ble_driver_py\ble_driver.py&amp;quot;, line 103, in wrapper
    raise NordicSemiException(
pc_ble_driver_py.exceptions.NordicSemiException: Failed to ble_gattc_write. Error code: 12290
PS C:\Users\Administrator&amp;gt; nrfutil dfu ble -pkg &amp;quot;E:\nrfutil_DFU_test\ble_app_buttonless_dfu_without_bonds_s132.zip&amp;quot; -ic NRF52  -p COM3
No target selected. Default device name: DfuTarg is used.
...
  File &amp;quot;c:\python38\lib\site-packages\pc_ble_driver_py\ble_adapter.py&amp;quot;, line 222, in att_mtu_exchange
    raise NordicSemiException(
pc_ble_driver_py.exceptions.NordicSemiException: MTU exchange request failed. Common causes are: missing att_mtu setting in ble_cfg_set, different config tags used in ble_cfg_set and connect.
PS C:\Users\Administrator&amp;gt; nrfutil dfu ble -pkg &amp;quot;E:\nrfutil_DFU_test\ble_app_buttonless_dfu_without_bonds_s132.zip&amp;quot; -ic NRF52  -p COM3
No target selected. Default device name: DfuTarg is used.
  [##################################--]   95%  00:00:00

    File &amp;quot;c:\python38\lib\site-packages\pc_ble_driver_py\ble_driver.py&amp;quot;, line 103, in wrapper
    raise NordicSemiException(
pc_ble_driver_py.exceptions.NordicSemiException: Failed to ble_gattc_write. Error code: 12290
PS C:\Users\Administrator&amp;gt; nrfutil dfu ble -pkg &amp;quot;E:\nrfutil_DFU_test\ble_app_buttonless_dfu_without_bonds_s132.zip&amp;quot; -ic NRF52  -p COM3
No target selected. Default device name: DfuTarg is used.
...
  File &amp;quot;c:\python38\lib\site-packages\pc_ble_driver_py\ble_adapter.py&amp;quot;, line 222, in att_mtu_exchange
    raise NordicSemiException(
pc_ble_driver_py.exceptions.NordicSemiException: MTU exchange request failed. Common causes are: missing att_mtu setting in ble_cfg_set, different config tags used in ble_cfg_set and connect.
PS C:\Users\Administrator&amp;gt; nrfutil dfu ble -pkg &amp;quot;E:\nrfutil_DFU_test\ble_app_buttonless_dfu_without_bonds_s132.zip&amp;quot; -ic NRF52  -p COM3
No target selected. Default device name: DfuTarg is used.
...
  File &amp;quot;c:\python38\lib\site-packages\pc_ble_driver_py\ble_adapter.py&amp;quot;, line 489, in write_req
    return result[&amp;quot;status&amp;quot;]
TypeError: &amp;#39;NoneType&amp;#39; object is not subscriptable
PS C:\Users\Administrator&amp;gt; nrfutil dfu ble -pkg &amp;quot;E:\nrfutil_DFU_test\ble_app_buttonless_dfu_without_bonds_s132.zip&amp;quot; -ic NRF52  -p COM3
No target selected. Default device name: DfuTarg is used.
  [####################################]  100%
Device programmed.&lt;/pre&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrfutil_5F00_program_5F00_4.1.2usb_5F00_FW_5F00_hex-dfu-success-after-Several_5F00_times-fail-TEST2.log"&gt;devzone.nordicsemi.com/.../nrfutil_5F00_program_5F00_4.1.2usb_5F00_FW_5F00_hex-dfu-success-after-Several_5F00_times-fail-TEST2.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There must be something wrong,&amp;nbsp;maybe compatibility as issue can&amp;#39;t reproduce in your side, i tried my best to solve it(tried to set win10 system time resolution as 1ms, etc), but all in vain.&lt;/p&gt;
&lt;p&gt;Please let me know if there is research progress on this issue, I am glad to test the fix&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil v6.1.0 dfu ble fail with connectivity firmware v4.1.2</title><link>https://devzone.nordicsemi.com/thread/288217?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2021 15:22:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0f36db7-6142-40b3-bab6-e657d951fae7</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for reporting. I see that nrfutil is missing the connectivity FW for the dongle. I will report this to our developers, and also make them aware of the github issue.&lt;/p&gt;
&lt;p&gt;I see that I answered in the other thread that you link to as well, but nothing has happened from our side as far as I can tell. I will notify them about this as well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There are some ways to work around this bug.&lt;/p&gt;
&lt;p&gt;The simplest one is to open the folder:&lt;/p&gt;
&lt;p&gt;C:\Users\&amp;lt;User&amp;gt;\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\pc_ble_driver_py\hex\sd_api_v5 (or where you have installed pc_ble_driver_py, probably through Python pip).&lt;/p&gt;
&lt;p&gt;Then copy the file connectivity_4.1.2_usb_with_s132_5.1.0_dfu_pkg.zip, and rename your copy:&lt;/p&gt;
&lt;p&gt;connectivity_4.1.1_usb_with_s132_5.1.0_dfu_pkg.zip&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After that you should be able to use the -f command in nrfutil towards the dongle. Please note that you may need to do it two times, as some times the nRF52 Dongle changes COM port when a new FW is received.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alternatively, you can flash the file&amp;nbsp;connectivity_4.1.2_usb_with_s132_5.1.0.hex from the same folder to the nRF52 Dongle using the nRF Connect for Desktop -&amp;gt; Programmer app.&lt;/p&gt;
&lt;p&gt;After that you can perform the nrfutil command without the -f flag. I tested this now, and it works, as long as the softdevice version is the same as nrfutil expects it to be.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Again, thank you for reporting. I will take it forward to our R&amp;amp;D team.&lt;/p&gt;
&lt;p&gt;&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></channel></rss>