<?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>MESH DFU nrfutil configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47996/mesh-dfu-nrfutil-configuration</link><description>Based on the mesh sdk3.1 operation dfu, according to the operation instructions, dfu_mesh.zip cannot be generated. 
 
 nrfutil dfu genpkg --hlep Found no parameters for mesh dfu 
 
 How to configure nrfutil to be used for mesh dfu? Reference https://github</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jul 2019 01:28:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47996/mesh-dfu-nrfutil-configuration" /><item><title>RE: MESH DFU nrfutil configuration</title><link>https://devzone.nordicsemi.com/thread/196681?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 01:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a6a8bfb-db15-4f5d-ab7f-a04b2f54443b</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you very much for your reply, the problem has been solved: it is the problem of the serial port pin definition of the example, redefining the serial port IO, as shown below, the problem can be solved.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_AE5FE14FFE5647725F00_20190705092700.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MESH DFU nrfutil configuration</title><link>https://devzone.nordicsemi.com/thread/196614?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 14:19:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e50b29e-ad1e-42ef-a32d-6cf08f98992b</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, seems like the serial port connection is not working. Are you sure that COM19 is correct? You can check that in the device manager. Which hardware are you testing on? nRF52840 DK? Can you try to power cycle the DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MESH DFU nrfutil configuration</title><link>https://devzone.nordicsemi.com/thread/195244?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 02:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0eefb17-bd4a-4441-a2ec-d8bf8bf653d0</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi Stian&lt;/p&gt;
&lt;p&gt;The previous problem has been solved, and now there are new problems, please help solve.&lt;br /&gt;Use nRF52832QFAA based on softdevice:SDK15.2.0 and mesh:mesh3.1.0&lt;br /&gt;Enter the following command with nrfutil:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil dfu genpkg --application bin/blinky/blinky_nrf52832_xxAA_s132_6.1.0.hex --company-id 0x00000059 --application-id 1 --application-version 5 --key-file private_key.txt --sd-req 0x00AF --mesh dfu_test_blinky-52832.zip


python device_page_generator.py -d nrf52832_xxAA -sd &amp;quot;s132_6.1.0&amp;quot;


nrfjprog --eraseall 


nrfjprog --program bin/softdevice/s132_nrf52_6.1.0_softdevice.hex --chiperase



nrfjprog --program bin/bootloader/gccarmemb/mesh_bootloader_serial_gccarmemb_nrf52832_xxAA.hex  --verify



nrfjprog --program examples/dfu/build/dfu_nrf52832_xxAA_s132_6.1.0_Debug/dfu_nrf52832_xxAA_s132_6.1.0.hex --verify


nrfjprog --program tools/dfu/bin/device_page_nrf52832_xxAA_s132_6.1.0.hex


nrfjprog --reset

nrfutil --verbose dfu serial -pkg dfu_test_blinky-52832.zip -p COM19 -b 115200 -fc --mesh

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Dfu failed, as follows：&lt;pre class="ui-code" data-mode="text"&gt;Upgrading target on COM19 with DFU package E:\Nordic\nrf5_SDK_for_Mesh_v3.1.0_src\dfu_test.zip. Flow control is enabled.

Flushing com-port...
Opened com-port
Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 2468

Sending DFU start packet, afterwards we wait for the flash on target to be initialized before continuing.

PC -&amp;gt; target: 0502aabbccdd
PC -&amp;gt; target: 0502aabbccdd
PC -&amp;gt; target: 0502aabbccdd
PC -&amp;gt; target: 0502aabbccdd
PC -&amp;gt; target: 0502aabbccdd


Failed to upgrade target. Error is: Failed to establish connection
Failed to upgrade target. Error is: Failed to establish connection
Possible causes:
- bootloader, SoftDevice or application on target does not match the requirements in the DFU package.
- baud rate or flow control is not the same as in the target bootloader.
- target is not in DFU mode. If using the SDK examples, press Button 4 and RESET and release both to enter DFU mode.
Closing serial port...

Parsing hex file.
Reading flash area to program to guarantee it is erased.
ERROR: The area to write is not erased.&lt;/pre&gt;View logs via rtt:&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; &amp;lt;t: 26729&amp;gt;, main.c, 253, DFU example started!&amp;lt;t: 1&amp;gt;, main.c, 206, ----- Bluetooth Mesh DFU Example -----&amp;lt;t: 8770&amp;gt;, serial_handler_prov.c, 267, Generating encryption keypair...&amp;lt;t: 13577&amp;gt;, main.c, 224, Initialization complete!
00&amp;gt; &amp;lt;t: 18272&amp;gt;, main.c, 245, Enabling serial interface...
00&amp;gt; &amp;lt;t: 18275&amp;gt;, mesh_app_utils.c, 65, Device UUID (raw): 91A458BF77D0ED47A630876BA02C04F4
00&amp;gt; &amp;lt;t: 18278&amp;gt;, mesh_app_utils.c, 70, DeviceUUID : BF58A491-D077-47ED-A630-876BA02C04F4
00&amp;gt; &amp;lt;t: 18286&amp;gt;, nrf_mesh_dfu.c, 528, RADIO TX! SLOT 0, count 255, interval: periodic, handle: FFFE
00&amp;gt; &amp;lt;t: 18291&amp;gt;, nrf_mesh_dfu.c, 561, SERIAL TX!
00&amp;gt; &amp;lt;t: 18297&amp;gt;, main.c, 253, DFU example started!&lt;/pre&gt;Dfu is running normally. Why is failed to establish connection? How to solve it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MESH DFU nrfutil configuration</title><link>https://devzone.nordicsemi.com/thread/194205?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 02:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae405f46-558b-4317-85b2-80d3ce585f46</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi Stian&lt;/p&gt;
&lt;p&gt;I am not sure if I can find the right way. Run &amp;quot;nrfutil version&amp;quot; as shown below:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1561344465892v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;run&amp;ldquo;&lt;span&gt;git checkout mesh_dfu&lt;/span&gt;&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1561344983336v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;To be precise, I don&amp;#39;t know much about the methods in github. Can you provide a more detailed approach?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MESH DFU nrfutil configuration</title><link>https://devzone.nordicsemi.com/thread/192745?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 14:12:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3aed934-b55c-4ea7-ae9d-94d50b33cc5d</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Did you checkout the right branch from that github repo? After cloning the repo remember to do &amp;#39;git checkout mesh_dfu&amp;#39;. What does it say when you write &amp;#39;nrfutil version&amp;#39;. Also remember to run the nrfutil that is located in the git folder not any other previously installed on your system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>