<?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>How to add DFU to ANCS example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18657/how-to-add-dfu-to-ancs-example</link><description>Hi, I want to add DFU to ANCS example. 
 I use SAMSUNG GALAXY Note5, nRFToolbox, SDK 11, nRF52832, softdevice 2.0.1.
Bootloader project I use is : nRF5_SDK_11.0.0_89a8197\examples\dfu\bootloader\pca10040\dual_bank_ble_s132\arm5_no_packs,
And ANCS projcet</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Dec 2016 10:56:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18657/how-to-add-dfu-to-ancs-example" /><item><title>RE: How to add DFU to ANCS example</title><link>https://devzone.nordicsemi.com/thread/72058?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2016 10:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85b1ab60-32c3-44bb-b2b3-ac861a423bce</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi, so you are telling you are testing with buttonless code ? I assume you have no trouble doing DFU to update the image. Only having trouble with switching from application to bootloader ? Please list exactly the step you used for testing, start with step 1 flashing the softdevice.&lt;/p&gt;
&lt;p&gt;Have you tried to test with the ble_app_hrs_with_dfu ? The buttonless example in our SDK ?&lt;/p&gt;
&lt;p&gt;You said &amp;quot;An error is occurred sd_ble_gap_adv_stop() &amp;quot; what error ?&lt;/p&gt;
&lt;p&gt;then the device stuck at dfu_ble_svc_peer_data_set(), how do you know that ? If you simply step through the code, it won&amp;#39;t work because it&amp;#39;s an svc call , and the code is in the bootloader code, Keil won&amp;#39;t be able to follow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add DFU to ANCS example</title><link>https://devzone.nordicsemi.com/thread/72059?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2016 04:33:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37aac0eb-7621-430a-acbf-711da3a74daf</guid><dc:creator>kibo</dc:creator><description>&lt;p&gt;Here is command I use
&amp;#39;nrfutil.exe dfu genpkg exam.zip --application app.hex&amp;#39;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how to use nRFLogger.
I think, When I try DFU with a device which has ANCS service, then the device is stopped.&lt;/p&gt;
&lt;p&gt;In this example,
&amp;#39;nRF5_SDK_11.0.0_89a8197\examples\ble_peripheral\ble_app_ancs_c\pca10040\s132\arm5_no_packs&amp;#39;
I use app_error.c file and checked the error location.
An error is occurred sd_ble_gap_adv_stop() function in main.c&lt;/p&gt;
&lt;p&gt;I commented out advertising_stop() in reset_prepare, then the device stuck at dfu_ble_svc_peer_data_set again........&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add DFU to ANCS example</title><link>https://devzone.nordicsemi.com/thread/72060?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2016 13:12:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b246f770-879b-47e8-a290-069430d83be0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Do you have the same problem when you test with other examples ?&lt;/p&gt;
&lt;p&gt;Can you provide the log file after you do DFU will Toolbox? You can get the log by using the nRFLogger app from App store.&lt;/p&gt;
&lt;p&gt;Please provide the command you use to generate .zip file and list the steps you do to test DFU, start first with flashing the softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>