<?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>SD 132 increasing RAM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12172/sd-132-increasing-ram</link><description>I have modified the experimental_ble_eddystone app to be a connectable beacon. To do this I need to increase the peripheral_link_count to 1 from 0. In others words I want to make it a connectable beacon. 
 I get err_code 12 when I enable the softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Mar 2016 19:37:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12172/sd-132-increasing-ram" /><item><title>RE: SD 132 increasing RAM</title><link>https://devzone.nordicsemi.com/thread/46065?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2016 19:37:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa224a35-1128-489b-bea9-5198b54b8825</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;The p_app_ram_base parameter is an in/out parameter. It will be updated with a value equal to the RAM reserved by the SoftDevice, for the given configuration. You only need to run this once, put a debugger/print after the enable call, then update the amount of RAM. When the new SDK hits, there should be some numbers for the most common configurations, but this is the way to find them yourself :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD 132 increasing RAM</title><link>https://devzone.nordicsemi.com/thread/46064?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2016 14:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af2f6269-e4df-4aee-825a-0b04798a4e01</guid><dc:creator>AB</dc:creator><description>&lt;p&gt;I solved the problem for 1 peripheral connection. I adjusted the iRAM settings in Keal to 0x20001f00 and size 0x6100. This works. The default values in the app for the 0 peripheral case was 0x20001860 0x67a0.&lt;/p&gt;
&lt;p&gt;I wish there was a formula to determine the memory settings based on the number of connections. Seems like trial and error is the only way. The key is for the sum of the two above numbers to be constant and end in a 4 byte boundary.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD 132 increasing RAM</title><link>https://devzone.nordicsemi.com/thread/46063?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 15:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cc18b13-b5b6-4619-8bac-b7d8eaecbc3c</guid><dc:creator>AB</dc:creator><description>&lt;p&gt;Thanks RK I have installed 2.0.0-7 and I have the following issue.&lt;/p&gt;
&lt;p&gt;define PERIPHERAL_LINK_COUNT 1&lt;/p&gt;
&lt;p&gt;err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
PERIPHERAL_LINK_COUNT,
&amp;amp;ble_enable_params);&lt;/p&gt;
&lt;p&gt;err_code = softdevice_enable(&amp;amp;ble_enable_params);&lt;/p&gt;
&lt;p&gt;results in err_code =12&lt;/p&gt;
&lt;p&gt;It works fine (err_code = 0) when I have&lt;/p&gt;
&lt;p&gt;define PERIPHERAL_LINK_COUNT 0
err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
PERIPHERAL_LINK_COUNT,
&amp;amp;ble_enable_params);&lt;/p&gt;
&lt;p&gt;err_code = softdevice_enable(&amp;amp;ble_enable_params);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD 132 increasing RAM</title><link>https://devzone.nordicsemi.com/thread/46062?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2016 03:27:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4a97221-dfeb-4cc3-94f3-558e208a0b8a</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;If you&amp;#39;re using 2.0.0-2 alpha then NRF_ERROR_NO_MEM, as it tells you in the documentation, means you need to reduce the size of the attribute table.&lt;/p&gt;
&lt;p&gt;If you move to a later release, I think anything after 2.0.0-7, that allows you to adjust the amount of memory used by the softdevice instead so the whole thing is completely tuneable. In that case the error code returned changes and the enable call changes to take a pointer to the start of user memory.&lt;/p&gt;
&lt;p&gt;So either reduce your attribute table size if you want to continue on that version of the softdevice, or make the changes to move to the latest one and tune the attribute table size and the memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>