<?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>Issue doing DFU over BLE mesh: Setup,  1 target board: nrf52840 dev kit+s140+Mesh 2.0.1+NRF SDK 15.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35341/issue-doing-dfu-over-ble-mesh-setup-1-target-board-nrf52840-dev-kit-s140-mesh-2-0-1-nrf-sdk-15-0-0</link><description>I&amp;#39;m attempting Mesh DFU on an Ubuntu 16.04 system. Here are the steps in the quick start guide along with corresponding notes on my setup: 
 nrfutil keys --gen-key private_key.txt -&amp;gt; Key stored in the mesh src code home directory - .../nrf5_SDK_for_Mesh_v2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Jul 2018 19:31:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35341/issue-doing-dfu-over-ble-mesh-setup-1-target-board-nrf52840-dev-kit-s140-mesh-2-0-1-nrf-sdk-15-0-0" /><item><title>RE: Issue doing DFU over BLE mesh: Setup,  1 target board: nrf52840 dev kit+s140+Mesh 2.0.1+NRF SDK 15.0.0</title><link>https://devzone.nordicsemi.com/thread/138603?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 19:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2c7a84a-9812-4f1f-ad17-9341e52bc39f</guid><dc:creator>shubhangir</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response. I tried (3) on Ubuntu, consistently saw&lt;/p&gt;
&lt;p&gt;Failed to upgrade target. Error is: Failed to establish connection.&lt;/p&gt;
&lt;p&gt;Probably my board was in a state where it could not answer, as yo mentioned. I did try restarting the board a few times etc., but couldn&amp;#39;t get rid of the error (only on Ubuntu).&lt;/p&gt;
&lt;p&gt;In any case, I will close this issue now, as I&amp;#39;m able to get it going on Windows. Thanks very much for your help and advice!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Shubhangi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue doing DFU over BLE mesh: Setup,  1 target board: nrf52840 dev kit+s140+Mesh 2.0.1+NRF SDK 15.0.0</title><link>https://devzone.nordicsemi.com/thread/136092?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 08:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d3a1d25-42e6-4d07-b8ef-f743c520801c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am happy to hear that you had some success!&lt;/p&gt;
&lt;p&gt;The trials in 3., did you do that on Ubuntu or on Windows only? I managed to get the same behavior as you initially reported (only difference in the log was &amp;quot;[----] 0%&amp;quot; missing), after partially performing steps 5-6, trying, performing step 7, trying again, performing steps 8-9, then try again. After that I had to both perform steps 5-9 and after that physically turn the board off and on again, but then it worked. So it looks to me that it is possible to force the board into a state where it does not answer (repeated &amp;quot;PC -&amp;gt; target: 0502aabbccdd&amp;quot; messages from nrfutil), by partially programming it then attempting a DFU session.&lt;/p&gt;
&lt;p&gt;nRF5 SDK for Mesh supports both gcc/cmake and Segger Embedded Studio on all platforms. Which one to choose mostly depends on taste (SES gives you an IDE, while with gcc/cmake you edit cmake files directly but are free to use any editor of choice.) If you plan on combining Bluetooth Mesh with BLE then SES is the safer option, as SES is supported both by nRF5 SDK for Mesh and nRF5 SDK.&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: Issue doing DFU over BLE mesh: Setup,  1 target board: nrf52840 dev kit+s140+Mesh 2.0.1+NRF SDK 15.0.0</title><link>https://devzone.nordicsemi.com/thread/136005?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 18:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc375ee-e5b6-4ad7-9f53-d272fcfaea82</guid><dc:creator>shubhangir</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m finally able to perform a DFU over mesh on 2 nodes. Couple of observations:&lt;/p&gt;
&lt;p&gt;1. On using Ubuntu on my PC, I always see the error &amp;quot;&lt;span&gt;Failed to upgrade target. Error is: Failed to establish connection&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Not sure of the reason.. It could be that the nrfutil looks for &amp;quot;COM&amp;quot; ports, only available on Windows? That is a random guess.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On using Windows, I was able to get past this error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Now moving onto Windows:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I ported over all my build files (including the device page generated) from my Ubuntu PC to Windows PC. Then I ran&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;nrfutil --verbose dfu serial -pkg C:\Users\shubhang\Downloads\nrf5_SDK_for_Mesh_v2.0.1_src\examples\dfu\all_executables_for_dfu_ported_from_ub\dfu_test4.zip -p COM5 -b 115200 -fc --mesh&lt;/p&gt;
&lt;p&gt;And this failed with (log as below)&lt;/p&gt;
&lt;p&gt;...&lt;br /&gt;Opened com-port&lt;br /&gt;Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 123996&lt;br /&gt;Sending DFU start packet, afterwards we wait for the flash on target to be initialized before continuing.&lt;br /&gt;PC -&amp;gt; target: 0502aabbccdd&lt;br /&gt;target -&amp;gt; PC: 0582aabbccdd&lt;br /&gt;Got echo response&lt;br /&gt;Sending DFU init packet&lt;br /&gt;PC -&amp;gt; target: 1378fdff040f9e18084759000000010005000000&lt;br /&gt;target -&amp;gt; PC: 16a6045900000001000500000059000000010001000000&lt;br /&gt;target -&amp;gt; PC: 03847800&lt;br /&gt;PC -&amp;gt; target: 1378fdff040f9e18084759000000010005000000&lt;br /&gt;target -&amp;gt; PC: 03847800&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Failed to upgrade target. Error is: Crashed on start packet&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Possible causes:&lt;br /&gt;- bootloader, SoftDevice or application on target does not match the requirements in the DFU package.&lt;br /&gt;- baud rate or flow control is not the same as in the target bootloader.&lt;br /&gt;- target is not in DFU mode. If using the SDK examples, press Button 4 and RESET and release both to enter DFU mode.&lt;br /&gt;Closing serial port...&lt;/p&gt;
&lt;p&gt;So it appeared that there was some issue with my build. Although not sure what this could be.&lt;/p&gt;
&lt;p&gt;3. Finally, I repeated the process using the precompiled dfu application and precompiled blinky hex files in my DFU package. This DFU update succeeded, and now I&amp;#39;m able to see both of my boards blinking!&lt;/p&gt;
&lt;p&gt;4. On Windows, what is the recommended toolchain to use, to build my applications? I have gccarm (cmake/ninja) and Segger Embedded Studio installed on Ubuntu. It would be good if you could give me a tip as to which one works well in Windows.&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;Shubhangi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue doing DFU over BLE mesh: Setup,  1 target board: nrf52840 dev kit+s140+Mesh 2.0.1+NRF SDK 15.0.0</title><link>https://devzone.nordicsemi.com/thread/135995?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 16:30:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd6866cd-a994-499e-95bf-6122c9ed690d</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to download all the firmware (steps 5 through 9) also for the board that you use for performing the DFU from.&lt;/p&gt;
&lt;p&gt;The use case is that you have a number of nodes, and then you connect to one of those nodes over serial in order to upgrade the full network (including the node that you connect to.)&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: Issue doing DFU over BLE mesh: Setup,  1 target board: nrf52840 dev kit+s140+Mesh 2.0.1+NRF SDK 15.0.0</title><link>https://devzone.nordicsemi.com/thread/135811?ContentTypeID=1</link><pubDate>Tue, 12 Jun 2018 20:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:458e6ad7-2381-460b-8dd4-282ca0c045f1</guid><dc:creator>shubhangir</dc:creator><description>&lt;p&gt;A quick update, I flashed the software onto the host board (the one connected via serial port /dev/ttyACM1 onto my Ubuntu PC) as well, still see the error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>