<?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 example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44199/dfu-example</link><description>Hi, 
 I am trying to implement the DFU example from Mesh 3.1.0SDK and 15.2.0 SDK. I am following the process mentioned here . 
 I am using a MacOS for development. 
 I am able to execute steps 1 through 9 successfully but when I execute step 10, it says</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Mar 2019 08:45:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44199/dfu-example" /><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/176101?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 08:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0097e1ed-3bf1-4334-8211-dd2fb3cfa39f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;That is good news! Glad it worked out.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, one has to be careful when working with files that are not specific for one example. The uart files are one of the files that are common by many parts of the SDK.&lt;/p&gt;
&lt;p&gt;Let us follow up on &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44576/dfu-compatibility-for-a-mesh-example" rel="noopener noreferrer" target="_blank"&gt;your other ticket&lt;/a&gt; regarding implementing the DFU part to other projects, then.&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: DFU example</title><link>https://devzone.nordicsemi.com/thread/175774?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 18:43:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd6d13dc-714f-42f9-aefd-f8051d270e68</guid><dc:creator>DeveloperZ</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Finally, I got the DFU up and running. I downloaded everything from the website and repeated the process from the scratch and it worked.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My best guess is that DFU wasn&amp;#39;t being pushed properly because of some random change in the 15.2.0 SDK (may be UART files) which was made in a different application or somehow!!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot for your patience. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/175614?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 12:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85538d69-f669-436d-a003-4c31babd99d3</guid><dc:creator>DeveloperZ</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/44199/dfu-example/175529"]You use Segger Embedded Studio, right? And what SDK_for_mesh version do you use?[/quote]
&lt;p&gt;Yes, I am using Segger IDE. I am using 15.2.0 SDK and 3.1.0 Mesh SDK&lt;/p&gt;
&lt;p&gt;I have attached the compressed folder of dfu example below. I have removed the build folder and zipped it as it was giving an error to upload a large file&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4745.dfu.zip"&gt;devzone.nordicsemi.com/.../4745.dfu.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/175529?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 07:45:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cac978b0-5896-47cf-a2bb-11ae9694bf34</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can you zip the DFU example that you are using? I want to test it. Zip the entire folder: SDK_for_Mesh\examples\dfu.&lt;/p&gt;
&lt;p&gt;You use Segger Embedded Studio, right? And what SDK_for_mesh version do you use? (and what &amp;quot;normal&amp;quot; SDK version do you use with it?)&lt;/p&gt;
&lt;p&gt;I want to see if I can get it up an running on my computer. Basically, if there are some project settings that are causing the issues, or if it is the procedure.&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: DFU example</title><link>https://devzone.nordicsemi.com/thread/175430?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 15:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b376035b-9f13-4b4b-8acc-b16bc70a8426</guid><dc:creator>DeveloperZ</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;We tried to run this from the scratch: stock 15 SDK, Stock Mesh SDK, everything as it comes from Nordics downloads pages, but still didn&amp;#39;t work... So we doubt this is anything related to the UART changes we made on our custom firmware.&lt;/p&gt;
&lt;p&gt;We are going to run the example again on a completely stock setup again just to be sure... but we doubt this is going to make any difference... all in all IMHO, the documentation could be more clear and useful?&lt;/p&gt;
&lt;p&gt;Following are the files that I generated and flashed after changing the UART pins to initial configurations and also pca10040 file with pin configurations:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3731.device_5F00_page_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_6.1.0.hex"&gt;devzone.nordicsemi.com/.../3731.device_5F00_page_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_6.1.0.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4405.dfu_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_6.1.0.hex"&gt;devzone.nordicsemi.com/.../4405.dfu_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_6.1.0.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1016.dfu_5F00_test.zip"&gt;devzone.nordicsemi.com/.../1016.dfu_5F00_test.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8203.mesh_5F00_bootloader_5F00_serial_5F00_gccarmemb_5F00_nrf52832_5F00_xxAA.hex"&gt;devzone.nordicsemi.com/.../8203.mesh_5F00_bootloader_5F00_serial_5F00_gccarmemb_5F00_nrf52832_5F00_xxAA.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pca10040.h"&gt;devzone.nordicsemi.com/.../pca10040.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0250.s132_5F00_nrf52_5F00_6.1.0_5F00_softdevice.hex"&gt;devzone.nordicsemi.com/.../0250.s132_5F00_nrf52_5F00_6.1.0_5F00_softdevice.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/175411?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 14:54:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6f2c39e-969f-49ad-ab0a-c63fd5a4ad86</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok. I don&amp;#39;t know why it is not working. Can you describe how you changed the Serial interface when you changed the UART pins? Did you turn off flow control?&lt;/p&gt;
&lt;p&gt;Can you send the updated hex files with the correct UART settings? The previous version wasn&amp;#39;t working, I can confirm that. But there has to be something that you have either changed, or done correctly when following the guide. Was there some part of the guide that you were uncertain of, where you may have done something incorrectly?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am really trying to understand why it isn&amp;#39;t working, but all I can see from the information you describe is that the board isn&amp;#39;t responding, so at this point, anything could be the source of the issue.&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: DFU example</title><link>https://devzone.nordicsemi.com/thread/175390?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 14:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1f614d0-2c09-44f3-ba67-6367e4e2d828</guid><dc:creator>DeveloperZ</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/44199/dfu-example/175380"]What HW are you trying this on? Are you using a DK?[/quote]
&lt;p&gt;Yes, I am using an nRF52 development kit.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/44199/dfu-example/175380"]Can you show me the log output and the terminal output when you try to push the DFU?[/quote]
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2019_2D00_03_2D00_11-at-10.26.31-AM.png" /&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/44199/dfu-example/175380"]Did you also reprogram the DK after changing the UART pins?[/quote]
&lt;p&gt;Yes, I repeated the whole process again with a new Mesh SDK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/175380?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 14:18:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c94f8c4-529e-4e6b-a8ab-83b08f3e317a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What HW are you trying this on? Are you using a DK? Can you show me the log output and the terminal output when you try to push the DFU? Did you also reprogram the DK after changing the UART pins?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/175352?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 13:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0f838ff-0970-4e82-a7b7-2a68029322a5</guid><dc:creator>DeveloperZ</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/44199/dfu-example/175285"]Did you change the UART pins in the application?[/quote]
&lt;p&gt;Yes, I noticed that I changed the UART pin configuration. Now, I set them back to the original configuration and tried to push the DFU but the result is the same as what you saw.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/175285?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 10:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17e58ed2-540b-4b28-a6fc-0e4f7ceed5d4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I see that your application is running, I can see it from the log. However, if you add --verbose to your DFU command:&lt;br /&gt;nrfutil-mesh --verbose dfu serial -pkg dfu_test.zip -p COM7 -b 115200 --mesh&lt;/p&gt;
&lt;p&gt;(obviously with your own COM port), you will see that it says:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d2f2a48d043e484abe8eafd0c97ad953/pastedimage1552299584069v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your application log says:&lt;/p&gt;
&lt;p&gt;0&amp;gt; &amp;lt;t: 1&amp;gt;, main.c, 206, ----- Bluetooth Mesh DFU Example -----&lt;br /&gt; 0&amp;gt; &amp;lt;t: 8818&amp;gt;, serial_handler_prov.c, 267, Generating encryption keypair...&lt;br /&gt; 0&amp;gt; &amp;lt;t: 13706&amp;gt;, main.c, 224, Initialization complete!&lt;br /&gt; 0&amp;gt; &amp;lt;t: 18474&amp;gt;, main.c, 245, Enabling serial interface...&lt;br /&gt; 0&amp;gt; &amp;lt;t: 18477&amp;gt;, mesh_app_utils.c, 65, Device UUID (raw): 464B4596FD473049936CE0FE34C4D5FD&lt;br /&gt; 0&amp;gt; &amp;lt;t: 18480&amp;gt;, mesh_app_utils.c, 70, Device UUID : 96454B46-47FD-4930-936C-E0FE34C4D5FD&lt;br /&gt; 0&amp;gt; &amp;lt;t: 18488&amp;gt;, nrf_mesh_dfu.c, 528, RADIO TX! SLOT 0, count 255, interval: periodic, handle: FFFE&lt;br /&gt; 0&amp;gt; &amp;lt;t: 18493&amp;gt;, nrf_mesh_dfu.c, 561, SERIAL TX!&lt;br /&gt; 0&amp;gt; &amp;lt;t: 18500&amp;gt;, main.c, 253, DFU example started!&lt;/p&gt;
&lt;p&gt;(RTT Log read using J-Link RTT Viewer).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The &amp;quot;--verbose output from nrfutil --verbose dfu serial -pkg dfu_test.zip -p COM7 -b 115200 --mesh&amp;quot; suggests that there are some issues with getting a response from the serial connection. Did you change the UART pins in the application?&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: DFU example</title><link>https://devzone.nordicsemi.com/thread/175093?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 15:16:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fff26c5f-a9eb-4be4-afce-70f1dced31e7</guid><dc:creator>DeveloperZ</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry about that. I added the files below:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/device_5F00_page_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_6.1.0.hex"&gt;devzone.nordicsemi.com/.../device_5F00_page_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_6.1.0.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_6.1.0.hex"&gt;devzone.nordicsemi.com/.../dfu_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_6.1.0.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/mesh_5F00_bootloader_5F00_serial_5F00_gccarmemb_5F00_nrf52832_5F00_xxAA.hex"&gt;devzone.nordicsemi.com/.../mesh_5F00_bootloader_5F00_serial_5F00_gccarmemb_5F00_nrf52832_5F00_xxAA.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/s132_5F00_nrf52_5F00_6.1.0_5F00_softdevice.hex"&gt;devzone.nordicsemi.com/.../s132_5F00_nrf52_5F00_6.1.0_5F00_softdevice.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5074.dfu_5F00_test.zip"&gt;devzone.nordicsemi.com/.../5074.dfu_5F00_test.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/175088?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 15:10:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:865c5128-51a4-4606-9d92-0d362637cf84</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d2f2a48d043e484abe8eafd0c97ad953/pastedimage1552057818508v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can upload it here on devzone. Just click insert -&amp;gt; image/video/file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/175017?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 13:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f5532db-b93c-46bc-86aa-ba2f3156ee75</guid><dc:creator>DeveloperZ</dc:creator><description>&lt;p&gt;Hi, I have put the hex files and the Blinky dfu packet in this folder&amp;nbsp;&lt;a href="https://www.dropbox.com/s/y6xtc6lhmucvrgz/dfu%20hex%20files.zip?dl=0"&gt;here&lt;/a&gt;. Please let me know if you need any other files.&amp;nbsp;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/44199/dfu-example/175013"]you may try using the nRF Programmer, which is part of nRF Connect 2 for Desktop[/quote]
&lt;p&gt;Okay, I will try and let you know the update.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/175013?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 13:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d2c9220-8cfc-43dc-96c3-363735a0864c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can you send the hex files here? I would like to try.&lt;/p&gt;
&lt;p&gt;Also, you may try using the nRF Programmer, which is part of nRF Connect 2 for Desktop. Maybe it gives some more information on why it isn&amp;#39;t working.&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: DFU example</title><link>https://devzone.nordicsemi.com/thread/175011?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 12:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2ace4b2-22b7-4662-9715-22715e4aba12</guid><dc:creator>DeveloperZ</dc:creator><description>&lt;p&gt;Yes, I was able to program every file(softdevice, boot loader, application, device page) with nrfjprog but boot loader verification hangs!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/174975?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 09:42:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1757144e-4d55-4207-83d0-12c90b445da6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So can you try to use nrfjprog to program all the files?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/174897?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 19:34:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c0a3687-509c-4f92-a7ef-129121b9b434</guid><dc:creator>DeveloperZ</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;No, I have been using nrfjprog only to perform the dfu.&lt;/p&gt;
&lt;p&gt;Also, any idea on why the boot loader verification is hung up at Resetting Device..&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Reading UICR..&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Reading Device page..&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Resetting device..&lt;/span&gt;&lt;/p&gt;
&lt;blockquote class="quote"&gt;
&lt;div class="quote-user"&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44199/dfu-example/174633"&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/174890?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 17:52:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25324aa6-6115-4afc-a3a2-24401a682160</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Well, yes and no. The issue is the signing of the application that is flashed when you program the device via an IDE. IDEs doesn&amp;#39;t use the .hex file, but rather the .out file to be able to debug the application. When using this file, the key that was used in the settings page will change the CRC of the application, and the bootloader will not validate it as a valid application (it believes that someone has messed with/changed the Firmware). If this is what you have done, then that is probably why the application is not responding to the serial messages, because the application is not running. Try to flash your .hex files using nrfjprog, and see whether that works better.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can download it here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF5-Command-Line-Tools"&gt;https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF5-Command-Line-Tools&lt;/a&gt;&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: DFU example</title><link>https://devzone.nordicsemi.com/thread/174804?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 12:54:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ef92b88-f0f6-46b0-b972-59e3c3bf5876</guid><dc:creator>DeveloperZ</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;I have another question. Can&amp;#39;t we use Segger IDE to flash the dfu code onto the board, flash the device page, reset the board and then run the DFU command? instead to executing the commands and flashing the board from command line&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/174653?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 18:28:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47cf0f95-b314-42f0-a066-03204a5a9284</guid><dc:creator>DeveloperZ</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/44199/dfu-example/174633"]I usually do a .bat script (windows), but you should be able to write a .sh script doing basically the same things.[/quote]
&lt;p&gt;I will try this out and let you know once done.&amp;nbsp;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/44199/dfu-example/174633"]python bootloader_verify.py 682994997&amp;nbsp;usbmodem0006829949971[/quote]
&lt;p&gt;This command hangs up at Resetting device.. as follows:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Reading UICR..&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Reading Device page..&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Resetting device..&lt;span class="Apple-tab-span"&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 example</title><link>https://devzone.nordicsemi.com/thread/174633?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 16:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7da2384-5d56-4f27-a448-76fbf510f39f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The 0502aabbccdd is an echo command to see that the serial device is responding, something it was not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can see the list over serial commands and serial events here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/Mesh_SDK/v3-0-0/md_doc_libraries_serial_cmd#device-echo"&gt;https://www.nordicsemi.com/DocLib/Content/SDK_Doc/Mesh_SDK/v3-0-0/md_doc_libraries_serial_cmd#device-echo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The first byte (05) is the length of the packet (excluding this byte itself), and the second byte is the OPcode. 02 means echo, and the rest of the bytes is the bytes that the device is supposed to echo back.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you reset the device after programming it (using nrfjprog)? &amp;quot;nrfjprog --reset&amp;quot; should do the trick. If not, there is something wrong with the application, the bootloader, or possibly the device page that you have flashed. Can you try to run the&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;python bootloader_verify.py 682994997&amp;nbsp;usbmodem0006829949971&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;command with the dev/tty. part in front of the usbmodem########?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The DFU guides are a bit tricky, because everything has to be done exactly correct for it to work. What I really recommend that you do is to write a script that compiles, generates the device page, erases the chip, programs the softdevice + bootloader + application + device page, resets the device, and then you can try to perform the dfu. I usually do a .bat script (windows), but you should be able to write a .sh script doing basically the same things.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;One of these scripts that I have made is a file called test.bat, and looks like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="bat"&gt;make

nrfutil-mesh dfu genpkg --application _build\nrf52832_xxaa.hex --company-id 0x00000059 --application-id 1 --application-version 2 --key-file keys\private_key.txt --sd-req 0x00AF --mesh dfu_test2.zip
nrfutil-mesh dfu genpkg --application _build\nrf52832_xxaa.hex --company-id 0x00000059 --application-id 1 --application-version 3 --key-file keys\private_key.txt --sd-req 0x00AF --mesh dfu_test3.zip


cd tools\dfu
python device_page_generator.py -d nrf52832_xxAA -sd &amp;quot;s132_6.1.0&amp;quot;
cd ..\..

nrfjprog -e --snr 682654319
nrfjprog --program ..\..\nRF5_SDK_15.2.0_9412b96\components\softdevice\s132\hex\s132_nrf52_6.1.0_softdevice.hex --verify --snr 682654319
nrfjprog --program ..\bin\bootloader\gccarmemb\mesh_bootloader_gccarmemb_nrf52832_xxAA.hex --snr 682654319
nrfjprog --program _build\nrf52832_xxaa.hex --verify --snr 682654319
nrfjprog --program tools\dfu\bin\device_page_nrf52832_xxAA_s132_6.1.0.hex --verify --snr 682654319
nrfjprog --reset --snr 682654319

TIMEOUT 5

nrfutil-mesh --verbose dfu serial -pkg dfu_test2.zip -p COM7 -b 115200 -fc --mesh&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Exactly this script uses an armgcc compiler, so you would of course replace &amp;quot;make&amp;quot; with manually compiling your application project. Another thing this script doesn&amp;#39;t do is to insert the private and public key like&amp;nbsp;step number 1 and 2 in &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/Mesh_SDK/v3-0-0/md_doc_getting_started_dfu_quick_start"&gt;the guide&lt;/a&gt; tells you. You must do this manually.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What you also can do to check whether your application is running is to have some logging (which the example from the guide has). Check out whether anything is logged using &amp;quot;RTT Viewer&amp;quot; from J-Link to see that your application is actually running before you start the DFU update.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/174619?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 15:20:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aac3253c-bf30-4d63-9e7c-531cd6fd16f8</guid><dc:creator>DeveloperZ</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/44199/dfu-example/174561"]nrfutil --verbose dfu serial -pkg dfu_test.zip -p /dev/tty.usbmodem0006829949971&amp;nbsp;-b 115200 -fc --mesh[/quote]
&lt;p&gt;This command worked. It opened the serial port and it took around 10 minutes trying to do dfu and finally it failed. The response is as follows:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Upgrading target on /dev/tty.usbmodem0006829949971 with DFU package /Users/developerbubblynet/Desktop/MeshSDK/dfu_MeshSDK310/dfu_test.zip. Flow control is enabled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Flushing com-port...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Opened com-port&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 2468&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sending DFU start packet, afterwards we wait for the flash on target to be initialized before continuing.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PC -&amp;gt; target: 0502aabbccdd&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PC -&amp;gt; target: 0502aabbccdd&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PC -&amp;gt; target: 0502aabbccdd&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PC -&amp;gt; target: 0502aabbccdd&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PC -&amp;gt; target: 0502aabbccdd&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;p&gt;&lt;span&gt;Failed to upgrade target. Error is: Failed to establish connection&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Possible causes:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- bootloader, SoftDevice or application on target does not match the requirements in the DFU package.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- baud rate or flow control is not the same as in the target bootloader.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Closing serial port...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The line PC -&amp;gt; target: 0502aabbccdd prints every 2/3 minutes and&amp;nbsp;finally after 10 minutes or more, it failed.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/174561?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 13:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e486a53e-07b7-415e-a288-668146137817</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you please try to add the following when you call the nrfutil scripts:&lt;/p&gt;
&lt;p&gt;Instead of e.g.&amp;nbsp;&lt;span&gt;nrfutil --verbose dfu serial -pkg dfu_test.zip -p usbmodem0006829949971 -b 115200 -fc --mesh&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;can you try to use the full path to the COM port:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfutil --verbose dfu serial -pkg dfu_test.zip -p /dev/tty.usbmodem0006829949971&amp;nbsp;-b 115200 -fc --mesh&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It worked for someone else having some problems with Mac and nrfutil.&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: DFU example</title><link>https://devzone.nordicsemi.com/thread/174546?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 12:54:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e53fab6b-be20-4a5b-9b7f-4370575a3094</guid><dc:creator>DeveloperZ</dc:creator><description>[quote userid="73423" url="~/f/nordic-q-a/44199/dfu-example/174524"]Are you sure that your COM Port is not occupied when you try to do the DFU?[/quote]
&lt;p&gt;I see no other functionality/application being run on the board which uses serial port other than DFU.&lt;br /&gt;So, yes. I don&amp;#39;t think there is anything that is not allowing the serial port to open!!&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example</title><link>https://devzone.nordicsemi.com/thread/174524?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 11:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9bf2888-5414-4a53-aa9a-f3e29beb7da6</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Are you sure that your COM Port is not occupied when you try to do the DFU?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>