<?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>SDK11: Error 4 when calling ble_dfu_init()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17114/sdk11-error-4-when-calling-ble_dfu_init</link><description>I have an application with my own custom service with a 128-bit UUID (including 4 characteristics). The application has worked so far. Now I try to add DFU service support to my application. 
 But when calling ble_dfu_init() I get error 4. 
 I tried</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Oct 2016 11:50:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17114/sdk11-error-4-when-calling-ble_dfu_init" /><item><title>RE: SDK11: Error 4 when calling ble_dfu_init()</title><link>https://devzone.nordicsemi.com/thread/65681?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 11:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be507de2-6946-4b82-949f-8fef78927d18</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;att table size is adjusted by setting the .gatts_enable_params.attr_tab_size variable in the ble_enable_params_t struct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK11: Error 4 when calling ble_dfu_init()</title><link>https://devzone.nordicsemi.com/thread/65680?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 11:46:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d422ffa5-453a-4d49-bb63-031827a51337</guid><dc:creator>sarah_sdw</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried to increase the size of task stack.. but no effet&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand what the GATT table, where can i increase it  ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK11: Error 4 when calling ble_dfu_init()</title><link>https://devzone.nordicsemi.com/thread/65679?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 08:37:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5972070-f6e5-4910-97ec-b6a0fb3551d2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The new softdevices support dynamic RAM allocation, which means that you need to allocate more RAM memory if you add additional services to the examples. This is described in more detail in the migration document included with the softdevice.&lt;/p&gt;
&lt;p&gt;In addition to increasing the size of the GATT table (might not be required) you also need to increase the UUID buffer count by increasing the .vs_uuid_count to the number of UUIDs you are using.&lt;/p&gt;
&lt;p&gt;E.g.,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_enable_params_t ble_enable_params;

err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,    
                                                PERIPHERAL_LINK_COUNT,
                                                &amp;amp;ble_enable_params);

APP_ERROR_CHECK(err_code);

ble_enable_params.common_enable_params.vs_uuid_count = NUMBER OF UUIDs;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note that sd_ble_enable returns the app RAM base that should be used with current configuration.&lt;/p&gt;
&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;Have you tried to increase the size of the GATT table as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>