<?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>error 4 (no memory) SDK13</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39474/error-4-no-memory-sdk13</link><description>Hi! 
 I have read a lot of topics, but there is no answear of my question. 
 I added HID services in my project but now project fall with error 4- no memory. 
 nRF52832, SDK13, S132. 
 How to increase (suppose in a sdk_config.h) this memory? My be need</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Oct 2018 07:02:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39474/error-4-no-memory-sdk13" /><item><title>RE: error 4 (no memory) SDK13</title><link>https://devzone.nordicsemi.com/thread/153133?ContentTypeID=1</link><pubDate>Wed, 17 Oct 2018 07:02:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c371317d-3edd-4c15-b123-5eb21d1b252b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;You should try to step into &lt;em&gt;ble_hids_init()&lt;/em&gt;&amp;nbsp;with your debugger and then single-step through the function to pinpoint exactly which function returns your error. You are likely right in that it is a memory issue due to your extra UUID though, so if you step into the function you will probably see that it is a function called&amp;nbsp;&lt;em&gt;sd_ble_uuid_vs_add()&lt;/em&gt; that returns the error. If you then search for that function name and error code on this forum you will likely find threads like&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33536/how-to-add-more-than-one-custom-service/128808#128808"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/bjornspockeli/custom_ble_service_example/releases"&gt;This tutorial&lt;/a&gt; also has an SDK 13 release version that might be helpful.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error 4 (no memory) SDK13</title><link>https://devzone.nordicsemi.com/thread/153011?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2018 09:29:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b912e01-f003-4d1b-ac5e-7b00334c6bd9</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;&lt;span&gt;&amp;nbsp;have set the optimization to -O0 and have set the DEBUG.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The reason of error is:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    err_code = ble_hids_init(&amp;amp;m_hids, &amp;amp;hids_init_obj);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6355.error.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I seen that my problem in the one more added service (hid). When I comment one of services before:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void services_init()
{
	dis_init();
	tps_init();
	sls_init();
//	bls_init();
	tis_init();
	nus_init();
    hids_init();
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bls_init(); for ex., project works wo fall. therefore, when one additional service added, memory runs out.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And I don&amp;#39;t know how to increase it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the SDK 15 was need to increase count of services. But in the SDK13 there is no same parametr.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error 4 (no memory) SDK13</title><link>https://devzone.nordicsemi.com/thread/152984?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2018 08:22:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1ed9cdf-6abc-490d-b74c-2742e2873062</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Have you set the optimization to -O0 and set the DEBUG flag as described &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;here&lt;/a&gt; and &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_error.html?cp=4_0_0_3_13"&gt;here&lt;/a&gt;?&amp;nbsp;&lt;span&gt;app_error_fault_handler() is not the &lt;em&gt;source&lt;/em&gt; of the error, but rather a function that might &lt;em&gt;show&lt;/em&gt; you the source. If you debug correctly you should get a stack window like below, showing you the error code and source of origin:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5af23a2ce34246378ce3f1595f12557b/pastedimage1539677901113v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then you can figure out which function returned&amp;nbsp;the error, and if you look up the function documentation in the&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/index.jsp"&gt;infocenter&lt;/a&gt;&amp;nbsp;or in the header files you might get the&amp;nbsp;cause of it too.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error 4 (no memory) SDK13</title><link>https://devzone.nordicsemi.com/thread/152913?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 14:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbd0147e-b1e8-4382-8cc0-88f86b7d50f3</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;it was before:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_420435043A044304490438043504_-_3D0430044104420440043E0439043A043804_-_3F0430043C044F0442043804_.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I see this error when I get&amp;nbsp;&lt;/p&gt;
&lt;p&gt;__WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)&lt;/p&gt;
&lt;p&gt;In the stack window see error 4.&lt;/p&gt;
&lt;p&gt;But one detail- when I comment one of services before (for ex. tis_service) added hid services works wo fail.&lt;/p&gt;
&lt;p&gt;mean:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void services_init()
{
	dis_init();
	tps_init();
	sls_init();
	bls_init();
//	tis_init();
	nus_init();
    hids_init();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I suppose, shoul increase count of services. But where?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error 4 (no memory) SDK13</title><link>https://devzone.nordicsemi.com/thread/152909?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 14:12:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:108bbdce-0b5d-4d17-a332-300a32610b1b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Have you seen&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38960/sd_ble_enable-returned-nrf_error_no_mem-on-initalization-nrf528232"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/38960/sd_ble_enable-returned-nrf_error_no_mem-on-initalization-nrf528232&lt;/a&gt;&amp;nbsp;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error 4 (no memory) SDK13</title><link>https://devzone.nordicsemi.com/thread/152908?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 14:08:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c53fd4d8-0c43-4076-bc48-1af05e764e95</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;What was your project before you added HID?&lt;/p&gt;
&lt;p&gt;Where, exactly, are you seeing this error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>