<?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>About BLE DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9818/about-ble-dfu</link><description>Hi,
I want to use BLE to run DFU. My sdk is 8.1.1 and base project is ble_app_uart. When I use nrfgo Studio to program softdevice, bootloader and app, It can&amp;#39;t enter app. But if I use nrfgo Studio to program softdevice and bootloader only, and upload</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Oct 2015 03:46:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9818/about-ble-dfu" /><item><title>RE: About BLE DFU</title><link>https://devzone.nordicsemi.com/thread/36387?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2015 03:46:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3126ed24-24a9-490f-9114-d8df0c288041</guid><dc:creator>mansfield</dc:creator><description>&lt;p&gt;Thank you! I learned the thread and found that there are 2 method:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Merge the 3 .hex files and then program. Should I use nRFjprog and mergehex to do these jobs? I installed nrf5x-tools, but didn&amp;#39;t found these two tools.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I also can program these 3 files seperately. And the order is sd--&amp;gt;bootloader--&amp;gt;app. I tried this, but it doesn&amp;#39;t work. Is app_valid_setting_apply.hex need? And nrfgoStudio can do these work?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About BLE DFU</title><link>https://devzone.nordicsemi.com/thread/36386?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 13:00:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6f73140-b286-47c0-b398-d11cde210aca</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for your questions&lt;/p&gt;
&lt;p&gt;To address your former question, please take a look at my answer on &lt;a href="https://devzone.nordicsemi.com/question/30622/what-is-role-of-bootloader/?answer=30678#post-id-30678"&gt;this thread&lt;/a&gt;, and the update from 16.4.2015&lt;/p&gt;
&lt;p&gt;For your latter question, where are you choosing 51822 and 51422. These two chips have identical functionality when using BLE, see &lt;a href="https://devzone.nordicsemi.com/question/30569/moving-from-nrf51822-to-nrf51422/?answer=30636#post-id-30636"&gt;this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 21.10.2015&lt;/strong&gt;
After you install nRF Tools, mergehex.exe and nrfjprog.exe programs should be available under \Program Files (x86)\Nordic Semiconductor\nrf5x\bin. Merge the 3 hex files together, the softdevice, the bootloader and the application as described on this thread. To make the application valid, you must also merge the app_valid_settings_apply.hex. When you have merged the 4 hex files, you can upload the merged hex file to the device and it should start the application.&lt;/p&gt;
&lt;p&gt;Another way is to flash the softdevice hex file and then the bootloader hex file, and then the device should start in bootloader mode. Then you can upload application via &lt;a href="https://www.nordicsemi.com/eng/Products/nRFready-Demo-Apps/nRF-Toolbox-App"&gt;Android nRFToolbox, IOS nRFToolbox, Windows Phone nRF Toolbox&lt;/a&gt; or &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/nRF-MCP-x64/46143"&gt;Master Control Panel (MCP) on windows PC&lt;/a&gt;. To upload application via phone/tabled or MCP, you must create an image file for that purpose as described &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/bledfu_example_image.html?cp=4_1_0_4_3_1_2"&gt;here&lt;/a&gt;. for further reading, read the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/examples_ble_dfu.html?cp=4_1_0_4_3"&gt;bootloader documentation&lt;/a&gt; in the nRF51 SDK. &lt;a href="https://devzone.nordicsemi.com/tutorials/9/setting-up-device-firmware-updatedfu-on-the-nrf51-/"&gt;This thread also contains a Bootloader tutorial&lt;/a&gt;, and the futher reading contains very good links to different bootloader documentation. &lt;a href="https://devzone.nordicsemi.com/blogs/683/a-quick-presentation-on-how-nrf51-dfu-works/"&gt;This video&lt;/a&gt; is good for visualizing how the bootloader actually works and what happens in the background.&lt;/p&gt;
&lt;p&gt;It is also possible to upload a new bootloader, a new softdevice, or a new bootloaer+softdevice via the nRFToolbox for Android or IOS or via MCP. You can create image files for such uploads as described &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/bledfu_example_image.html?cp=4_1_0_4_3_1_2"&gt;here&lt;/a&gt;. To be able to upload a different softdevice you must disable softdevice protection before you originally flash the softdevice. This is done in e.g. nRFgo Studio with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Press &amp;quot;Erase All&amp;quot; button to erase
all flash contents from the nRF51&lt;/li&gt;
&lt;li&gt;Select the &amp;quot;Program Softdevice&amp;quot; tab&lt;/li&gt;
&lt;li&gt;Browse to the desired softdevice hex file&lt;/li&gt;
&lt;li&gt;Deselect &amp;quot;Enable Softdevice protection&amp;quot;&lt;/li&gt;
&lt;li&gt;Program the softdevice&lt;/li&gt;
&lt;li&gt;program a bootloader: select the &amp;quot;Program bootloader&amp;quot; tab, browse to the bootloader hex file, press &amp;quot;Program&amp;quot;. You must open a bootloader project in e.g. nRF51 SDK 9.0.0 and compile it in order to make the bootloader hex file. Then you can browse to the bootloader hex file in e.g. \nRF51_SDK_9.0.0_2e23562\examples\dfu\bootloader\pca10028\dual_bank_ble_s110\arm5_no_packs_build if you are building a bootloader for S110 softdevice 8.x.x&lt;/li&gt;
&lt;li&gt;create a image file that contains an application in order to upload application, softdevice+bootloader image file (zip file) to upload softdevice+bootloader, etc, as described &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/bledfu_example_image.html?cp=4_1_0_4_3_1_2"&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;upload the image  file to the device via &lt;a href="https://www.nordicsemi.com/eng/Products/nRFready-Demo-Apps/nRF-Toolbox-App"&gt;nRF Toolbox for IOS, Android or Windows phone&lt;/a&gt;, or the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/nRF-MCP-x64/46143"&gt;MCP for PC&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Capture-_2D00_-nRFgo-Studio-program-softdevice-and-bootloader.JPG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>