<?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>BLE number of pakets NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54452/ble-number-of-pakets-nrf52832</link><description>Hi everybody, 
 I have a question about the number of data pakets which I can send with the BLE. Every data paket has a range of 20 Byte. 
 Now I want to send about 55 of these data pakets. But I only can send 10 then it works without problems. When I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Nov 2019 09:14:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54452/ble-number-of-pakets-nrf52832" /><item><title>RE: BLE number of pakets NRF52832</title><link>https://devzone.nordicsemi.com/thread/221770?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 09:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0baa7c3-7afd-422e-915c-080fd88a1aaf</guid><dc:creator>marsss</dc:creator><description>&lt;p&gt;Ok, thanks a lot. this works! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE number of pakets NRF52832</title><link>https://devzone.nordicsemi.com/thread/221088?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 13:21:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d0b639c-78b4-4a25-95c1-918e4680eaf4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;How much RAM the SoftDevice needs depends on how you configure the SoftDevice. Configuring e.g. more characteristics and services, the SoftDevice will require more RAM. The exact number is returned by the function sd_ble_enable(), and if it needs to be adjusted, it’s printed in the nrf_sdh_ble_enable() function in nrf_sdh_ble.c&lt;/p&gt;
&lt;p&gt;Snippet:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ret_code_t nrf_sdh_ble_enable(uint32_t * const p_app_ram_start)
{
    // Start of RAM, obtained from linker symbol.
    uint32_t const app_ram_start_link = *p_app_ram_start;

    ret_code_t ret_code = sd_ble_enable(p_app_ram_start);
    if (*p_app_ram_start &amp;gt; app_ram_start_link)
    {
        NRF_LOG_WARNING(&amp;quot;Insufficient RAM allocated for the SoftDevice.&amp;quot;);

        NRF_LOG_WARNING(&amp;quot;Change the RAM start location from 0x%x to 0x%x.&amp;quot;,
                        app_ram_start_link, *p_app_ram_start);
        NRF_LOG_WARNING(&amp;quot;Maximum RAM size for application is 0x%x.&amp;quot;,
                        ram_end_address_get() - (*p_app_ram_start));
    }
    else
    {
        NRF_LOG_DEBUG(&amp;quot;RAM starts at 0x%x&amp;quot;, app_ram_start_link);
        if (*p_app_ram_start != app_ram_start_link)
        {
            NRF_LOG_DEBUG(&amp;quot;RAM start location can be adjusted to 0x%x.&amp;quot;, *p_app_ram_start);

            NRF_LOG_DEBUG(&amp;quot;RAM size for application can be adjusted to 0x%x.&amp;quot;,
                          ram_end_address_get() - (*p_app_ram_start));
        }
    }

    if (ret_code == NRF_SUCCESS)
    {
        m_stack_is_enabled = true;
    }
    else
    {
        NRF_LOG_ERROR(&amp;quot;sd_ble_enable() returned %s.&amp;quot;, nrf_strerror_get(ret_code));
    }

    return ret_code;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE number of pakets NRF52832</title><link>https://devzone.nordicsemi.com/thread/220988?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 09:10:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8cce0d5-5d1b-4eb5-a3de-54989adead7e</guid><dc:creator>marsss</dc:creator><description>&lt;p&gt;Yes, thank you &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you know, how big I can big I can do the RAM size? - Or does it depends on the Code size?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE number of pakets NRF52832</title><link>https://devzone.nordicsemi.com/thread/220861?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 13:22:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c8c8cc2-9ef5-4490-8b81-ef9f492d8c0f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You need to adjust the allocated RAM to the SoftDevice. In Segger Embedded Studio you can adjust it here:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1574169732049v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE number of pakets NRF52832</title><link>https://devzone.nordicsemi.com/thread/220790?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 10:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ecc5622-1180-4c08-923c-49173b4c0f34</guid><dc:creator>marsss</dc:creator><description>&lt;p&gt;I tried to Change the&amp;nbsp;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:13.3px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:20px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH&lt;/span&gt; like you said. But then I get the error 4 which says not enough memory?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE number of pakets NRF52832</title><link>https://devzone.nordicsemi.com/thread/220789?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 10:43:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ebaea56-d486-4d4b-a838-7526200bdbd3</guid><dc:creator>marsss</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE number of pakets NRF52832</title><link>https://devzone.nordicsemi.com/thread/220659?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 15:50:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d871880d-19f1-4631-adcc-6d10cae6cf8f</guid><dc:creator>marsss</dc:creator><description>&lt;p&gt;That could be. No, I don&amp;#39;t get an other error code in the debug mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try with your tip and give feedback &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE number of pakets NRF52832</title><link>https://devzone.nordicsemi.com/thread/220650?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 15:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c96d458-264c-40a1-bebc-f3fb0aee35ed</guid><dc:creator>Sigurd</dc:creator><description>&lt;p style="margin-top:0cm;"&gt;Hi,&lt;/p&gt;
&lt;p&gt;The internal SoftDevice buffer is probably&amp;nbsp;full. Do you get any error-codes printed in debug configuration&amp;nbsp; ?&lt;/p&gt;
&lt;p&gt;Try increasing&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH in sdk_config.h to e.g. 300&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>