<?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>Application and code example for using two cores in nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106065/application-and-code-example-for-using-two-cores-in-nrf5340</link><description>Is there an example of how to develop an application using the nRF5340 demonstrating how to use the two cores when developing an application? I am using the nRF Connect for VSCode add-in. 
 I have read Developing with nRF5340 DK where it introduces the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Dec 2023 12:17:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106065/application-and-code-example-for-using-two-cores-in-nrf5340" /><item><title>RE: Application and code example for using two cores in nRF5340</title><link>https://devzone.nordicsemi.com/thread/459163?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 12:17:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3947e9b6-f2c6-4463-a3e2-29f3cb648889</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Do you see any reference to rpmsg in the build log?&lt;/p&gt;
&lt;p&gt;If you want insight on the memory usage per thread, you can use Zephyr&amp;#39;s &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/zephyr/services/debugging/thread-analyzer.html#thread-analyzer"&gt;Thread Analyzer&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application and code example for using two cores in nRF5340</title><link>https://devzone.nordicsemi.com/thread/459157?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 12:00:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a9e1bab-f392-42c4-8c33-0dc35f0963cb</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;I built an app using the nRF connect for VSC addin and based it on the cpuapp board. I have built ble connectivity into it but I don&amp;#39;t think I did it any differently than if I were on a single core board. It&amp;#39;s working but I&amp;#39;m not really sure why and if there are memory constraints when I am doing work on a ble thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application and code example for using two cores in nRF5340</title><link>https://devzone.nordicsemi.com/thread/457866?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 13:25:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a25579d-2533-4f84-a0ae-6ecb73d7bb29</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi again, &lt;/p&gt;
[quote user=""]Does the HCI RPMsg receive the bluetooth communication and pass it off to peripheral_lbs? How does it work?[/quote]
&lt;p&gt;In &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/zephyr/connectivity/bluetooth/bluetooth-arch.html"&gt;this documentation&lt;/a&gt; you can read about the Bluetooth Stack Architecture. It contains an overview of the dual-chip configuration which is the configuration normally used with the nRF5340 (controller on the network core and host on the application core).&lt;/p&gt;
&lt;p&gt;HCI RPMsg is based on OpenAMP which has its documentation and source code &lt;a href="https://github.com/OpenAMP/open-amp/"&gt;here&lt;/a&gt;.&lt;/p&gt;
[quote user=""]Is there an example of how to develop an application using the nRF5340 demonstrating how to use the two cores when developing an application?[/quote]
&lt;p&gt;I recommend that you use &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/keyfeatures_html5.html?cp=4_0_0"&gt;the product specification&lt;/a&gt; and the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v3.4.99-ncs1/dts/arm/nordic"&gt;.dtsi&lt;/a&gt; for the nRF5340 (nrf5340_cpuapp* and nrf5340_cpunet*) to get familiar with which peripherals are available for each core. For example: the application core does not have access to the radio peripheral which is why the dual-chip configuration is used for the Bluetooth stack.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application and code example for using two cores in nRF5340</title><link>https://devzone.nordicsemi.com/thread/457597?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 14:27:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28b03988-ed74-46b3-ae76-615d83f5df55</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have picked up this case and will answer some of it today. Tomorrow I will elaborate and address the rest.&lt;/p&gt;
[quote user=""]What I do not understand is how the code needs to change in the peripheral_lbs and&amp;nbsp;HCI RPMsg?[/quote]
&lt;p&gt;The general answer: When CONFIG_BT=y in your project configuration (prj.conf) and the build target is the nRF5340 application core, HCI RPMsg will automatically be built for the network core.&lt;/p&gt;
&lt;p&gt;The specific answer: Peripheral LBS has CONFIG_BT=y in prj.conf which means the HCI RPMsg sample will automatically be built for the nRF5340 network core when Peripheral LBS is built for the nRF5340 application core. So there is no need to change anything in either sample.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>