<?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>The RAM usage for s132 with different bandwidth links</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28855/the-ram-usage-for-s132-with-different-bandwidth-links</link><description>Dear experts, 
 I&amp;#39;m using nrf52832 with softdevice s132 v2 for BLE central products developing. According to the specification of s132 v2: We should run some code to get the app_ram_base address from calling sd_ble_enable() . Yes, I can get the value</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jan 2018 07:43:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28855/the-ram-usage-for-s132-with-different-bandwidth-links" /><item><title>RE: The RAM usage for s132 with different bandwidth links</title><link>https://devzone.nordicsemi.com/thread/114239?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 07:43:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60bc52db-3ea4-4cce-8766-284405c24b5c</guid><dc:creator>leibin</dc:creator><description>&lt;p&gt;Yep, this solved my problem. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The RAM usage for s132 with different bandwidth links</title><link>https://devzone.nordicsemi.com/thread/114238?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 13:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e990a2a-6d21-465b-aed1-58e54fd22cc2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Well, I see that it is not exactly what I&amp;#39;m doing. With your approach p_conn_bw_counts will point to NULL, and the SoftDevice will set standard bandwidths, your specific bandwidth settings will not have any effect. With my approach it will point to the address of &amp;amp;ble_conn_bw_counts. Have you tested?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The RAM usage for s132 with different bandwidth links</title><link>https://devzone.nordicsemi.com/thread/114241?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 02:20:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41907b6f-7dee-4348-822a-a4582a81aaf7</guid><dc:creator>leibin</dc:creator><description>&lt;p&gt;ble_enable_params_t ble_enable_params;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = softdevice_enable_get_default_config(8, 0, &amp;amp;ble_enable_params);

ble_enable_params.common_enable_params.p_conn_bw_counts-&amp;gt;rx_counts.high_count = 8;
ble_enable_params.common_enable_params.p_conn_bw_counts-&amp;gt;rx_counts.mid_count  = 0;
ble_enable_params.common_enable_params.p_conn_bw_counts-&amp;gt;rx_counts.low_count  = 0;
ble_enable_params.common_enable_params.p_conn_bw_counts-&amp;gt;tx_counts.high_count = 8;
ble_enable_params.common_enable_params.p_conn_bw_counts-&amp;gt;tx_counts.mid_count  = 0;
ble_enable_params.common_enable_params.p_conn_bw_counts-&amp;gt;tx_counts.low_count  = 0;

CHECK_RAM_START_ADDR(8,0);

err_code = softdevice_enable(&amp;amp;ble_enable_params);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The RAM usage for s132 with different bandwidth links</title><link>https://devzone.nordicsemi.com/thread/114240?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 02:19:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15ffc55a-8ad2-450c-b6bf-4936bcff89e4</guid><dc:creator>leibin</dc:creator><description>&lt;p&gt;Hi Petter,
I think that&amp;#39;s exactly what I do in my code as below. And it works fine.
The only thing as I mentioned above confusing me is that after I changing the bandwidth counter in &lt;code&gt;ble_conn_bw_counts&lt;/code&gt; and keeping &lt;code&gt;ble_enable_params.gap_enable_params.central_conn_count&lt;/code&gt; as the same value 8 the value of &lt;code&gt;app_ram_base&lt;/code&gt; is not changed. But if I change the value of &lt;code&gt;ble_enable_params.gap_enable_params.central_conn_count&lt;/code&gt; the value of &lt;code&gt;app_ram_base&lt;/code&gt; is also changed accordingly.
Looks like &lt;code&gt;app_ram_base&lt;/code&gt; just depends on &lt;code&gt;central_conn_count&lt;/code&gt; and has nothing to do with   bandwidth counter. This is not the same as s132 spec mentions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The RAM usage for s132 with different bandwidth links</title><link>https://devzone.nordicsemi.com/thread/114237?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2018 14:26:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:957124fb-105f-4650-8df1-1ccbe78871e1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I think you need to do something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_enable_params.gap_enable_params.central_conn_count = 8;

ble_conn_bw_counts_t ble_conn_bw_counts;
memset(&amp;amp;ble_conn_bw_counts, 0x00, sizeof(ble_conn_bw_counts_t));

ble_conn_bw_counts.rx_counts.high_count = 8;
ble_conn_bw_counts.rx_counts.mid_count = 0;
ble_conn_bw_counts.rx_counts.low_count = 0;
ble_conn_bw_counts.tx_counts.high_count = 8;
ble_conn_bw_counts.tx_counts.mid_count = 0;
ble_conn_bw_counts.tx_counts.low_count = 0;

ble_enable_params.common_enable_params.p_conn_bw_counts = &amp;amp;ble_conn_bw_counts;

// Enable BLE stack.
err_code = softdevice_enable(&amp;amp;ble_enable_params);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Let me know how it goes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>