<?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>Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115656/using-the-nrf52820-as-ble-proxy-to-uart-spi</link><description>Hi guys, 
 we are planing to use the nRF52820 as BLE proxy to UART/SPI. It shall receive data from a host controller via UART/SPI and forward it via BLE to a smart phone. Also vice versa it will receive data from a smart phone via BLE and forward it via</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Nov 2024 10:05:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115656/using-the-nrf52820-as-ble-proxy-to-uart-spi" /><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/510062?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2024 10:05:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f90b832-0810-4f73-86b5-732722109eaa</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Artnia"] read the docs/devzone (&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/services/device_mgmt/dfu.html"&gt;device_mgmt/dfu&lt;/a&gt;, &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/108025/zephyr-mcumgr-client"&gt;zephyr-mcumgr-client&lt;/a&gt;, &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/dfu/dfu_target.html"&gt;dfu_target&lt;/a&gt;, &lt;a href="https://github.com/simon-iversen/ncs_samples/tree/master/central_smp_client_dfu"&gt;central_smp_client_dfu&lt;/a&gt;,[/quote]
&lt;p&gt;The central_smp_client_dfu sample you refer to here is also for BLE, but it&amp;#39;s unofficial and the implementation is not recommended to follow which is why I referred you to the official sample instead.&lt;/p&gt;
[quote user="Artnia"]But what I need is UART DFU. Is the link still relevant in this case?[/quote]
&lt;p&gt;The idea behind distributing the image between the server and client will be the same with the exception of the transport and the slot that you write the image to (For dual slot it is the secondary app slot, for serial recovery you instead overwrite the app in the primary app slot).&lt;/p&gt;
[quote user="Artnia"]What if the ST was an nRF? How would the solution then look like?[/quote]
&lt;p&gt;In this case you can use RPC since it&amp;#39;s supported for intercommunication between nRF SoCs (or CPUs on the same SoC) as mentioned here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrfxlib/nrf_rpc/README.html#nrf-rpc"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrfxlib/nrf_rpc/README.html#nrf-rpc&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The generic solution will still look the same.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/509939?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 15:01:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b60c501-d77a-46af-8998-d1de9e104b60</guid><dc:creator>Artnia</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;the link you provided is for BLE and states &amp;quot;This sample does not provide the means to program a device using DFU. It demonstrates the communication between SMP Client and SMP Server.&amp;quot;&lt;/p&gt;
&lt;p&gt;But what I need is UART DFU. Is the link still relevant in this case?&lt;/p&gt;
&lt;p&gt;What if the ST was an nRF? How would the solution then look like?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/509628?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2024 09:39:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3d4fd1a-81c2-4d5b-8e7b-404efb4e6c59</guid><dc:creator>AHaug</dc:creator><description>[quote user="Artnia"]thank you very much for the reply - it clarified a lot![/quote]
&lt;p&gt;Glad to hear that!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Instead of the unofficial central_smp_client_dfu solution you can look at the official sample here&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/central_smp_client/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/central_smp_client/README.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Artnia"]So my question is: How do I do UART DFU from another controller (ST) as a host to update the nRF52820?[/quote]
&lt;p&gt;Unfortunately we&amp;nbsp;generally don&amp;#39;t give support to non-Nordic products so for anything involving the ST I can&amp;#39;t help you with.&lt;/p&gt;
&lt;p&gt;A generic solution for generic mcus is that you will have to create your own firmware for the ST solution that mimics the central_smp_client (or add board support for the NCS sample) to receive the image. Then send a signal to the nrf52820 that it should enter bootloader mode for DFU procedure then distribute the image to the nrf52820 with serial recovery over UART. This will require you to write your own, custom, proprietary code for both app and bootloader that handles this.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/509464?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 13:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de1be285-5735-4cc1-b5dc-b0ec5318ad6a</guid><dc:creator>Artnia</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;thank you very much for the reply - it clarified a lot!&lt;/p&gt;
&lt;p&gt;Now the next step: I want to use the peripheral_uart sample as a base. For the nRF52820 it builds in the minimal config.&lt;/p&gt;
&lt;p&gt;Also when adding the serial recovery (single bank bootloader) via UART it fits. Following the &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/"&gt;dfu-over-uart&lt;/a&gt; tutorial I managed to update the app using mcumgr from PC to nRF. The next step is to do the same thing but this time replacing the PC by the ST as host. I read the docs/devzone (&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/services/device_mgmt/dfu.html"&gt;device_mgmt/dfu&lt;/a&gt;, &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/108025/zephyr-mcumgr-client"&gt;zephyr-mcumgr-client&lt;/a&gt;, &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/dfu/dfu_target.html"&gt;dfu_target&lt;/a&gt;, &lt;a href="https://github.com/simon-iversen/ncs_samples/tree/master/central_smp_client_dfu"&gt;central_smp_client_dfu&lt;/a&gt;, etc) but I am not sure how to solve this best.&lt;/p&gt;
&lt;p&gt;So my question is: How do I do UART DFU from another controller (ST) as a host to update the nRF52820?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Edit: I want to go with NCS not NRF5.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/508818?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2024 13:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9922eb18-27f5-4880-9e89-363097e5f087</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi again and thank you for your patience&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Artnia"]If we wanted to have the application part on a different MCU (STM as host) how can we achieve this?[/quote]
&lt;p&gt;Unfortunately we don&amp;#39;t have any&amp;nbsp;samples other than the documentation for BLE RPC that you refer to, so if you wish to achieve it you have to follow the set of steps that are listed. You would have to break down the peripheral UART and extract the application.&lt;/p&gt;
[quote user="Artnia"]What is the best way to have this flexible?[/quote]
&lt;p&gt;Evaluation of this is unfortunately something that you and your company will have to do.&lt;/p&gt;
[quote user="Artnia"]&lt;ul&gt;&lt;li&gt;Is it true that while serialization is part of nRF5 SDK, RPC is part of Connect SDK?&lt;/li&gt;
&lt;li&gt;Are they both equivalent?&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;Yes. But the terminology for serialization is still something that is present in both SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is similar to how the SoftDevice and SoftDevice Controller are two similar solutions for two different SDKs.&lt;/p&gt;
[quote user="Artnia"]Can both be used to connect the nRF chip to the STM chip?[/quote]
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/support-private/support/334788/nRF%20RPC%20is%20a%20remote%20procedure%20call%20library%20for%20enabling%20inter-processor%20communication%20on%20Nordic%20Semiconductor%20SoCs."&gt;Limitations &lt;/a&gt;&amp;nbsp;and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrf/libraries/bluetooth_services/rpc.html#dependencies"&gt;dependencies &lt;/a&gt;refer to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrfxlib/nrf_rpc/README.html#nrf-rpc"&gt;nrf-rpc&lt;/a&gt;&amp;nbsp;as a requirement which states &lt;em&gt;&amp;quot;nRF RPC is a remote procedure call library for enabling inter-processor communication on Nordic Semiconductor SoCs.&amp;quot;&amp;nbsp;&lt;/em&gt;i,e it states that it is only supported for use with nRF SoCs, i.e nRF + STM is not supported.&lt;/p&gt;
[quote user="Artnia"]Can I use RPC only with BLE and not OpenThread etc?[/quote]
&lt;p&gt;Either or AFAK. The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrf/samples/nrf_rpc/protocols_serialization/server/README.html"&gt;nRF RPC: Protocols serialization server sample&lt;/a&gt; says: &amp;quot;&lt;em&gt;&lt;span&gt;The Protocols serialization server sample implements the server part of the serialization of OpenThread, Bluetooth LE API and NFC calls between two devices that communicate with each other using the UART interface. The sample uses the&amp;nbsp;&lt;/span&gt;&lt;a title="(in nrfxlib v2.8.99)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrfxlib/nrf_rpc/README.html#nrf-rpc"&gt;&lt;span&gt;Remote procedure call library (nRF RPC)&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;and CBOR encoding to serialize function calls.&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
[quote user="Artnia"]If we decided to go this direction, what do you recommend serialization or RPC?[/quote]
&lt;p&gt;I&amp;#39;m not familiar enough with either to make any recommendations and the evaluation is something that you and your company needs to make.&lt;/p&gt;
[quote user="Artnia"]What is the difference between SoftDevice 112 and SoftDevice 113?[/quote]
&lt;p&gt;You can read more about the SoftDevices here&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/index.html"&gt;https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/index.html&lt;/a&gt;. I&amp;#39;m sure you&amp;#39;re aware of this, but as a disclaimer SoftDevice 112 and 113 are for nRF5 SDK only, while the SoftDevice Controller is for nRF Connect SDK.&lt;/p&gt;
[quote user="Artnia"]While SoftDevice (i.e. nRF5 SDK and hence not recommended for new designs) can be downloaded from the website, where can I get the equivalent (SoftDevice controller + Zeyphr Bluetooth Host)?[/quote]
&lt;p&gt;This has changed between nRF5 SDK and nRF Connect SDK, where in the previous instance the SoftDevices were designed to be more or less suitable depending on the type of device you were using as well as w.r.t how many features you needed. I.e the smaller SoftDevices had less features and required less memory footprint.&lt;/p&gt;
&lt;p&gt;In nRF Connect SDK the controller and host are included when you enable the configurations and built and included from there. They are not distributed as hexes as the SoftDevices were.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Comments to this as standalones:&lt;/strong&gt;&lt;/p&gt;
[quote user="Artnia"]nRF52820 without FOTA, only with UART bootloader with small footprint and single bank DFU[/quote]
&lt;p&gt;This is reasonable and that you do serial recovery DFU over UART for cases where you need to update the 52820&lt;/p&gt;
[quote user="Artnia"]Using serialization/RPC to have the application part on the host side. This way the nRF52820 can be used with same software in different products (GATT profiles etc. are defined in host). This way the nRF52820 would be the &amp;quot;connectivity chip&amp;quot; as described in &lt;a href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/lib_serialization.html"&gt;Serialization&lt;/a&gt;.[/quote]
&lt;p&gt;Only inter communication with nRF SoCs + a disclaimer that you will have to validate the working theory yourself&lt;/p&gt;
[quote user="Artnia"]Using the latest Connect SDK with VSC integration[/quote]
&lt;p&gt;You will struggle with adding DFU support with the exception of serial recovery over UART&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Comments to all three items together:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Same as the comments w.r.t the individual items, but with the addition that Serialization in terms of the link you&amp;#39;ve added is only for nRF5 SDK and not supported in nRF Connect SDK&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/508389?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2024 14:35:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71fe2566-2e8a-4ffb-8fef-6422926023aa</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Artnia"]I agree with you, upgrading to e.g. nRF52840 is one way to go. But as the functionality of our use case is pretty simple (just forwarding data from UART to BLE and back) we thought the nRF52820 should be enough.[/quote]
&lt;p&gt;I agree w.r.t the features: it should be simple enough, but unfortunately not with dual slot DFU in nRF Connect SDK due to how that requires to divide your applicaiton memory into two equal slot. An item that could be worth investigating is LZMA2 compression of the slot that should contain the update image:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_image_compression.html#mcuboot-image-compression"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_image_compression.html#mcuboot-image-compression&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do note that the gain with compression might vary from application to application since the gain is determined by the entropy of the application. So in some cases you might get up to 15% gain and in other cases less.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll have to get back to you w.r.t the remaining list of questions later this week since it will require a bit more extensive explanation to answer them in a manner that does not result in too much uncertainty. I&amp;#39;ll try to get back to you tomorrow&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/508208?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 14:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9d76f51-8b83-4e01-a46b-62ec18dd8f45</guid><dc:creator>Artnia</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;thanks again for the info.&lt;/p&gt;
&lt;p&gt;I agree with you, upgrading to e.g. nRF52840 is one way to go. But as the functionality of our use case is pretty simple (just forwarding data from UART to BLE and back) we thought the nRF52820 should be enough.&lt;/p&gt;
&lt;p&gt;I still have some questions, not only related to resource optimization but also in general:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;peripheral_uart&lt;/a&gt; sample contains
&lt;ol&gt;
&lt;li&gt;BLE controller&lt;/li&gt;
&lt;li&gt;BLE host&lt;/li&gt;
&lt;li&gt;BLE application&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1730125706614v1.png" alt=" " /&gt;&lt;br /&gt;That means that everything related to BLE is inside this controller and it can be used stand alone. If we wanted to have the application part on a different MCU (STM as host) how can we achieve this? Background is having the nRF52820 with the same software (STM with different software) in different products. And different products can have different GATT profiles etc. What is the best way to have this flexible?&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/lib_serialization.html"&gt;Serialization&lt;/a&gt;/ &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrf/libraries/bluetooth_services/rpc.html#ble-rpc"&gt;RPC&lt;/a&gt;:
&lt;ol&gt;
&lt;li&gt;Is it true that while serialization is part of nRF5 SDK, RPC is part of Connect SDK?&lt;/li&gt;
&lt;li&gt;Are they both equivalent?&lt;/li&gt;
&lt;li&gt;Can both be used to connect the nRF chip to the STM chip?&lt;/li&gt;
&lt;li&gt;Can I use RPC only with BLE and not OpenThread etc?&lt;/li&gt;
&lt;li&gt;If we decided to go this direction, what do you recommend serialization or RPC?&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;SoftDevice
&lt;ol&gt;
&lt;li&gt;What is the difference between SoftDevice 112 and SoftDevice 113?&lt;/li&gt;
&lt;li&gt;Is the following correct (taken from &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;Comparison nRF5 SDK vs. nRF Connect SDK&lt;/a&gt;)?&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1730126301600v4.png" alt=" " /&gt;&lt;/li&gt;
&lt;li&gt;While SoftDevice (i.e. nRF5 SDK and hence not recommended for new designs) can be downloaded from the website, where can I get the equivalent (SoftDevice controller + Zeyphr Bluetooth Host)?&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1730126168787v2.png" alt=" " /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In summary the &lt;strong&gt;current&lt;/strong&gt; idea (can change if things get clearer) is to go with the following setup. Is this reasonable?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nRF52820 without FOTA, only with UART bootloader with small footprint and single bank DFU&lt;/li&gt;
&lt;li&gt;Using serialization/RPC to have the application part on the host side. This way the nRF52820 can be used with same software in different products (GATT profiles etc. are defined in host). This way the nRF52820 would be the &amp;quot;connectivity chip&amp;quot; as described in &lt;a href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/lib_serialization.html"&gt;Serialization&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Using the latest Connect SDK with VSC integration&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/507931?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2024 12:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f98bf836-a7dd-46a3-88e6-5ada5513ec91</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I see now where the confusion occurred. The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrf/samples/nrf_rpc/protocols_serialization/server/README.html#nrf-rpc-protocols-serialization-server)"&gt;sample &lt;/a&gt;you refer to, which uses the protocol serialization is only using RPC, i.e it is an OpenThread device.&lt;/p&gt;
&lt;p&gt;But anyways. As I understand the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrfxlib/nrf_rpc/README.html#nrf-rpc"&gt;Remote Procedure&lt;/a&gt;&amp;nbsp;call library is in theory something that &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;could&lt;/em&gt; &lt;/span&gt;work to fix your limited memory issue, but I&amp;#39;m struggling with how to see that this is the best solution. It would require you to split up your code base, create an intrical custom DFU solution and to introduce another Nordic MCU to your project instead of simply choosing a MCU with more memory.&lt;/p&gt;
&lt;p&gt;I assume that you&amp;#39;re so hesitant w.r.t upgrading the 52820 to an 52840 due to this being a product that is already in the field and/or has a finalized design and that you consider the only solution to be a software fix instead of a hardware upgrade. But if you&amp;#39;re still in development it would be easier and less time consuming to swap the SoC that is flash limited in the first place since you&amp;#39;re already considering introducing another MCU&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As a disclaimer, it will be up to you, the developer and customer, to design your product and it is none of my business how you decide to do so, but this sounds like a solution that will cause you quite a bit of technical debt as well as an increase in development cost.&amp;nbsp;The general recommendation we give is to start with the largest device in the family of SoC&amp;#39;s you&amp;#39;re considering using for development, for instance the nRF52840. When you finalized the feature list and see the ROM/RAM and general BoM and see that you can fit your project within a smaller device then first at this point in time consider if you want to downgrade to for instance the nRF52833 with 512kB flash memory and less RAM than the nRF52840.&lt;/p&gt;
&lt;p&gt;To summarize, I don&amp;#39;t want to recommend you to use RPC with the nRF52820 and a second MCU but you are free to evaluate this solution on your own&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/507769?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 13:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f4a1894-9c53-43e2-98d3-7aa4b1449d5f</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Ah, would you look at that. I was too quick when scanning over the hardware platforms:&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1729776206185v1.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You are right, the 52820 is present in the list of supported devices so it should work. I also see I was to quick when reading &amp;quot;RPC&amp;quot;, again, my bad.&lt;br /&gt;&lt;br /&gt;I will read to your query once more and look up some information w.r.t this&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll get back to you before the weekend&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/507753?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 12:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f966cfd-623a-4290-9b6c-2b758df23ba6</guid><dc:creator>Artnia</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;I assume that the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;peripheral_uart&lt;/a&gt; sample is available for the nrf52820 not only because the link you posted says so (&amp;quot;The boards &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;nrf52dk_nrf52810&lt;/span&gt;&lt;/code&gt;, &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;nrf52840dk_nrf52811&lt;/span&gt;&lt;/code&gt;, and &lt;strong&gt;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;nrf52833dk_nrf52820&lt;/span&gt;&lt;/code&gt;&lt;/strong&gt; only support the &lt;a class="reference internal" href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/samples/bluetooth/peripheral_uart/README.html#minimal-sample-variant"&gt;Minimal sample variant&lt;/a&gt;.&amp;quot;) but also because it is listed under compatible boards in VSC:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1729773388897v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Digging deeper in &lt;a class="reference internal" href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/samples/bluetooth/peripheral_uart/README.html#minimal-sample-variant"&gt;Minimal sample variant&lt;/a&gt; the documentation leads to &lt;a class="reference internal" href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/samples/bluetooth/peripheral_uart/README.html#peripheral-uart-sample-activating-variants"&gt;&lt;span class="std std-ref"&gt;Experimental Bluetooth Low Energy Remote Procedure Call interface&lt;/span&gt;&lt;/a&gt;. That is why I came up with this idea of using RPC (NOT RCP!). In general we need only a BLE UART Proxy (not OpenThread, etc.) functionality. But as the peripheral_uart sample did not build due to footprint (especially with FOTA requirement) we try to find some other way. This is where we thought about serialization.&lt;/p&gt;
&lt;p&gt;Not sure whether I am mixing things up. I am thankful for clarification.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Artur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/507690?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 08:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd2fe6fc-63f3-49a9-8ea1-14b9dabd6ebe</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see I missed to clarify one of your initial questions:&lt;/p&gt;
[quote user=""]Why is the sample available for the nrf52820 but does not build out of the box?[/quote]
&lt;p&gt;The&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;peripheral_uart&lt;/a&gt;&amp;nbsp;sample is not supported on the nRF52820. I&amp;#39;m not sure where you&amp;#39;ve seen that information, but if it is through the &amp;quot;create build configuration&amp;quot; action in the extension, then the answer is that all boards are available for selection if you press &amp;quot;all boards&amp;quot;, but not all boards are supported in all samples.&lt;/p&gt;
[quote user="Artnia"]Is it possible to port some of the functionalities to the host controller, instead of having them on the nRF52820?[/quote]
&lt;p&gt;This is a bit too vague for me to give you an answer about. Please specify what functionalities you would like to port if you still want an answer for this item&lt;/p&gt;
[quote user="Artnia"]Do you consider using one of them as another solution for our problem?[/quote]
&lt;p&gt;Hmm, no I would not say that I consider this a solution for your problem. RCP will cause you to also include OpenThread to your devices, which in turn will require more memory consumption. In addition, OpenThread is not supported for any devices with less than 1MB of internal memory, meaning that any SoC that are smaller in memory than the nRF52840 is not supported.&lt;/p&gt;
[quote user="Artnia"]How do I test their footprint on the nRF52820 as neither Serialization nor RPC is available for the nRF52820?[/quote]
&lt;p&gt;As mentioned, OpenThread is not supported for the nRF52820 so if you wish to test this for that SoC, then you will have to add this support on your own. Unfortunately, we won&amp;#39;t be able to help you with this.&lt;/p&gt;
[quote user="Artnia"]The path on my drive is .../ncs/v2.7.0/nrf/samples/nrf_rpc/entropy_nrf53/ while according to the doc (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrf/samples/nrf_rpc/protocols_serialization/server/README.html#nrf-rpc-protocols-serialization-server)"&gt;developer.nordicsemi.com/.../README.html&lt;/a&gt; it should be samples/nrf_rpc/protocols_serialization/server. Is something broken here?[/quote]
&lt;p&gt;1) The path in the documentation URL and the repository path may differ some time. The documentation uses different names than the &lt;a href="https://github.com/nrfconnect"&gt;github repo for NCS&lt;/a&gt;, which in turn is what you see in the local SDK instance on your computer.&lt;/p&gt;
&lt;p&gt;2) You&amp;#39;re comparing NCS v2.7.0 path with the NCS-latest documentation. These are not the same thing. From what I can see, the serialization sample will either not be added before the next release of the SDK or it will be restructured and added elsewhere.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/507655?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 20:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a90c54b1-b9c3-49c2-92e2-cdab915eec92</guid><dc:creator>Artnia</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;thanks for clarifying.&lt;/p&gt;
&lt;p&gt;Is it possible to port some of the functionalities to the host controller, instead of having them on the nRF52820?&lt;/p&gt;
&lt;p&gt;Specifically Serialization (&lt;a id="" href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/lib_serialization.html)"&gt;https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/lib_serialization.html)&lt;/a&gt; and RPC (&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrfxlib/nrf_rpc/README.html)"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrfxlib/nrf_rpc/README.html)&lt;/a&gt; are things that we are considering. I am not quiet sure about the relationship of these two.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Do you consider using one of them as another solution for our problem?&lt;/li&gt;
&lt;li&gt;Is Serialization part of NRF5 SDK while RPC is part of Connect SDK?&lt;/li&gt;
&lt;li&gt;How do I test their footprint on the nRF52820 as neither Serialization nor RPC is available for the nRF52820?&lt;/li&gt;
&lt;li&gt;The path on my drive is .../ncs/v2.7.0/nrf/samples/nrf_rpc/entropy_nrf53/ while according to the doc (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrf/samples/nrf_rpc/protocols_serialization/server/README.html#nrf-rpc-protocols-serialization-server)"&gt;developer.nordicsemi.com/.../README.html&lt;/a&gt; it should be samples/nrf_rpc/protocols_serialization/server. Is something broken here?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nrf52820 as BLE proxy to UART/SPI</title><link>https://devzone.nordicsemi.com/thread/507137?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 12:46:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f03f496-079b-4f04-be46-f92424dcf67f</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you wish to do FOTA and have support for BLE and dual bank dfu, then you will need either an external flash or an SoC with more flash.&lt;/p&gt;
&lt;p&gt;FOTA DFU requires dual bank, meaning that your application can be maximum the approx size of ~95% of (the total flash available - mcuboot flash) / 2&lt;br /&gt;&lt;br /&gt;Example for the nRF52840 with a 48kB MCUboot:&lt;br /&gt;&lt;br /&gt;Application size = 95% of (1024kB -48kB) / 2 ~ 465kB (not included setting partitions and other storage partitions). Do note that you can optimize MCUboot to be smaller.&lt;/p&gt;
&lt;p&gt;Similar exercise for the 52820 will leave you with an max app size of &amp;lt; 100kB not including settings and custom partitions.&lt;/p&gt;
&lt;p&gt;Solution:&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Chip with more internal memory&lt;/li&gt;
&lt;li&gt;External flash&lt;/li&gt;
&lt;li&gt;Don&amp;#39;t do BLE FOTA but use serial recovery and single bank instead (not recommended)&lt;/li&gt;
&lt;li&gt;See&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize.html&lt;/a&gt;&amp;nbsp;if you are able to reduce the application size to be less than the what I mentioned were the maximum application size&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>