<?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>Custom service with DFU, reinitialize</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24945/custom-service-with-dfu-reinitialize</link><description>I have a custom service that on a event needs to be re-initialized. The custom profile also has DFU. It seems that when I re-initialize services_init() the micro crashes on the 2nd invocation of 
 err_code = ble_dfu_init(&amp;amp;m_dfus, &amp;amp;dfus_init);
 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Sep 2017 06:57:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24945/custom-service-with-dfu-reinitialize" /><item><title>RE: Custom service with DFU, reinitialize</title><link>https://devzone.nordicsemi.com/thread/98244?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 06:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38cc131-eafb-404b-ba27-21cf080b627b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great that you figured it out! And shared the solution :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom service with DFU, reinitialize</title><link>https://devzone.nordicsemi.com/thread/98243?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 01:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a4f2662-46d3-43b3-865e-cf40d2a25076</guid><dc:creator>ypearson</dc:creator><description>&lt;p&gt;I&amp;#39;m using Freertos, so it appears a hidden sw timer is initially created and fails being created again on the re-initialization. Look into app_timer_freertos.c for details&lt;/p&gt;
&lt;p&gt;I had to tweak the following functions :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;app_timer_create

app_timer_stop
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom service with DFU, reinitialize</title><link>https://devzone.nordicsemi.com/thread/98242?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 15:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcda546a-4f4d-4de3-9c9a-fc254f748b78</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It crashes? Or resets because an error code is returned?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>