<?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>bootloader activate and reset - won&amp;#39;t reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10894/bootloader-activate-and-reset---won-t-reset</link><description>Hi, I&amp;#39;m using trying to use the DFU via BLE, dual bank example from SDK 8.1.1 (with SD 8.0.0) and got it all working up to the point where I call &amp;quot;activate image and reset&amp;quot;. 
 At that point, it activates the image, which calls dfu_image_activate() .</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Dec 2015 14:21:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10894/bootloader-activate-and-reset---won-t-reset" /><item><title>RE: bootloader activate and reset - won't reset</title><link>https://devzone.nordicsemi.com/thread/40743?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2015 14:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb7cf6a4-fa33-44a8-8b7e-a74028a4cfd8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Bart,&lt;/p&gt;
&lt;p&gt;Thanks for pointing that out. I don&amp;#39;t think we need to keep that code. You can comment that out (the call for sd_ble_gatts_sys_attr_get) . I have reported this internally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader activate and reset - won't reset</title><link>https://devzone.nordicsemi.com/thread/40744?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2015 08:12:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e256ea6-011f-4c68-bcd8-f8dfc3d62828</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;Ah, sorry, at &lt;em&gt;dfu_transport_ble.c:793&lt;/em&gt;. The handling of ble gap disconnect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader activate and reset - won't reset</title><link>https://devzone.nordicsemi.com/thread/40742?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2015 17:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf5f4b0c-2271-477f-997d-3f5305713c72</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Bart,
&lt;code&gt;sd_ble_gatts_sys_attr_get&lt;/code&gt; in where ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader activate and reset - won't reset</title><link>https://devzone.nordicsemi.com/thread/40741?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 15:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4d03e8e-fb7b-4e85-b9f5-9f327acb234f</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;Aha, reverting that change did make it work indeed :) So it always just got stuck in that on disconnect event handling. Is there any reason to keep the &lt;code&gt;sd_ble_gatts_sys_attr_get&lt;/code&gt; call in there?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader activate and reset - won't reset</title><link>https://devzone.nordicsemi.com/thread/40740?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 12:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a945ea55-db36-4344-9985-4ca3725f07ee</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Bart,&lt;/p&gt;
&lt;p&gt;You should not edit the dfu_transport_ble.c to trigger system reset when err_code == NRF_SUCCESS.
What we do inside dfu_image_activate() is to call m_functions.activate() which is equal to dfu_activate_app(). In this function we will actually do the flash swapping and updating the bootloader information.&lt;/p&gt;
&lt;p&gt;What the bootloader does after the dfu_image_activate() call is to wait for the PSTORAGE_STORE_OP_CODE event from the stack in pstorage_callback_handler() in bootloader.c  telling the bootloader setting is saved (BOOTLOADER_COMPLETE) and return to main to switch to application (bootloader_app_start() ).&lt;/p&gt;
&lt;p&gt;If you test with our DFU example without any modification, would it work ? If not, what was the behaviour ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>