<?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>Problem with DFU mesh generate hex version of device page</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35468/problem-with-dfu-mesh-generate-hex-version-of-device-page</link><description>Hi, 
 I&amp;#39;m following DFU quick start guide and I&amp;#39;m using mesh SDK v2.0.1, I have a problem in step 4 wheere I need to generate a hex version of device page, I did this : 
 dfu$ py device_page_generator.py -d nrf52832_xxAA -sd &amp;quot;s132_6.0.0&amp;quot; and this is the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Jun 2018 13:18:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35468/problem-with-dfu-mesh-generate-hex-version-of-device-page" /><item><title>RE: Problem with DFU mesh generate hex version of device page</title><link>https://devzone.nordicsemi.com/thread/136923?ContentTypeID=1</link><pubDate>Wed, 20 Jun 2018 13:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2f81022-bf59-46d2-adeb-8c8efe9e65b3</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I changed the device&amp;#39;s USB cable and COM&amp;nbsp;&lt;span&gt;port and it works,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your suggestions,&amp;nbsp;it&amp;#39;s very helpful.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Arij&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with DFU mesh generate hex version of device page</title><link>https://devzone.nordicsemi.com/thread/136658?ContentTypeID=1</link><pubDate>Tue, 19 Jun 2018 07:41:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92dd4f13-ad88-4dc0-b62a-33d153c0cda3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;That is great news. Did you find out what the problems was?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It should work, but be aware that the Mesh DFU has a very low throughput. I haven&amp;#39;t tested with the v2.0.1, but I tested with v1.0.1 some time ago. I just modified the DFU example to turn on different LEDs, and uploaded that project via DFU. So it should work with larger projects as well (I see no reason why it shouldn&amp;#39;t work in SDK_v2.0.1).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But as I mentioned, the throughput in Mesh is quite low, so the DFU process took about an hour. The advantage with Mesh DFU is that the DFU process runs in the background of the application, so for an in field DFU, the customer may start the update, but they can use the device as normal until the update is done. This will trigger a reset, and the device will run the new application. It is not that easy to see in the DFU example, because it does nothing else. But if you add a bootloader to the blinky example, or the blinky functionality to the DFU example, or the light switch example, you can see that the device is operative during the DFU process.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mesh DFU is intended for in field updates. If you just want to tweak parameters or something, I suggest that you program the chip normally, and just run&amp;nbsp;a DFU test in the end before shipping out the firmware.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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: Problem with DFU mesh generate hex version of device page</title><link>https://devzone.nordicsemi.com/thread/136619?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 18:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71be25b3-9d72-4582-9d8e-6a0933b4a1f8</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It works now finally and my two DK start blinking, now I want to use light switch server example instead of blinky application, is that&amp;nbsp;possible? I believe DFU over mesh doesn&amp;#39;t support big application like light switch demo, is that correct?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with DFU mesh generate hex version of device page</title><link>https://devzone.nordicsemi.com/thread/136593?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 14:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:534b5a3d-95f5-4a1c-8fdf-b5bb195f71e3</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I ran the command and here what it&amp;nbsp;&lt;span&gt;it prints &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="typescript"&gt;C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\tools\dfu&amp;gt;python bootloader_verify.py 682501995 COM10
Device family:                  NRF52
Reading UICR..                  OK.
Reading Device page..           OK.
Resetting device..    &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;nbsp;put the serial number of my serial device (host) and its COM&amp;nbsp;port,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now I&amp;nbsp;tried with the&amp;nbsp;other device and I&amp;nbsp;put its serial number&amp;nbsp;and COM&amp;nbsp;port, and here what it shows &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="typescript"&gt;C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\tools\dfu&amp;gt;python bootloader_verify.py 682609257 COM15
Device family:                  NRF52
Reading UICR..                  OK.
Reading Device page..           OK.
Resetting device..              OK (In application)
Checking serial connection..    OK.

Bootloader verification OK.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\tools\dfu&amp;gt;nrfjprog --reset
Applying system reset.
Run.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I think here the bootloader worked with my other device that is supposed to be the target and not with host device, they are both connected to pc with USB cables. I&amp;#39;m still understanding the&amp;nbsp;process of DFU over mesh, Do I have to restart all over again the dfu start guide and see if it works with my other device?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with DFU mesh generate hex version of device page</title><link>https://devzone.nordicsemi.com/thread/136571?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 13:42:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65dde8e7-8438-4cfb-957b-fdccd243b473</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you try to run the script in the path:&lt;/p&gt;
&lt;p&gt;mesh_v2.0.1\tools\dfu\bootloader_verify.py like this:&lt;/p&gt;
&lt;p&gt;python bootloader_verify.py &amp;lt;serial number&amp;gt; &amp;lt;COM port&amp;gt;&lt;/p&gt;
&lt;p&gt;And see what it prints?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with DFU mesh generate hex version of device page</title><link>https://devzone.nordicsemi.com/thread/136455?ContentTypeID=1</link><pubDate>Sun, 17 Jun 2018 19:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:983ceeff-49be-464a-b0a9-a9645e7dbd6c</guid><dc:creator>Arij</dc:creator><description>&lt;p&gt;The&amp;nbsp;&lt;span&gt;problem above is solved by following&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34782/sdk-15-and-mesh-2-0-generate-a-dfu-file-with-nrfutil---valueerror/136377#136377"&gt;this case&lt;/a&gt;&amp;nbsp;but now I&amp;#39;m facing another issue&amp;nbsp;in step 10, It shows :&amp;nbsp;&lt;strong&gt;Failed to upgrade target. Error is: Failed to establish connection. &lt;/strong&gt;I have two nRF52832 Devkits (host and target), from step 5 to 9 I flashed all firmwares on both devices, in step 10 i just defined COM&amp;nbsp;port for one of the devices to specify it as host device, I don&amp;#39;t know if that&amp;#39;s enough to say which device is the host or which is the target or there is another step that I&amp;#39;m missing, help&amp;nbsp;please&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Here is my cmd script : I used mesh SDK v2.0.0&amp;nbsp;provided in the case mentioned above&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="typescript"&gt;
C:\WINDOWS\system32&amp;gt;cd C:\Users\Mariem\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;cd in
Le chemin d’acc&amp;#232;s sp&amp;#233;cifi&amp;#233; est introuvable.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;cd bin

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\bin&amp;gt;cd blinky

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\bin\blinky&amp;gt;nrfutil keys --gen-key private_key.txt
Generated key at: private_key.txt

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\bin\blinky&amp;gt;nrfutil keys --show-vk hex private_key.txt
Verification key Qx: 4470d73a4edb6c05b80f24b16e5c2882cbd27fc9c1c73e8dade98bb74fdd68c2
Verification key Qy: 2db570702e78fdb569ef3e941092a6672dc86ed541f595054b8877ebe89ed66b

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\bin\blinky&amp;gt;nrfutil dfu genpkg --application blinky_nrf52832_xxAA_s132_5.0.0.hex --company-id 0x00000059 --application-id 1 --application-version 3 --key-file private_key.txt --sd-req 0x009D --mesh dfu_test.zip
Key file was given, setting DFU version to 0.8
Zip created at dfu_test.zip

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\bin\blinky&amp;gt;cd ..

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\bin&amp;gt;cd ..

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;cd tools/dfu

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\tools\dfu&amp;gt;python device_page_generator.py -d nrf52832_xxAA -sd &amp;quot;s132_5.0.0&amp;quot;
Wrote device page for nrf52832_xxAA with the s132_5.0.0 SoftDevice to bin/device_page_nrf52832_xxAA_s132_5.0.0.hex.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\tools\dfu&amp;gt;cd ..

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\tools&amp;gt;cd ..

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --eraseall
Erasing user available code and UICR flash areas.
Applying system reset.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --eraseall
Erasing user available code and UICR flash areas.
Applying system reset.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --program bin/bootloader/gccarmemb/mesh_bootloader_serial_gccarmemb_nrf52832_xxAA.hex
Parsing hex file.
Reading flash area to program to guarantee it is erased.
Checking that the area to write is not protected.
Programing device.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --program bin/bootloader/gccarmemb/mesh_bootloader_serial_gccarmemb_nrf52832_xxAA.hex
Parsing hex file.
Reading flash area to program to guarantee it is erased.
Checking that the area to write is not protected.
Programing device.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;mesh-sdk$ nrfjprog --eraseall
&amp;#39;mesh-sdk$&amp;#39; n’est pas reconnu en tant que commande interne
ou externe, un programme ex&amp;#233;cutable ou un fichier de commandes.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --eraseall
Erasing user available code and UICR flash areas.
Applying system reset.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --eraseall
Erasing user available code and UICR flash areas.
Applying system reset.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --program bin/softdevice/s132_nrf52_5.0.0_softdevice.hex --chiperase
Parsing hex file.
Erasing user available code and UICR flash areas.
Applying system reset.
Checking that the area to write is not protected.
Programing device.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --program bin/softdevice/s132_nrf52_5.0.0_softdevice.hex --chiperase
Parsing hex file.
Erasing user available code and UICR flash areas.
Applying system reset.
Checking that the area to write is not protected.
Programing device.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --program bin/bootloader/gccarmemb/mesh_bootloader_serial_gccarmemb_nrf52832_xxAA.hex
Parsing hex file.
Reading flash area to program to guarantee it is erased.
Checking that the area to write is not protected.
Programing device.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --program bin/bootloader/gccarmemb/mesh_bootloader_serial_gccarmemb_nrf52832_xxAA.hex
Parsing hex file.
Reading flash area to program to guarantee it is erased.
Checking that the area to write is not protected.
Programing device.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --program examples\dfu\build\dfu_nrf52832_xxAA_s132_5.0.0_Debug\dfu_nrf52832_xxAA_s132_5.0.0.hex
Parsing hex file.
Reading flash area to program to guarantee it is erased.
Checking that the area to write is not protected.
Programing device.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --program examples\dfu\build\dfu_nrf52832_xxAA_s132_5.0.0_Debug\dfu_nrf52832_xxAA_s132_5.0.0.hex
Parsing hex file.
Reading flash area to program to guarantee it is erased.
Checking that the area to write is not protected.
Programing device.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --program tools/dfu/bin/device_page_nrf52832_xxAA_s132_5.0.0.hex
Parsing hex file.
Reading flash area to program to guarantee it is erased.
Checking that the area to write is not protected.
Programing device.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --program tools/dfu/bin/device_page_nrf52832_xxAA_s132_5.0.0.hex
Parsing hex file.
Reading flash area to program to guarantee it is erased.
Checking that the area to write is not protected.
Programing device.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --reset
Applying system reset.
Run.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfjprog --reset
Applying system reset.
Run.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfutil --verbose dfu serial -pkg dfu_test.zip -p COM10 -b 115200 -fc --mesh
Usage: nrfutil dfu serial [OPTIONS]

Error: Invalid value for &amp;quot;-pkg&amp;quot; / &amp;quot;--package&amp;quot;: Path &amp;quot;dfu_test.zip&amp;quot; does not exist.

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;nrfutil --verbose dfu serial -pkg bin\blinky\dfu_test.zip -p COM10 -b 115200 -fc --mesh
Upgrading target on COM10 with DFU package C:\Users\Mariem\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src\bin\blinky\dfu_test.zip. Flow control is enabled.
  [------------------------------------]    0%Flushing com-port...
Opened com-port
Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 1932
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

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...

C:\Users\Arij\Desktop\mesh\nrf5_SDK_for_Mesh_v2.0.0_src\nrf5_SDK_for_Mesh_v2.0.0_src&amp;gt;&lt;/pre&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>