<?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>nRF52811 w/ soft device s140</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105846/nrf52811-w-soft-device-s140</link><description>Hi there. In order to up to 20 concurrent onnections to the device, it was necessary for us to switch from the s112 to the s140. 
 
 I believe I am messing up the flash placement of this and am not understanding the guides so well. 
 I was able to discern</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Dec 2023 10:31:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105846/nrf52811-w-soft-device-s140" /><item><title>RE: nRF52811 w/ soft device s140</title><link>https://devzone.nordicsemi.com/thread/459890?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 10:31:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37a070d4-d985-4fa1-b1b3-b21a96678056</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kevin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Torbjørn is away for a week, so I will just drop an answer here. &lt;br /&gt;&lt;br /&gt;No there isn&amp;#39;t an option to change the max number of peripheral the S112 can support. Unfortunately there will be no new development on the legacy Softdevices as we moved to nRF Connect SDK from 3 years ago.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52811 w/ soft device s140</title><link>https://devzone.nordicsemi.com/thread/459799?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 23:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fc61cc7-93cb-4e71-86d2-cb7d83bf169a</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;div dir="auto"&gt;So played around with this a bit and s140 is quite a bit bigger. Don&amp;rsquo;t suppose there&amp;rsquo;s a way to expand s112 to support more peripheral connections?&lt;/div&gt;
&lt;div dir="auto"&gt;&lt;/div&gt;
&lt;div dir="auto"&gt;&lt;/div&gt;
&lt;div dir="auto"&gt;Here&amp;rsquo;s a cool video of us connecting 4 phones to the device.&lt;/div&gt;
&lt;div dir="auto"&gt;&lt;/div&gt;
&lt;div dir="auto"&gt;&lt;/div&gt;
&lt;div dir="auto"&gt;
&lt;div&gt;&lt;a href="https://www.instagram.com/p/C0t6Lrlutb1/?igshid=MzRlODBiNWFlZA==" rel="noopener noreferrer" target="_blank" data-saferedirecturl="https://www.google.com/url?q=https://www.instagram.com/p/C0t6Lrlutb1/?igshid%3DMzRlODBiNWFlZA%3D%3D&amp;amp;source=gmail&amp;amp;ust=1702423121530000&amp;amp;usg=AOvVaw0YVenA0e2goLqH-Kk9f19S"&gt;https://www.instagram.com/p/C0t6Lrlutb1/?igshid=MzRlODBiNWFlZA==&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir="auto"&gt;&lt;/div&gt;
&lt;div dir="auto"&gt;&lt;/div&gt;
&lt;div dir="auto"&gt;Btw, appreciate the support.&lt;/div&gt;
&lt;div dir="auto"&gt;&lt;/div&gt;
&lt;div dir="auto"&gt;&lt;/div&gt;
&lt;div dir="auto"&gt;Thanks,&lt;/div&gt;
&lt;div dir="auto"&gt;Kevin Lamb&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52811 w/ soft device s140</title><link>https://devzone.nordicsemi.com/thread/456918?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 12:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b8374aa-6c21-4287-a435-b0a57edfd7bc</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Kevin&lt;/p&gt;
&lt;p&gt;The RAM_SIZE parameter is surely not correct. The available RAM size equals the total ram size (RAM_PH_SIZE = 0x6000) - 0x4990, which only leaves 0x1670 for the application (or 5.7kB).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I went through the exercise of updating the ble_app_uart example with project files for the pca10056e board running on the S140 SoftDevice, and I have attached it below:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/317960_5F00_ble_5F00_app_5F00_uart.zip"&gt;devzone.nordicsemi.com/.../317960_5F00_ble_5F00_app_5F00_uart.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you take a look at the project in the&amp;nbsp;&lt;em&gt;\317960_ble_app_uart\pca10056e\s140\ses&lt;/em&gt; folder and see if you can use it for reference?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried with both 8 and 6 peripherals, but in either case I was not left with enough RAM for the ble_app_uart application libraries. I left it at 4 which seemed to work fine, and I was able to run the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess you need to enable more than 4 links in order to justify the move to the S140, but I am not sure how much more is practically achievable.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52811 w/ soft device s140</title><link>https://devzone.nordicsemi.com/thread/456761?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 16:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:183411d3-4648-4569-a96e-da9ac5a73e4f</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;p&gt;Tried the settings your terminal suggested;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2023_2D00_11_2D00_21-11_5F00_36_5F00_17_2D00_SEGGER-Embedded-Studio-for-ARM-V7.10a-_2D00_-Property-Editor.png" /&gt;&lt;/p&gt;
&lt;p&gt;And got this;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2023_2D00_11_2D00_21-11_5F00_35_5F00_25_2D00_OSL-_2D00_-SEGGER-Embedded-Studio-for-ARM-V7.10a-_2800_64_2D00_bit_2900_-_2D00_-Non_2D00_Commercial-License.png" /&gt;&lt;/p&gt;
&lt;p&gt;Hmm I take it&amp;#39;s too big then?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;by the way, I am not sure how to get that terminal logging. Is it because&amp;nbsp;I have&amp;nbsp;NRF_SDH_BLE_LOG_ENABLED 0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Correct we want more peripheral links. This device will be connected to (and &amp;quot;controlled&amp;quot;) by several phones/tablets. It has low data throughput (no audio, no video). Mainly just notify&amp;#39;s the client (central) that it is on/off and some other simple stuff.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As far as project complexity, I believe the MCU use is fairly basic; Just twi, ble, gpio and interrupts, timers.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Still also having it throw an error for FPU;&lt;br /&gt;Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;what file was this supposed to be defined in?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52811 w/ soft device s140</title><link>https://devzone.nordicsemi.com/thread/456667?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 12:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e15222c3-0fb9-44d7-a3e8-34cac2d0a7e9</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Kevin&lt;/p&gt;
[quote user="kclamb2015@gmail.com"]Okay good to know about the 20 connections. Would it at least expand it from 4 (s112) to a few more? 6-8 connections? Your best guess?[/quote]
&lt;p&gt;It&amp;#39;s impossible to give an accurate answer to that without knowing how much memory you need for your application, but I expect anything above 4 is going to be a challenge.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To test this you can try to build one of the&amp;nbsp;standard Bluetooth samples, and experiment with the SoftDevice configuration in sdk_config.h.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested this myself based on the ble_app_uart sample, building the one targeting the pca10056 and the S140 SoftDevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When increasing the number of peripheral and total links to 8 I can see in the debugger that the new RAM start location should be 0x20004990, which means the SoftDevice RAM consumption alone is 18.8kB (0x4990 converted to decimal):&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:325px;max-width:441px;" height="325" src="https://devzone.nordicsemi.com/resized-image/__size/882x650/__key/communityserver-discussions-components-files/4/pastedimage1700569866865v1.png" width="441" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I set the data length and max MTU to minimum values to reduce RAM consumption somewhat. You could also try to use smaller values for the GAP_EVENT_LENGTH parameter, such as 2 or 3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For clarity, do you want 20 links in peripheral or central role?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The S112 to my knowledge only support 4 peripheral connections, but when you need multiple links it is typically central links that are required.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52811 w/ soft device s140</title><link>https://devzone.nordicsemi.com/thread/456472?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 14:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7727e065-e6d0-423e-bb93-f001ce99b438</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;p&gt;Okay good to know about the 20 connections. Would it at least expand it from 4 (s112) to a few more? 6-8 connections? Your best guess?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As for the FPU, the project was using dependencies for the nrf52810 and&amp;nbsp;I was attempting to switch over those at the same time.&lt;br /&gt;I likely missed a few spots where this needed to be updated, here&amp;#39;s a list of locations I did update it;&lt;/p&gt;
&lt;p&gt;Project Options (Common)-&amp;gt;Debugger-&amp;gt;Target Device =&amp;nbsp;nRF52811_xxAA&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Project Options (Common)-&amp;gt;Debugger-&amp;gt;Register Definition File =&amp;nbsp;&lt;/span&gt;modules/nrfx/mdk/nrf52811.svd&lt;/p&gt;
&lt;p&gt;these .s/.c files were changes in the&amp;nbsp;project files;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2023_2D00_11_2D00_20-09_5F00_37_5F00_11_2D00_Clipboard.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Project Options (Common)-&amp;gt;Preprocessor-&amp;gt;Preprocessor Definitions =&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;APP_TIMER_V2&lt;br /&gt;APP_TIMER_V2_RTC1_ENABLED&lt;br /&gt;BOARD_PCA10056&lt;br /&gt;CONFIG_GPIO_AS_PINRESET&lt;br /&gt;FLOAT_ABI_HARD&lt;br /&gt;INITIALIZE_USER_SECTIONS&lt;br /&gt;NO_VTOR_CONFIG&lt;br /&gt;NRF52811_XXAA&lt;br /&gt;NRF_SD_BLE_API_VERSION=7&lt;br /&gt;S140&lt;br /&gt;SOFTDEVICE_PRESENT&lt;br /&gt;CUSTOM_BOARD&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52811 w/ soft device s140</title><link>https://devzone.nordicsemi.com/thread/456439?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 13:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a37e13c1-5663-497a-bb5d-f4cba6bcfe3b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is some information &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;here&lt;/a&gt; regarding setting the right memory settings when using a SoftDevice. Essentially you have to run the code with your desired configuration, and logging enabled, and you will get a message to the log with instructions what the RAM configuration should be.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately I don&amp;#39;t think you will be able to support 20 concurrent connections in the nRF52811. When running multiple connections the RAM usage of the SoftDevice will increase considerably, and the nRF52811 has quite limited RAM available compared to the larger devices in the nRF52 family. Typically you would need something like the nRF52832 or the nRF52833 in order to run applications where you need a large number of links.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;Not sure if this is related but when I tried to build the project the following error was displayed;&lt;/p&gt;
&lt;p&gt;#error &amp;quot;Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)&amp;quot;&lt;/p&gt;[/quote]
&lt;p&gt;It is odd that changing the SoftDevice alone would introduce this error. Are you sure that there aren&amp;#39;t some other configuration changes in the project that could have caused this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>