<?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 dfu random failures</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66166/nrfutil-dfu-random-failures</link><description>We&amp;#39;re using nrfutil v.6.1.0 in order to perform DFU updates to our target board using nrf52840-Dongle, and we&amp;#39;re experiencing some issues. Everytime we try a download, even if sometimes we&amp;#39;re able to successfully perform it, we often witness a high failure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Sep 2020 11:32:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66166/nrfutil-dfu-random-failures" /><item><title>RE: nrfutil dfu random failures</title><link>https://devzone.nordicsemi.com/thread/271058?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 11:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:604dd7cb-5402-494e-a851-4a25630dded6</guid><dc:creator>Edvin</dc:creator><description>[quote user="simone.bonetti"]We would really like to try to use nrfutils with an updated version of&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;pc-ble-driver-py&amp;nbsp;&lt;/strong&gt;&lt;span&gt;library which links to the latest&amp;nbsp;&lt;strong&gt;pc-ble-driver v4.1.2,&amp;nbsp;&lt;/strong&gt;rather than the current&amp;nbsp;&lt;strong&gt;pc-ble-driver v4.1.1,&amp;nbsp;&lt;/strong&gt;is this possible?&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;I understand, but this is not something I possess.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried to run a similar script using the nRF52833 as the target device:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-011ee5b12ba64fbea92f3034789368df/test833.bat"&gt;devzone.nordicsemi.com/.../test833.bat&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can you please try to copy this to the location:&lt;/p&gt;
&lt;p&gt;SDK17\examples\dfu\secure_bootloader\pca10100_s140_ble\armgcc.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You need to call the script SDK17\external\micro-ecc\build_all.bat before you compile the bootloader using the script (but I guess you already know this if you compiled the bootloader earlier.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please try this in an unmodified SDK?&lt;/p&gt;
&lt;p&gt;The reason I ask you to test these is not just to have you spend time on unnecessary tests, but I am trying to narrow down what the issue may be. Did you do any changes to the bootloader? When I ran this script, it didn&amp;#39;t fail at any of the DFU updates.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t fail on any of the 10 tests in the script, can you try to zip a project + bootloader combination that reproduces the issue, and zip the projects and send them to me here? Please make sure that the projects compile when you unzip them in an unmodified SDK before sending them.&amp;nbsp;&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 dfu random failures</title><link>https://devzone.nordicsemi.com/thread/271038?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 10:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af5c183a-5af2-40ca-95a9-a9264b33d39f</guid><dc:creator>simone.bonetti</dc:creator><description>&lt;p&gt;We&amp;#39;re having hard time try to focus where the problem actually is, what i can tell you right now is the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;your script runs fine on &lt;span&gt;nRF52840 DK eval board, no failures&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;using nRF52833 DK we experienced some failures with untouched&amp;nbsp;&lt;strong&gt;secure_bootloader\pca10100_s140_ble&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;we &lt;strong&gt;never&lt;/strong&gt; experienced failures using nRFConnect Ble&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After many tests, we&amp;#39;re pretty confident that neither the target Hw, nor the target bootloader is responsible for the failures, it&amp;#39;s something related to the PC side (libs or dongle fw).&lt;/p&gt;
&lt;p&gt;We would really like to try to use nrfutils with an updated version of&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;pc-ble-driver-py&amp;nbsp;&lt;/strong&gt;&lt;span&gt;library which links to the latest&amp;nbsp;&lt;strong&gt;pc-ble-driver v4.1.2,&amp;nbsp;&lt;/strong&gt;rather than the current&amp;nbsp;&lt;strong&gt;pc-ble-driver v4.1.1,&amp;nbsp;&lt;/strong&gt;is this possible?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu random failures</title><link>https://devzone.nordicsemi.com/thread/270812?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 11:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:881ccacf-480c-407e-ab2b-52a2eccb7f1b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tested this now, and tried to run 10 DFU updates in a row two times, and all of them succeeded as expected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you do any changes to the bootloader, other than changing the private key and public keys?&lt;/p&gt;
&lt;p&gt;Can you please try to copy the attached .bat script to SDK17\examples\dfu\secure_bootloader\pca10056_s140_ble\armgcc, and run it from a command line?&lt;/p&gt;
&lt;p&gt;This should work out of the box * if you use an nRF52840 DK as your target board. Just replace the serial number in:&lt;/p&gt;
&lt;p&gt;set TARGET_SNR=123456789&lt;/p&gt;
&lt;p&gt;with the serial number of your target DK (the one containing the bootloader), and replace the&amp;nbsp;&lt;/p&gt;
&lt;p&gt;set CONNECTIVITY_COM_PORT=COM5&lt;/p&gt;
&lt;p&gt;with the COM port of your pre-programmed connectivity dongle. Please note the line saying: &amp;quot;TODO: ...&amp;quot;&lt;/p&gt;
&lt;p&gt;NB: this will delete the dfu_public_key.c and the private.key, so please make a copy of those for backup.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-011ee5b12ba64fbea92f3034789368df/test.bat"&gt;devzone.nordicsemi.com/.../test.bat&lt;/a&gt;&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 dfu random failures</title><link>https://devzone.nordicsemi.com/thread/270779?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 09:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca648ab9-4c56-413b-aea5-98f2e50859ee</guid><dc:creator>simone.bonetti</dc:creator><description>&lt;p&gt;i narrowed down the issue in order to help you reproduce it. The best configuration i found was the following:&lt;/p&gt;
&lt;p&gt;Target board: PCA10100&lt;/p&gt;
&lt;p&gt;IDE: Segger Embedded Studio&lt;/p&gt;
&lt;p&gt;i compiled and flashed the following fw: &lt;strong&gt;examples\dfu\secure_bootloader\pca10100_s140_ble&lt;/strong&gt; from SDK 17.0.0 using a public key generated from&amp;nbsp;a private key generated with nrfutils 6.1.0&lt;/p&gt;
&lt;p&gt;i compiled the following fw:&amp;nbsp;&lt;strong&gt;\examples\ble_peripheral\ble_app_uart\pca10100\s140&lt;/strong&gt; from&amp;nbsp;&lt;span&gt;from SDK 17.0.0 and created a DFU package using the previously created private key.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i started DFU update with nrfutils 6.1.0 after flashing the dongle Fw with the -f option (the dongle shows a green LED on) and i tried 10 downloads. 2 of them showed the following error just after the connection phase:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;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.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also tried with PCA10056 eval board using precompiled FW from&amp;nbsp;&lt;strong&gt;examples\dfu\secure_dfu_test_images\ble\nrf52840&lt;/strong&gt; and i was not able to reproduce the issue, so COULD be a something&amp;nbsp;influenced by the HW, but&amp;nbsp; in my opinion still related to the tools performing the update, not to the target itself.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I still believe that an update of &lt;strong&gt;pc-ble-driver-py&amp;nbsp;&lt;/strong&gt;library with the&lt;strong&gt;&amp;nbsp;pc-ble-driver v4.1.2&amp;nbsp;&lt;/strong&gt;could be one of the first things to do, due to the release notes issues that i posted in the main post.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu random failures</title><link>https://devzone.nordicsemi.com/thread/270633?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 13:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b70cd09-6331-43bb-8d2c-f57effd8c36f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;When you are using nrfutil, you should flash the device using nrfutil as well. It is not the same FW running when you use the dongle as the connectivity dongle on nRF Connect for Desktop and when you use it as the connectivity dongle for nrfutil.&lt;/p&gt;
&lt;p&gt;Let me give it a go tomorrow (I am sorry. I am not in the office today, and I don&amp;#39;t have a dongle with me, so I will have to try tomorrow).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just in case I have some difficulties reproducing. What SDK is your bootloader from, and what Hardware is the target device running? Does it reproduce with an unmodified bootloader as well?&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 dfu random failures</title><link>https://devzone.nordicsemi.com/thread/270631?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 13:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46ed1769-1fae-47a3-95c0-14b07ca3556f</guid><dc:creator>simone.bonetti</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;yes, we did both pip install and installation from sources, but both methods produced failures.&lt;/p&gt;
&lt;p&gt;Dongle Information:&lt;/p&gt;
&lt;p&gt;nRF52840-Dongle&lt;/p&gt;
&lt;p&gt;PCA10059&lt;/p&gt;
&lt;p&gt;1.2.0&lt;/p&gt;
&lt;p&gt;2019.37&lt;/p&gt;
&lt;p&gt;F9:4F:15:99:31:88&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;we tried flashing the Dongle Connectivity Fw using both Nrf Connect Ble and nrfutils (using -f option) but the results were the same.&lt;/p&gt;
&lt;p&gt;We are experiencing the same problems on 2 different PCs with 2 different dongles ( the second&amp;nbsp;has&amp;nbsp;2020.07 reported on the sticker, the other values are the same except for the MAC address obviously).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu random failures</title><link>https://devzone.nordicsemi.com/thread/270628?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 13:46:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d82d567-2e55-4727-9af1-5fe8363d1f57</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;How did you install nrfutil v6.1.0? Can you try to install it using pip install?&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t say that I have seen this issue before. What dongle version do you have? What does it say on the sticker on the dongle?&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>