<?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>Max BLE concurrent connections</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115776/max-ble-concurrent-connections</link><description>Hello. 
 I&amp;#39;m trying to figure out which microcontroller is best for my use case. I need to have as many bluetooth low energy concurrent connections as possible and the device should be able to work both as a peripheral and central. 
 I&amp;#39;ve been reading</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Oct 2024 18:41:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115776/max-ble-concurrent-connections" /><item><title>RE: Max BLE concurrent connections</title><link>https://devzone.nordicsemi.com/thread/508242?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 18:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90df4da6-b1c0-441d-931d-2be873e2b8ca</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;The nRF52840 is a single-core SoC with 256 KB of RAM that is shared between the BLE stack and the application code. nRF5340 network core&amp;nbsp;typically handles the radio and protocol stack and it has&amp;nbsp;64 KB of RAM as you mentioned. See&amp;nbsp;&lt;/span&gt;the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/soc_overview/doc/soc_overview.html#ariaid-title3" rel="noopener noreferrer" target="_blank"&gt;nRF5340 memory configuration table&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max BLE concurrent connections</title><link>https://devzone.nordicsemi.com/thread/508011?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2024 23:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2d7951c-f6c3-4fc1-9f5d-801779e5c820</guid><dc:creator>ivanpondal</dc:creator><description>&lt;p&gt;OK, no problem. So this got me thinking, if the nRF52840 is single core; does that mean the ble stack gets to share the 256kb of ram with application code? I&amp;#39;m thinking out loud but couldn&amp;#39;t that result in more connections in terms of memory limitation? If I read correctly,&amp;nbsp;&lt;span&gt;nRF53 has 64kb of ram on the CPUNET.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max BLE concurrent connections</title><link>https://devzone.nordicsemi.com/thread/507823?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 19:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1cd166b-ed0d-42ee-b22e-d2135f1ceba6</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Unfortunately, no such function. It would only get the result after compiling according to the configurations.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max BLE concurrent connections</title><link>https://devzone.nordicsemi.com/thread/507814?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 17:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da465069-de18-4802-9f44-9c5de2ad9da5</guid><dc:creator>ivanpondal</dc:creator><description>&lt;p&gt;I meant during runtime, like to check how much gets used after&amp;nbsp;performing a ble connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max BLE concurrent connections</title><link>https://devzone.nordicsemi.com/thread/507813?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 17:52:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c05abbd-cdd9-4bfe-8c99-e8e2c09f4b9f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;It would show at the end of the build log such as&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Build files have been written to: C:/ncs/v2.7.0/nrf/samples/bluetooth/peripheral_uart/build/ipc_radio
-- Configuring done
-- Generating done
-- Build files have been written to: C:/ncs/v2.7.0/nrf/samples/bluetooth/peripheral_uart/build
-- west build: building application
[6/262] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (C:/ncs/v2.7.0/zephyr), build: v3.6.99-ncs2
[262/262] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      155460 B      1008 KB     15.06%
             RAM:       33832 B       448 KB      7.37%
        IDT_LIST:          0 GB        32 KB      0.00%&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max BLE concurrent connections</title><link>https://devzone.nordicsemi.com/thread/507805?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 16:17:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f283763-144c-4f5e-be3a-803a5f4fa532</guid><dc:creator>ivanpondal</dc:creator><description>&lt;p&gt;Great, that makes sense.&lt;/p&gt;
&lt;p&gt;Is there a way to get&amp;nbsp;the currently available CPUNET RAM? That way I could run some tests and measure myself.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max BLE concurrent connections</title><link>https://devzone.nordicsemi.com/thread/507801?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 15:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ca22398-db26-4526-a075-9a4ae2bfc6e6</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="ivanpondal"] is there any hard limit? This is the post I had read &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70624/ncs-max-concurrent-peripheral-connections/290243"&gt;NCS max concurrent peripheral connections&lt;/a&gt;.[/quote]
&lt;p&gt;When increasing a connection, the controller would also need more RAM to handle for that connection. Since the&amp;nbsp;&lt;span&gt;Zephyr BLE controller is not maintained by Nordic, I am not sure how much memory would be required for each connection and more than 20 connections.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="ivanpondal"]I&amp;#39;m not sure I understand what you mean by limited by CPUNET core flash size.[/quote]
&lt;p&gt;The&amp;nbsp;BLE controller is run on the nRF53 CPUNET core, so it is limited to the RAM on the CPUNET core.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max BLE concurrent connections</title><link>https://devzone.nordicsemi.com/thread/507650?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 19:58:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad996cd2-d8be-49f0-986a-50b70094a7a1</guid><dc:creator>ivanpondal</dc:creator><description>&lt;p&gt;I understand one must test if it is physically possible to have over 20 concurrent connections but from a software or microcontroller perspective, is there any hard limit? This is the post I had read &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70624/ncs-max-concurrent-peripheral-connections/290243"&gt;NCS max concurrent peripheral connections&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure I understand what you mean by limited by CPUNET core flash size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max BLE concurrent connections</title><link>https://devzone.nordicsemi.com/thread/507643?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 19:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a6ab8fc-2937-47fe-ad1a-32e9fc39b2d9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]would it be correct to assume I&amp;#39;d be able to get over 20 concurrent connections with a nRF52840 using Zephyr BLE controller?[/quote]
&lt;p&gt;We don&amp;#39;t test that.&amp;nbsp;&lt;/p&gt;
[quote user=""]Would there be any benefit on using a microcontroller from the nRF53 series?[/quote]
&lt;p&gt;No, it is limited to the&amp;nbsp;CPUNET core flash size.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>