<?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>No Memory for operation when use sd_ble_gatts_characteristic_add to add a characteristic with S140</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22091/no-memory-for-operation-when-use-sd_ble_gatts_characteristic_add-to-add-a-characteristic-with-s140</link><description>Hi all, 
 I&amp;#39;m using nRF52840 and S140 based on the ble_app_uart example. I get a error code 4 when use sd_ble_gatts_characteristic_add to add a characteristic for another service. I didn&amp;#39;t change any setting for the Keil and the softdevice_enable function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 28 May 2017 12:26:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22091/no-memory-for-operation-when-use-sd_ble_gatts_characteristic_add-to-add-a-characteristic-with-s140" /><item><title>RE: No Memory for operation when use sd_ble_gatts_characteristic_add to add a characteristic with S140</title><link>https://devzone.nordicsemi.com/thread/86807?ContentTypeID=1</link><pubDate>Sun, 28 May 2017 12:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:859dec0c-b2a0-45bc-a4e9-822b10656aec</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great! Then I would appreciate if you could consider accepting my answer by clicking the grey circle next to it.. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No Memory for operation when use sd_ble_gatts_characteristic_add to add a characteristic with S140</title><link>https://devzone.nordicsemi.com/thread/86806?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 02:07:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaf48896-f94a-48c7-9530-5c294eb7dbf1</guid><dc:creator>Alice</dc:creator><description>&lt;p&gt;It&amp;#39;s OK now by  increasing the attribute table size and then change the IRAM1 on the Keil. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No Memory for operation when use sd_ble_gatts_characteristic_add to add a characteristic with S140</title><link>https://devzone.nordicsemi.com/thread/86805?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 06:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39604e62-d63b-46a9-b66c-0fbe8d443305</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You don&amp;#39;t increase the attribute table size by only increasing the amount of RAM reserved by the SoftDevice, you need to tell the SoftDevice what size you want the attribute table to be. Something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_cfg_t ble_cfg;
memset(&amp;amp;ble_cfg, 0x00, sizeof(ble_cfg));
ble_cfg.gatts_cfg.attr_tab_size.attr_tab_size = 2000;
err_code = sd_ble_cfg_set(BLE_GATTS_CFG_ATTR_TAB_SIZE, &amp;amp;ble_cfg, ram_start);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is usually added in ble_stack_init(). If this doens&amp;#39;t work, I think you will have to upload your complete project or tell us how to reproduce this error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No Memory for operation when use sd_ble_gatts_characteristic_add to add a characteristic with S140</title><link>https://devzone.nordicsemi.com/thread/86804?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 02:28:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a37bd244-fd64-438f-b980-9b6fe6106b8c</guid><dc:creator>Alice</dc:creator><description>&lt;p&gt;Yes, I have tried to increase the attribute table size in the Keil-&amp;gt;IRAM1. Also I have tried to use BLE_GATTS_VLOC_USER instead of BLE_GATTS_VLOC_STACK for the characteristic which make the error. Is there any other idear?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No Memory for operation when use sd_ble_gatts_characteristic_add to add a characteristic with S140</title><link>https://devzone.nordicsemi.com/thread/86803?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 11:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a338fb1-43e2-4c98-af51-c5089149a910</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Have you tried to increase the attribute table size? Or maybe you can use BLE_GATTS_VLOC_USER instead of BLE_GATTS_VLOC_STACK?&lt;/p&gt;
&lt;p&gt;Where are you setting the MTU?&lt;/p&gt;
&lt;p&gt;Maybe &lt;a href="https://devzone.nordicsemi.com/question/115808/long-range-ble5-implementation-in-ble_app_uart/"&gt;this&lt;/a&gt; example is useful?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>