<?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>Porting source code from nRF52832 single core to nRF5340 dual core</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101536/porting-source-code-from-nrf52832-single-core-to-nrf5340-dual-core</link><description>I would like to port source code from nRF52832 single core to nRF5340 dual core. Do I need to change code for maximizing dual core performance?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jul 2023 06:38:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101536/porting-source-code-from-nrf52832-single-core-to-nrf5340-dual-core" /><item><title>RE: Porting source code from nRF52832 single core to nRF5340 dual core</title><link>https://devzone.nordicsemi.com/thread/435389?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 06:38:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:231ec13d-f587-440c-b7f1-941cf6dc77f7</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;No problem. If you don&amp;#39;t have any other questions on this topic, please feel free to close this case at your convenience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting source code from nRF52832 single core to nRF5340 dual core</title><link>https://devzone.nordicsemi.com/thread/435342?ContentTypeID=1</link><pubDate>Sat, 08 Jul 2023 01:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0430459e-aa97-43ae-ad03-d77a4867bef3</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting source code from nRF52832 single core to nRF5340 dual core</title><link>https://devzone.nordicsemi.com/thread/435317?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 16:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02e590e7-40c6-45a9-b7c0-607d2005fa14</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;In BLE sample, most often the&amp;nbsp;application for the Network Core is built from the HCI RPMsg sample as a child image. As mentioned before, please try to go over the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/nrf53.html"&gt;Working with the nRF53 Series&lt;/a&gt;&lt;span&gt;&amp;nbsp;guides. It will explain most concepts that are important for beginner and save you much effort.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting source code from nRF52832 single core to nRF5340 dual core</title><link>https://devzone.nordicsemi.com/thread/435132?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 07:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2baec16c-3639-4d66-8477-4fa2009f3a34</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3731.minimal_5F00_log_5F00_nus.zip"&gt;devzone.nordicsemi.com/.../3731.minimal_5F00_log_5F00_nus.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting source code from nRF52832 single core to nRF5340 dual core</title><link>https://devzone.nordicsemi.com/thread/435131?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 07:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f090873f-17ec-47fd-acd0-93baa9f26f12</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3731.minimal_5F00_log_5F00_nus.zip"&gt;minimal_log_nus.zip&lt;/a&gt; is sample for NUS sending data to iOS Nordic toolbox APP. And I follow below procedure to build and flash image. But I didn&amp;#39;t write any code for Network Core. Did I miss something for nRF5340 development?&lt;/p&gt;
&lt;p&gt;1. Unzipping &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3731.minimal_5F00_log_5F00_nus.zip"&gt;minimal_log_nus.zip&lt;/a&gt;&lt;br /&gt;2. cd minimal_log_nus&lt;br /&gt;3. west build -b nrf5340dk_nrf5340_cpuapp&lt;br /&gt;4. west flash&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting source code from nRF52832 single core to nRF5340 dual core</title><link>https://devzone.nordicsemi.com/thread/435092?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 22:35:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80c0f036-9dbe-45ec-86f6-720de7a8bb30</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I have a feeling you might be expecting to use have one application running on both cores of the nRF5340 to improve performance. Please be informed that it is not the intended purpose of the dual core design on the nRF5340.&lt;/p&gt;
&lt;p&gt;On the nRF5340, the cores are named Application Core and Network Core. As the names suggested, they are designed to handle jobs specific to the application and networking, respectively.&lt;/p&gt;
&lt;p&gt;For example, for most if not all of our BLE samples, only the BLE Controller runs on the Network Core. The BLE Host and the application runs on the Application Core.&lt;/p&gt;
&lt;p&gt;Thus, &lt;em&gt;&lt;strong&gt;for the most part&lt;/strong&gt;&lt;/em&gt;, you don&amp;#39;t&amp;nbsp;need API changes. In detail though, it is hard to say whether there is any change in API necessary or not without in-depth knowledge of your application. I am afraid this will have to be an exploring process for you.&lt;/p&gt;
&lt;p&gt;For an example of no change needed, &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/zephyr/samples/bluetooth/beacon/README.html"&gt;the BLE Beacon sample&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For an example of changes needed, the nrfx HAL API for the RESETREAS register changed (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/nrfx/drivers/power/hal.html#c.nrf_power_resetreas_get"&gt;nRF52&lt;/a&gt; vs &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/nrfx/drivers/reset/hal.html#c.nrf_reset_resetreas_get"&gt;nRF53&lt;/a&gt;), because the location of the register changed.&lt;/p&gt;
&lt;p&gt;I recommend you&amp;nbsp;go over&amp;nbsp;our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/nrf53.html"&gt;Working with the nRF53 Series&lt;/a&gt; guides and then run a few basic BLE samples to get a feeling of things.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting source code from nRF52832 single core to nRF5340 dual core</title><link>https://devzone.nordicsemi.com/thread/434812?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 01:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcb12130-3339-443f-a635-d99b6241abc9</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! I am using Ncs v2.3.0 for nRF52832 and nRF5340. Do I need to do api change for nRF5340? Besides, which sample code do you suggest for new comer of nRF5340?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting source code from nRF52832 single core to nRF5340 dual core</title><link>https://devzone.nordicsemi.com/thread/434790?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 18:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb13d591-2624-4bd2-9736-2fcf5dda64ff</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;That depends on many things.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you are using nRF Connect SDK (NCS) on nRF52832 aswell, and assuming that you want to port application to NCS of the same version you were using, then most of the source code remains similar on the code for nRF5340 but you need to change some settings for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#split-controller-and-host"&gt;splitting the controller and host &lt;/a&gt;on two different cores.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;If your application on nRF52832 was made on older version of NCS and you want to port to a newer version of NCS for nRF5340, then there might be API changes.&lt;/li&gt;
&lt;li&gt;If you were using nRF5SDK on nRF52840, then you need to move to NCS for nRF5340 and that is a whole different beast of porting effort that needs considerable architectural changes along with a lot of changes in your application to adapt to new API.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>