<?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>How does Peripheral role configuration affect the RAM impact of s132?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39400/how-does-peripheral-role-configuration-affect-the-ram-impact-of-s132</link><description>I&amp;#39;ve just added a 4th Peripheral-role link to my project, and the RAM requirement for the SoftDevice increased by over 3kB. I&amp;#39;m trying to figure out whether I can reduce this. 
 I&amp;#39;m using s132 v5.1.0. Section 14.3 of the SD Spec gives role configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Oct 2018 14:12:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39400/how-does-peripheral-role-configuration-affect-the-ram-impact-of-s132" /><item><title>RE: How does Peripheral role configuration affect the RAM impact of s132?</title><link>https://devzone.nordicsemi.com/thread/152719?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 14:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:842d47a0-0199-4e21-88a7-62d4696f3fce</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The various layers in the stack all create individual buffers per link. So&amp;nbsp;multiple buffers are created&amp;nbsp;each time you add another link and their length is varying dependent on your MTU size.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The GAP Event length does indeed impact RAM &lt;span&gt;requirements&lt;/span&gt;, but how much (if anything at all) depends on the event length relative to the packet length. I did some quick tests:&lt;/p&gt;
&lt;table width="268"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="70"&gt;Link Count&lt;/td&gt;
&lt;td width="64"&gt;MTU&amp;nbsp;size&lt;/td&gt;
&lt;td width="70"&gt;Event&amp;nbsp;length&lt;/td&gt;
&lt;td width="64"&gt;RAM requirements&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;23&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;8416&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;247&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;10064&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;247&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;10064&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;247&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;10584&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;You can see that if I&amp;nbsp;increase the event length from 3 to 4 nothing happens, but if I double the value to 6 the RAM requirements increase by 520 bytes.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does Peripheral role configuration affect the RAM impact of s132?</title><link>https://devzone.nordicsemi.com/thread/152718?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 14:11:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b338af52-a36c-488a-887c-39ebc8c28f54</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The various layers in the stack all create individual buffers per link. So&amp;nbsp;multiple buffers are created&amp;nbsp;each time you add another link and their length is varying dependent on your MTU size.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The GAP Event length does indeed impact RAM &lt;span&gt;requirements&lt;/span&gt;, but how much (if anything at all) depends on the event length relative to the packet length. I did some quick tests:&lt;/p&gt;
&lt;table width="268"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="70"&gt;Link Count&lt;/td&gt;
&lt;td width="64"&gt;MTU&amp;nbsp;size&lt;/td&gt;
&lt;td width="70"&gt;Event&amp;nbsp;length&lt;/td&gt;
&lt;td width="64"&gt;RAM requirements&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;23&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;8416&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;247&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;10064&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;247&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;10064&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;247&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;10584&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;You can see that if I&amp;nbsp;increase the event length from 3 to 4 nothing happens, but if I double the value to 6 the RAM requirements increase by 520 bytes.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>