<?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 Mesh over BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50237/dfu-mesh-over-ble</link><description>Hi. 
 I have problem with dfu over ble with mesh sdk. I use example experimental_lpn as guide. When I add this dfu functionality in my project, my application is not responding. It seems that this issue appears in function nrf_mesh_dfu_cmd_send() in nrf_mesh_dfu_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jul 2019 10:40:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50237/dfu-mesh-over-ble" /><item><title>RE: DFU Mesh over BLE</title><link>https://devzone.nordicsemi.com/thread/201204?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 10:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e17c4e50-60d6-4d2d-8d9a-3e3f8f21f3f9</guid><dc:creator>Zhenya Zh</dc:creator><description>&lt;p&gt;All work well with your bootloader_debug. I think it was my mistake in bootloader project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ok, thank you for your answers!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Mesh over BLE</title><link>https://devzone.nordicsemi.com/thread/201197?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 10:15:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7622f3e5-89ac-4346-af87-58f40a96c68b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you tell which nrfjprog version you are using ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you send your .hex files ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I attached here the hex files I used. With nrfjprog I have no trouble programming the softdevice and bootloader , and it worked after reset.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-22876fcb0b574bbf821be690f0102676/secure_5F00_bootloader_5F00_ble_5F00_s140_5F00_pca10056_5F00_debug.hex"&gt;devzone.nordicsemi.com/.../secure_5F00_bootloader_5F00_ble_5F00_s140_5F00_pca10056_5F00_debug.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-22876fcb0b574bbf821be690f0102676/s140_5F00_nrf52_5F00_6.1.0_5F00_softdevice.hex"&gt;devzone.nordicsemi.com/.../s140_5F00_nrf52_5F00_6.1.0_5F00_softdevice.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Mesh over BLE</title><link>https://devzone.nordicsemi.com/thread/201163?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 08:43:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5ab0d11-ccc6-47ab-b5d0-c955db7add9b</guid><dc:creator>Zhenya Zh</dc:creator><description>&lt;p&gt;Yes, I use SDK v15.2 and Mesh SDK v3.1&lt;/p&gt;
&lt;p&gt;I cant download bootloader_debug using this script, bootloader is not starting. There are no logs and DfuTarg in adv. Why?&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --family NRF52 --program s140_nrf52_6.1.0_softdevice.hex --chiperase --verify
nrfjprog --family NRF52 --program secure_bootloader_ble_s140_pca10056_debug.hex --verify
nrfjprog --family NRF52 --reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But I can download bootloader_debug using ses and all work well. After this I download my application using nrfConnect on android. And debug in my application earned.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My new question is why&amp;nbsp;&lt;span&gt;bootloader_debug does not worked when it&amp;#39;s flashed using nrfjprog?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Mesh over BLE</title><link>https://devzone.nordicsemi.com/thread/200809?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 15:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:805df4d0-2496-462c-9671-c357fe1548cd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;P/S: Please make sure you use SDK v15.2 not SDK v15.3. Mesh SDK v3.1 is compatible with SDK v15.2&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Mesh over BLE</title><link>https://devzone.nordicsemi.com/thread/200792?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 14:11:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bbd0540-786f-49dd-b8a5-53372a614131</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Before testing with debugging, could you please test the bootloader and do DFU for testing ? Please follow my guide in the blog to do a DFU test with the nRF5 SDK first (no mesh) .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please open RTT and look for the log of the bootloader. Make sure your bootloader works fine and you can do normal DFU update.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After that, follow what we have in &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v3.1.0/md_examples_experimental_lpn_dfu_ble.html?cp=5_2_3_6_1_1"&gt;this guide.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Mesh over BLE</title><link>https://devzone.nordicsemi.com/thread/200721?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 10:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43668d45-8bc2-450f-862a-3e979e3cfe39</guid><dc:creator>Zhenya Zh</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;1) Can I combine softdevice + bootloader + bootloader_settings + application using this tool (mergehex)?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2) Can I flash device using nrfjprog without chip erase?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And debug does not work. My steps for debug:&lt;br /&gt;&lt;br /&gt;1.&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --family NRF52 --program s140_nrf52_6.1.0_softdevice.hex --chiperase --verify&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Result:&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;Parsing hex file.
Erasing user available code and UICR flash areas.
Applying system reset.
Checking that the area to write is not protected.
Programming device.
Verifying programming.
Verified OK.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil settings generate --family NRF52840 --application my_application.hex --application-version 0 --bootloader-version 0 --bl-settings-version 1 bootloader_setting.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Result:&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;Note: Generating a DFU settings page with backup page included.
This is only required for bootloaders from nRF5 SDK 15.1 and newer.
If you want to skip backup page generation, use --no-backup option.

Generated Bootloader DFU settings .hex file and stored it in: bootloader_setting.hex

Bootloader DFU Settings:
* File:                     bootloader_setting.hex
* Family:                   NRF52840
* Start Address:            0x000FF000
* CRC:                      0x6CC3289F
* Settings Version:         0x00000001 (1)
* App Version:              0x00000000 (0)
* Bootloader Version:       0x00000000 (0)
* Bank Layout:              0x00000000
* Current Bank:             0x00000000
* Application Size:         0x0003F700 (259840 bytes)
* Application CRC:          0xB6CB1594
* Bank0 Bank Code:          0x00000001
* Softdevice Size:          0x00000000 (0 bytes)
* Boot Validation CRC:      0x00000000
* SD Boot Validation Type:  0x00000000 (0)
* App Boot Validation Type: 0x00000000 (0)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mergehex --merge bootloader_setting.hex secure_bootloader_ble_s140_pca10056.hex --output merged_bootloader.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Result:&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;Parsing input hex files.
Merging files.
Storing merged file.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --family NRF52 --program merged_bootloader.hex --verify&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Result:&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;Parsing input hex files.
Merging files.
Storing merged file.
Parsing hex file.
Reading flash area to program to guarantee it is erased.
Checking that the area to write is not protected.
Programming device.
Verifying programming.
Verified OK.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --family NRF52 --reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Result:&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;Applying system reset.
Run.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;6. Than I go to ses, press &amp;quot;Debug&amp;quot; -&amp;gt; &amp;quot;Go&amp;quot;. Ses downloading &amp;quot;my_application.elf&amp;quot; and going to the debug mode.&lt;/p&gt;
&lt;p&gt;7. And&amp;nbsp;ses showing &amp;quot;Running...&amp;quot;, but &amp;quot;Restart&amp;quot; or breakpoints has no effect. And led is not blinking. Looks like application is not running.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Mesh over BLE</title><link>https://devzone.nordicsemi.com/thread/200585?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 15:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b28b5a9-c630-4db6-a79f-90a2178944b2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) You do DFU as a normal BLE DFU. What you described is correct. Note that you can also flash application via the programmer, but you would need to generate and flash bootloader setting. Have&amp;nbsp; a look at appendix 1 in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;this guide.&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2) Yes, you can debug it as normal application. If the bootloader forward the PC to the application as normal, you should be able to stop at the breakpoint when debugging.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Mesh over BLE</title><link>https://devzone.nordicsemi.com/thread/200581?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 14:57:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:049c19ca-188a-4e6d-854f-50bf0511cbac</guid><dc:creator>Zhenya Zh</dc:creator><description>&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Normal BLE DFU is what I need in my project. I want to update davices one by one.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Yes, I called function&amp;nbsp;&lt;span&gt;ble_dfu_support_service_init(). Function&amp;nbsp;nrf_mesh_dfu_cmd_send() was called by&amp;nbsp;nrf_mesh_dfu_init() in&amp;nbsp;nrf_mesh_init().&amp;nbsp;My mistake was that I did not add source file nrf_mesh_weak() instead of nrf_mesh_dfu() in ses project. When I did this my issue was solved. But i have some more questions:&lt;br /&gt;&lt;br /&gt;1) How can I flash device with application with bootloader? Now I firstly flash secure_bootloader and than via&amp;nbsp;android app nrfConnect flash my application over dfu.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) Can I debug application in ses, which was flashed over dfu?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Mesh over BLE</title><link>https://devzone.nordicsemi.com/thread/200517?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 12:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59fc27f9-7f3a-404e-8c36-5a00def75284</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Zhenya,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you performed a test with the experimental_lpn DFU over BLE ? Did it work ?&lt;/p&gt;
&lt;p&gt;Please be ware that the DFU over BLE is not related to the standard Mesh DFU. The reason is that LPN node doesn&amp;#39;t support Mesh DFU so we do a normal BLE DFU.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t think you should call&amp;nbsp;nrf_mesh_dfu_cmd_send().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should call&amp;nbsp;ble_dfu_support_service_init() instead. And also please be aware that you need to flash the nRF5 SDK&amp;#39;s bootloader, not the mesh bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please follow the documentation &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v3.1.0/md_examples_experimental_lpn_dfu_ble.html?cp=5_2_3_6_1_1"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>