<?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>6.1.0 bootloader and triggering DFU from app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3921/6-1-0-bootloader-and-triggering-dfu-from-app</link><description>Hey! I&amp;#39;ve been working on triggering DFU from within my application. It&amp;#39;s obvious that the bootloader in the new SDK has been written to support this but I had some problems getting it working. 
 The call to ble_stack_init (bool init_softdevice ) takes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Oct 2014 05:32:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3921/6-1-0-bootloader-and-triggering-dfu-from-app" /><item><title>RE: 6.1.0 bootloader and triggering DFU from app</title><link>https://devzone.nordicsemi.com/thread/14111?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2014 05:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24b2e185-4e64-404e-936e-a582ecc53a92</guid><dc:creator>Anne</dc:creator><description>&lt;p&gt;Unfortunately I&amp;#39;m no longer working on the project where this was an issue so I can&amp;#39;t test anything ;( I&amp;#39;d say you&amp;#39;re right, though, the code in the &lt;strong&gt;if&lt;/strong&gt; statement only executes if init_softdevice is &amp;#39;true&amp;#39;. In order for the device to start advertising I always has to call sd_mbr_command(&amp;amp;com) even when the SoftDevice was supposedly already initialised.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 6.1.0 bootloader and triggering DFU from app</title><link>https://devzone.nordicsemi.com/thread/14110?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2014 12:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62e749d5-82d5-4dbd-a738-c18ed8c9e624</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Let me know if I have misunderstood:&lt;/p&gt;
&lt;p&gt;The first case will always works because it doesn&amp;#39;t check if &lt;code&gt;init_softdevice&lt;/code&gt; is &lt;code&gt;true&lt;/code&gt;or &lt;code&gt;false&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;//if (init_softdevice)
//{
    err_code = sd_mbr_command(&amp;amp;com);
    APP_ERROR_CHECK(err_code);
//}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The second case will only work if &lt;code&gt;init_softdevice == true&lt;/code&gt;, which is what is &amp;quot;written&amp;quot; in the if-statement:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (init_softdevice)
{
    err_code = sd_mbr_command(&amp;amp;com);
    APP_ERROR_CHECK(err_code);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>