<?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 and custom service doesnt work together</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20769/dfu-and-custom-service-doesnt-work-together</link><description>I have included the DFU service and a custom service in my application. During initialisation DFU service is getting initialised and later down the line my custom service is getting initialised. 
During initialisation of my custom service I am calling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Mar 2017 12:59:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20769/dfu-and-custom-service-doesnt-work-together" /><item><title>RE: DFU and custom service doesnt work together</title><link>https://devzone.nordicsemi.com/thread/81099?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 12:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b4b1ee5-376e-449d-8274-6524d46bfa18</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;When you increase the number of base UUID, you need to increase the ram needed for the softdevice. The UUID database enlarged, softdevice needs more RAM for it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU and custom service doesnt work together</title><link>https://devzone.nordicsemi.com/thread/81098?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 10:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b85be24-8530-42d3-ae62-8237b8ea5bd7</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;Okay. I have never encountered such behaviour, but it must be due to DFU code because vs_uuid_count is also responsible for shifting addresses. So, in order to accommodate DFU and 2 custom UUIDs, this change was necessary. Thanks for the insight.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU and custom service doesnt work together</title><link>https://devzone.nordicsemi.com/thread/81101?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 09:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69fa0b5e-1d77-452d-a050-822fa29a8dcc</guid><dc:creator>Prasad</dc:creator><description>&lt;p&gt;When I changed vs_uuid_count=2 my application was failing. When I enabled logging and checked the logs, I found that softdevice_enable() was throwing messages and asking me to change the app_ram_base. So I shifted my application ram start address as suggested in the message given by softdevice_enable() .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU and custom service doesnt work together</title><link>https://devzone.nordicsemi.com/thread/81104?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 08:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e8c48ad-63d5-4550-936f-979b3b50b2da</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;Ok.
You don&amp;#39;t really need to change the linker file. May I know your thought process for making this change?.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU and custom service doesnt work together</title><link>https://devzone.nordicsemi.com/thread/81103?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 07:51:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4a32138-ff88-41f0-974f-f088e84c33f5</guid><dc:creator>Prasad</dc:creator><description>&lt;p&gt;@Rishi 	&lt;/p&gt;
&lt;p&gt;I changed memory mapping in my linker file. Earlier it was&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SRAM_SOFTDEVICE (RWX) : ORIGIN = 0x20000000, LENGTH = 0x1fe8
SRAM (RWX)            : ORIGIN = 0x20001fe8, LENGTH = 0x6018
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And now it is&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SRAM_SOFTDEVICE (RWX) : ORIGIN = 0x20000000, LENGTH = 0x1ff8
SRAM (RWX)            : ORIGIN = 0x20001ff8, LENGTH = 0x6008
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU and custom service doesnt work together</title><link>https://devzone.nordicsemi.com/thread/81102?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 03:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b090a866-bba3-438a-a5c7-578ee2faa71a</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand. You changed the app_ram_base manually or the setting changed the app_ram_base automatically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU and custom service doesnt work together</title><link>https://devzone.nordicsemi.com/thread/81100?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2017 13:33:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa71834d-ce16-4d21-ae6d-75f738ac0945</guid><dc:creator>Prasad</dc:creator><description>&lt;p&gt;Thanks!! This seam to work. But with this I also changed the app_ram_base.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU and custom service doesnt work together</title><link>https://devzone.nordicsemi.com/thread/81097?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2017 11:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:793c634d-81b1-4829-b82e-06a5347f697a</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;You can try updating the &lt;strong&gt;&lt;em&gt;vs_uuid_count=1&lt;/em&gt;&lt;/strong&gt; to &lt;strong&gt;&lt;em&gt;vs_uuid_count=2&lt;/em&gt;&lt;/strong&gt;. This value has to be updated in softdevice_handler.c present in Components/softdevice/common/ directory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>