<?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 failed in 2nd attempt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9181/dfu-failed-in-2nd-attempt</link><description>i have successfully uploaded my custom made file to my nrf51422 sdk v8.0 and softdevice s110 using DFU/bootloader. but when i try to upload my file 2nd time i got an error which says.
Error on discovering service Message:required DFU service not available</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Sep 2015 15:19:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9181/dfu-failed-in-2nd-attempt" /><item><title>RE: DFU failed in 2nd attempt</title><link>https://devzone.nordicsemi.com/thread/33864?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2015 15:19:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80467bb5-5b41-41c0-92f8-9bf87af3e829</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Nomi: Could you capture a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;sniffer trace&lt;/a&gt; ?
You can try to rollback to the version that it still worked for you and check what would go wrong.
FYI we have a static passkey example &lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-app-uart-static-passkey"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU failed in 2nd attempt</title><link>https://devzone.nordicsemi.com/thread/33863?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2015 06:17:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfd4ec70-0c6c-4206-b49e-083a7682f586</guid><dc:creator>Nomi</dc:creator><description>&lt;p&gt;Now DFU is working fine but my uart does not accept my static passkey it just disconnects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU failed in 2nd attempt</title><link>https://devzone.nordicsemi.com/thread/33862?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2015 04:44:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d412354-da83-4849-93f9-0214ea883586</guid><dc:creator>Nomi</dc:creator><description>&lt;p&gt;thanks and sorry for my mistake i will never do it again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU failed in 2nd attempt</title><link>https://devzone.nordicsemi.com/thread/33861?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 14:13:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53ca375f-3c61-4467-b2ca-684cc3474f4d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Nomi: next time if you want to update a file, please edit your question and add the file there. Don&amp;#39;t post your comment to my answer as an answer. You should post it as a comment.&lt;/p&gt;
&lt;p&gt;I had a look at your code. You has copied and added the DFU service into your account.&lt;/p&gt;
&lt;p&gt;But when copying you also copied the macro operator : &lt;code&gt;&amp;quot;#ifdef BLE_DFU_APP_SUPPORT&amp;quot;&lt;/code&gt;. If you don&amp;#39;t define &lt;code&gt;&amp;quot;BLE_DFU_APP_SUPPORT&amp;quot;&lt;/code&gt; or don&amp;#39;t add it into the &amp;quot;Define&amp;quot; text box in Project setting-&amp;gt; C/C++ tab. Then the compiler will ignore that code. And it will result that you don&amp;#39;t have DFU service in your application.&lt;/p&gt;
&lt;p&gt;Please have a look at the project setting in the \examples\ble_peripheral\ble_app_hrs\pca10028\s110_with_dfu &amp;#39;s project setting.&lt;/p&gt;
&lt;p&gt;I suggest you to use Master Control Panel tool either on PC or on Android or Lightblue app on iOS to check what in your ATT table.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU failed in 2nd attempt</title><link>https://devzone.nordicsemi.com/thread/33860?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 10:52:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fc3c591-7cac-423c-81bb-d8192cd710dd</guid><dc:creator>Nomi</dc:creator><description>&lt;p&gt;i used the following steps.
nrf51422 sdk v8.0 and softdevice s110 on pca10028 the steps i used to do dfu are as 1)programed soft device s110_nrf51_8.0.0 using nrfgo studio 2)programed dfu_dual_bank_ble_s110_pca10028 an example from keil pack. 3)compiled my custom made application which is attached here DFU in password.zip 4)created zip file using nrfutil.exe using hex file generated by uisng this command nrf.exe dfu genpkg app.zip --application nrf51822_xxac.hex --application-version 0xffff --dev-revision 0xffff --dev-type 0xffff --sd-req 0x0064 5)uploaded zip file to my ios app nrftoolbox 6)opened DFU from nrftoolbox and uploded my application whick worked perfectly the problem is when i try to upload my applicatons 2nd version it does not connect to dfu and there comes an error Error on discovering service Message:required DFU service not available on peripheral
reference link &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk51.v9.0.0%2Fbledfu_application.html&amp;amp;cp=4_1_0_4_3_2"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DFU-in-password.zip"&gt;DFU in password.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU failed in 2nd attempt</title><link>https://devzone.nordicsemi.com/thread/33859?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 10:37:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0a95ae3-9b1c-4b6e-b984-45ac7ca7e44d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;How did you test the DFU the second time ? How did you enter bootloader mode ?&lt;/p&gt;
&lt;p&gt;Did you add the DFU service as &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/bledfu_application.html?cp=4_1_0_4_3_2"&gt;described here&lt;/a&gt; in to your application ?
If you haven&amp;#39;t added the service and the mechanism to jump to bootloader then it&amp;#39;s normal that the DFU master complained that &amp;quot;required DFU service not available on peripheral&amp;quot;&lt;/p&gt;
&lt;p&gt;There are 2 ways to enter bootloader mode, via a button press or via buttonless solution as described in the documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU failed in 2nd attempt</title><link>https://devzone.nordicsemi.com/thread/33858?ContentTypeID=1</link><pubDate>Sat, 12 Sep 2015 05:53:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8ac3e5f-08f5-414a-a3b5-ed5faaab3895</guid><dc:creator>Nomi</dc:creator><description>&lt;p&gt;i have changed IS_SRVC_CHANGED_CHARACT_PRESENT to 1 but the problem remains the same. and i dont have device to do sniffer trace.i think my application is over writing my dfu bootloader. but i dont know how to solve it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU failed in 2nd attempt</title><link>https://devzone.nordicsemi.com/thread/33857?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2015 13:34:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb89790e-9ffd-4f44-bcc1-8a009696b2b9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nomi,&lt;/p&gt;
&lt;p&gt;Please make sure you have set IS_SRVC_CHANGED_CHARACT_PRESENT = 1 in your application. I suspect that the attributable was cached.
You should try to turn off and on Bluetooth after you change IS_SRVC_CHANGED_CHARACT_PRESENT.&lt;/p&gt;
&lt;p&gt;If the issue remains, please provide &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;a sniffer trace&lt;/a&gt; or any log you can find.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU failed in 2nd attempt</title><link>https://devzone.nordicsemi.com/thread/33856?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2015 10:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd09227d-c2a3-4fa7-ac42-fd069968bcad</guid><dc:creator>Nomi</dc:creator><description>&lt;p&gt;testing it on my ios app nrf toolbox&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>