<?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>I have several questions about 52811</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103245/i-have-several-questions-about-52811</link><description>Hello Nordic engineer, 
 
 I use SDK15.3.0 and Keil 
 52811 have ROM 192K and RAM 24K 
 Questions 1：I&amp;#39;d like to know how much RAM and ROM does softdevice（BLE） occupy? 
 Questions 2：In SDK example, If a certain example doesn&amp;#39;t have &amp;quot;p10056e,&amp;quot; how many</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Sep 2023 09:26:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103245/i-have-several-questions-about-52811" /><item><title>RE: I have several questions about 52811</title><link>https://devzone.nordicsemi.com/thread/445792?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2023 09:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0e9f577-6599-44af-8133-2a1884b66420</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="tony55723"]This webpage displays“Unfortunately, the page you&amp;#39;ve requested no longer exists”...[/quote]
&lt;p&gt;Sorry, I must have copy-pasted the wrong link. The correct is here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_crypto_config.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_crypto_config.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This explains configuration&amp;nbsp;the crypto libraries.&lt;/p&gt;
[quote user="tony55723"]I would like to ask a question first, why is it &amp;#39;enable&amp;#39;? Because the chip I need to use is 52811, but due to insufficient capacity, I should need more &amp;#39;disable&amp;#39;?[/quote]
&lt;p&gt;You started off with an example project for nRF52840, which is the &amp;quot;biggest&amp;quot; nRF52 series device, and that included CryptoCell which is a hardware accelerator. So you need to disable CryptoCell in sdk_config.h as it is simply not present on your hardware. However, if you want/need LESC (?), you need&amp;nbsp;crypto libraries for some features as discussed earlier in this thread. If you take a look at the pca10040 example project you will see that it does not use CryptoCell, but rely on other libraries (primarily Oberon). You can do that as well, but you will get a even smaller flash usage if you use micro-ecc. If you disable all&amp;nbsp;crypto related libraries, you will get build errors like those you have here, as that is needed for LESC. That said, if you don&amp;#39;t need LESC, you can also remove the crypto libreries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have several questions about 52811</title><link>https://devzone.nordicsemi.com/thread/445509?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 02:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38f9f373-dc17-4451-9714-6aea86d0bc0c</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;Hi&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Einar&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your reply&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/1881.q5.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I made a new copy of the example, which is also considered &amp;#39;put them back in&amp;#39;, right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When modifying &amp;#39;NRF_CRYPT0_BACKEND_CC310ENABLED&amp;#39; to 0, there was still a compilation error. I should have made more modifications, but I am not sure about the direction of the modifications...&lt;/span&gt;&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/103245/i-have-several-questions-about-52811/445305"] See &lt;a href="https://devzone.nordicsemi.com/support-private/support/313711/Configuring%20nrf_crypto%20frontend%20and%20backends"&gt;Configuring nrf_crypto frontend and backends&lt;/a&gt;.[/quote]
&lt;p&gt;&lt;span&gt;This webpage displays&amp;ldquo;Unfortunately, the page you&amp;#39;ve requested no longer exists&amp;rdquo;...&lt;/span&gt;&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/103245/i-have-several-questions-about-52811/445305"]The main&amp;nbsp;crypto configs&amp;nbsp;you&amp;nbsp;would want to enable are:[/quote]
&lt;p&gt;&lt;span&gt;I would like to ask a question first, why is it &amp;#39;enable&amp;#39;? Because the chip I need to use is 52811, but due to insufficient capacity, I should need more &amp;#39;disable&amp;#39;?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have several questions about 52811</title><link>https://devzone.nordicsemi.com/thread/445305?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 07:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93b9947a-eb59-4d49-be14-e3097caecb06</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, LESC requiers nrf_crypto for the&amp;nbsp;Diffie–Hellman key exchange. So it is expected that you get errors when you delete these parts. You should put them back in. You can keep all these files and includes in the project, the only thing you need to change is the configuration in sdk_config.h, where you remove cc310 by setting&amp;nbsp;NRF_CRYPTO_BACKEND_CC310_ENABLED to 0, and enabling alternate backend support for the requiered operations instead. See &lt;a href="https://devzone.nordicsemi.com/support-private/support/313711/Configuring%20nrf_crypto%20frontend%20and%20backends"&gt;Configuring nrf_crypto frontend and backends&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The main&amp;nbsp;crypto configs&amp;nbsp;you&amp;nbsp;would want to enable are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED&lt;/li&gt;
&lt;li&gt;NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED&lt;/li&gt;
&lt;li&gt;NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED&lt;/li&gt;
&lt;li&gt;NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I may have forgotten some configs, but you can take a look at some example sdk_config.h files (don&amp;#39;t pick one from a project for nRF52840), and look at the build errors to see what is missing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have several questions about 52811</title><link>https://devzone.nordicsemi.com/thread/445261?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 00:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88af49f1-77b6-4113-b44d-c26cd1c12ccc</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;Hi&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Einar&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your reply&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/6278.q4.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Multiple errors occurred after deleting the red box&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Another question, does Crypto seem to be related to Lesc?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have several questions about 52811</title><link>https://devzone.nordicsemi.com/thread/444747?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 14:12:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f53c0ad-9cb3-45ae-8445-448bda3f9ccd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="tony55723"]Can you tell me which folder in Nordic classifies &amp;quot;Services&amp;quot; under?[/quote]
&lt;p&gt;I was referring to BLE servics (you mentionned HRS). Generally, remove anything you don&amp;#39;t need. Another thing I did not mention but which is imporatnt when it comes to size is logging. Make sure to disable logging by setting&amp;nbsp;NRF_LOG_ENABLED to 0 in your sdk_config.h.&lt;/p&gt;
[quote user="tony55723"]What you mentioned, &amp;quot;NRF_CRYPTO_BACKEND_OBERON_ENABLED,&amp;quot; is set to 0 in the &amp;quot;ble_app_multirole_lesc&amp;quot; that I&amp;#39;m using, and I haven&amp;#39;t made any code modifications yet. This means it&amp;#39;s in a disabled state. Another one, &amp;quot;NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED,&amp;quot; is also set to 0. So, do I need to change it to 1 to enable it, right?[/quote]
&lt;p&gt;I did not notice tha tyou were developing on an nRF52840 (or at least have started with a project for that device). That has CryptoCell, which is a HW accelerator, and in&amp;nbsp;that case it is what will be enabled. That is not present on the nRF52811, so you need to disable that. And as LESC needs some crypto features, you need to enable another backend instead. And the backend that will give you the lowest flash usage is micro-ecc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have several questions about 52811</title><link>https://devzone.nordicsemi.com/thread/444672?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 09:21:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b3d42cc-135a-4425-9518-ff3e1fbcda24</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Einar&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your reply&lt;/span&gt;&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/7558.q2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you tell me which folder in Nordic classifies &amp;quot;Services&amp;quot; under?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/8228.q3.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What you mentioned, &amp;quot;NRF_CRYPTO_BACKEND_OBERON_ENABLED,&amp;quot; is set to 0 in the &amp;quot;ble_app_multirole_lesc&amp;quot; that I&amp;#39;m using, and I haven&amp;#39;t made any code modifications yet. This means it&amp;#39;s in a disabled state. Another one, &amp;quot;NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED,&amp;quot; is also set to 0. So, do I need to change it to 1 to enable it, right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Additional note: When I mentioned that I haven&amp;#39;t made any modifications, it means that after extracting the SDK, I&amp;#39;m using the example as it is, without any changes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have several questions about 52811</title><link>https://devzone.nordicsemi.com/thread/444630?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 07:09:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23d591c8-b84b-43bb-ace8-916c8fd71137</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Generally, you should remove any library and feature you do not need, such as services. You may also be able to save quite a bit of space by using a different crypto library. The default configuration of the sample use oberon for elliptice curve crypto (needed in LESC), but you can use micro_ecc instead by disabling&amp;nbsp;NRF_CRYPTO_BACKEND_OBERON_ENABLED in sdk_config.h and enabling&amp;nbsp;NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED (see &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_crypto_config.html"&gt;Configuring nrf_crypto frontend and backends&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have several questions about 52811</title><link>https://devzone.nordicsemi.com/thread/444606?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 03:15:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c592a21d-1d25-4efb-bd22-d4e7475f9036</guid><dc:creator>tony55723</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thank you for your reply&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I ultimately want to implement &amp;#39;ble_app_multirole_lesc&amp;#39; + &amp;#39;UART&amp;#39;. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regarding the addition of UART functionality, I will figure it out myself. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, due to the &amp;#39;ble_app_multirole_lesc&amp;#39; consuming approximately 100KB of ROM and 26KB of RAM, which exceeds the capacity of the 52811, could you provide me with some keywords to know which library functions can be deleted, such as &amp;#39;HRS&amp;#39;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have several questions about 52811</title><link>https://devzone.nordicsemi.com/thread/443554?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 12:20:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77d07d71-8446-4c1a-bea3-155196f8b166</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Questions 1：I&amp;#39;d like to know how much RAM and ROM does softdevice（BLE） occupy?[/quote]
&lt;p&gt;The amount of ROM (flash) used by the SoftDevice differs for different versions. You can see that in the release notes from each SoftDevice version that is part of the SoftDevice zip and where you find the SoftDevices in the SDK(for instance under&amp;nbsp;components/softdevice/s112/doc for S112). If for&amp;nbsp;instence the size of your SoftDevice is&amp;nbsp;0x19000 (100 kB), that means that the start address of the application must be&amp;nbsp;0x19000, as it must start immediately after the SoftDevice. (So your screenshot where the application start address is 0 is not going to work). The RAM usage is a bit more complex and depends on the SoftDevice configuration, and is best found experimentally. See &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;Adjustment of RAM and Flash memory&lt;/a&gt;&amp;nbsp;for details.&lt;/p&gt;
[quote user=""]Questions 2：In SDK example,&amp;nbsp;If a certain example doesn&amp;#39;t have &amp;quot;p10056e,&amp;quot; how many steps do I need to take to go from p10056 to p10056e?[/quote]
&lt;p&gt;pca10056e projects are for the nRF52840 DK, but emulating nRF52811, mostly meaning that the projects are configured for that device peripherals and memory (see &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/nrf52811_user_guide.html"&gt;Developing for nRF52811&lt;/a&gt;&amp;nbsp;for details). You can refer to &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/nrf52811_user_guide.html?cp=9_1_5_1_2_0#ug_52811_own_project"&gt;Creating your own emulated project&lt;/a&gt;&amp;nbsp;for how to convert a pca10056 project to pca10056e. These projects&amp;nbsp;need further adjustments in order to run on&amp;nbsp;an actual nRF52811, as explained under &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/nrf52811_user_guide.html?cp=9_1_5_1_3#ug_52811_project"&gt;Transferring the project to nRF52811 hardware&lt;/a&gt;.&lt;/p&gt;
[quote user=""]Questions 3：If I want to achieve functionality similar to that of &amp;quot;ble_app_uart,&amp;quot; but it&amp;#39;s necessary to have both center and peripheral roles, I looked at &amp;quot;ble_app_multirole_lesc.&amp;quot; In the diagram below, can the highlighted section within the red box be removed?[/quote]
&lt;p&gt;You can remove&amp;nbsp;most of these if you don&amp;#39;t need them (and remove other code&amp;nbsp;related as well, not jut the init functions). One exception is the qwr module, as that can be usefull (unless you want to handle some events yourself). Generally, this approach makes sense. Pick a example that does most of what you need, and remove everything you don&amp;#39;t need, then add your additional stuff.&lt;/p&gt;
&lt;p&gt;One thing though. Are you starting a new project now? If so, I would consider using the nRF Connect SDK instead, which is the SDK that is currently being actively developed. Also, if you want to stick with the nRF5 SDK for some reason, I would consider going for nRF5 SDK 17.1.0, which is the latest and has the most resent bug fixes etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>