<?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 service with the custom service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55257/how-to-add-dfu-service-with-the-custom-service</link><description>Hello All, 
 
 I am trying to add DFU service in the small example with the custom service. 
 But is not working, facing issues. 
 I am working on the nrf52810 board with SDK 14.2. 
 Please guide/provide procedure to how add DFU service with existing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Dec 2019 07:53:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55257/how-to-add-dfu-service-with-the-custom-service" /><item><title>RE: How to add DFU service with the custom service</title><link>https://devzone.nordicsemi.com/thread/226485?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2019 07:53:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5d295b6-c61f-44c8-8500-52577bb47d51</guid><dc:creator>Rohit</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;The issue is in &amp;quot;&lt;strong&gt;Queued Write Module&lt;/strong&gt;&amp;quot;&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;(service init function)&lt;/p&gt;
&lt;p&gt;I have commented the qwr module in service init section, and set&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_VS_UUID_COUNT = 2 in sdk_config.h file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;/**@brief Function for initializing services that will be used by the application.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; */&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;static void services_init(void)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; uint32_t err_code;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; //nrf_ble_qwr_init_t qwr_init = {0};&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; ble_dfu_buttonless_init_t dfus_init = {0};&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;// Initialize Queued Write Module.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;// qwr_init.error_handler = nrf_qwr_error_handler;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;// err_code = nrf_ble_qwr_init(&amp;amp;m_qwr, &amp;amp;qwr_init);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;// APP_ERROR_CHECK(err_code);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; dfus_init.evt_handler = ble_dfu_evt_handler;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; err_code = ble_dfu_buttonless_init(&amp;amp;dfus_init);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; APP_ERROR_CHECK(err_code);&lt;/strong&gt;&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;tps_init();&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;cus_init();&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;After this code is working properly and in app also i can access custom service.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Didn&amp;#39;t find what is the cause .&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;but Fortunately issue is solved&lt;/b&gt;&lt;strong&gt;&amp;nbsp;.&lt;/strong&gt;&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/55257/how-to-add-dfu-service-with-the-custom-service/225307"]Have you enabled debug logging?[/quote]
&lt;p&gt;&lt;strong&gt;is this related to nrf_log?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I have set these parameters&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1576828247218v1.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;and i have set -&amp;gt;&amp;nbsp;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thanks for you s&lt;/strong&gt;&lt;strong&gt;upport and valuable response.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rohit&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add DFU service with the custom service</title><link>https://devzone.nordicsemi.com/thread/225307?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2019 08:35:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df4d00fc-cf75-4b3c-9f20-fc518045e4e5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You may need to increase the RAM base address for your app when you increase the Softdevice UUID buffer. Have you enabled debug logging? It should tell if that&amp;#39;s the case.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add DFU service with the custom service</title><link>https://devzone.nordicsemi.com/thread/225294?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2019 07:37:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68175abc-5654-413f-bf33-4a9982b3abd4</guid><dc:creator>Rohit</dc:creator><description>&lt;p&gt;I have made&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_VS_UUID_COUNT = 2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But still it not working ,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you suggest any procedure to add dfu service in code with custom service..?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Rohit&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add DFU service with the custom service</title><link>https://devzone.nordicsemi.com/thread/224894?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 11:04:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abfa8563-a3bc-4929-b26f-3a72d5dc8a89</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I suggest that you enable debug logging over UART or RTT so you can see the debug messages if you haven&amp;#39;t done it already. Also, add &amp;#39;DEBUG&amp;#39; to the list of pre-processor definitions in order to get a verbose crashlog.&lt;/p&gt;
[quote user="RohitK"]Any changes required for adding custom service with dfu ?[/quote]
&lt;p&gt;Maybe increase&amp;nbsp; NRF_SDH_BLE_VS_UUID_COUNT in you sdk_config header. It needs to correspond with the number of 128-bits base UUIDs you have in your app. The DFU service use 1. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add DFU service with the custom service</title><link>https://devzone.nordicsemi.com/thread/224891?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 10:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48c46325-5720-4254-9157-af23676840bd</guid><dc:creator>Rohit</dc:creator><description>&lt;p&gt;i have tried with Buttonless dfu example but if i add the custom service then code is not working.&lt;/p&gt;
&lt;p&gt;without custom service code is working.&lt;/p&gt;
&lt;p&gt;Any changes required for adding custom service with dfu ?&lt;/p&gt;
&lt;p&gt;Please provide your inputs.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rohit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add DFU service with the custom service</title><link>https://devzone.nordicsemi.com/thread/223901?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 12:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:437b9097-74b1-41fb-89c2-30b699ffb15b</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user=""]But is not working, facing issues.[/quote]
&lt;p&gt;&amp;nbsp;I don&amp;#39;t see any references to &amp;#39;DFU&amp;#39; in the code you uploaded. You can use the Buttonless DFU template example as a reference for integrating it into your app. Also recommend taking a look at this guide if you haven&amp;#39;t done it already:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>