<?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>nrf5340 BLE + custom code on NET core</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103326/nrf5340-ble-custom-code-on-net-core</link><description>Hello! 
 On a nrf5340dk devboard with NCS-2.4.1 I&amp;#39;d like to run the BLE beacon sample of Zephyr ( zephyr/samples/bluetooth/beacon ). It&amp;#39;s not a big deal to compile and burn into the flash, and it&amp;#39;s running. If I&amp;#39;m not wrong, the layout is something like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Sep 2023 08:08:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103326/nrf5340-ble-custom-code-on-net-core" /><item><title>RE: nrf5340 BLE + custom code on NET core</title><link>https://devzone.nordicsemi.com/thread/444013?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 08:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26804cf1-2af2-42e8-81d3-30b70c1dd836</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tamas,&amp;nbsp;&lt;br /&gt;My suggestion is to use&amp;nbsp;&lt;span&gt;empty_app_core&amp;nbsp;first before you try with the hello_world. It&amp;#39;s just to make sure the netcore application can run without any modification. After that you can start experiment with hello_world.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For communication between the cores, yes, nrf_rpc is recommended.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 BLE + custom code on NET core</title><link>https://devzone.nordicsemi.com/thread/443940?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 14:01:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5996d066-ef68-441d-b329-d8f98e6731a7</guid><dc:creator>Tamas Selmeci</dc:creator><description>&lt;p&gt;It&amp;#39;s sufficient if all BLE components (host, controller) are running on the NET core, so I&amp;#39;ve followed your first proposal: compiled BLE beacon sample to NET core, then compiled hello_world sample to APP core, enabled the NET core power Kconfig option in the hello_world sample and flashed them separately. This is the scenario I want to work with.&lt;/p&gt;
&lt;p&gt;As per communication between CPU cores, nrf_rpc or mbox (nrf_rpc preferred) seems to be adequate, am I right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 BLE + custom code on NET core</title><link>https://devzone.nordicsemi.com/thread/443917?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 12:36:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c454afd4-f40b-478b-996b-49542824c8d2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tamas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s actually pretty easy to do.&amp;nbsp;&lt;br /&gt;What you need to do is to find a simple BLE sample, my suggestion is to use peripheral_lbs . Build it for nrf5340dk_nrf5340_cpunet. When building a BLE application for the netcore, the hci_rpmsg will not be included.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you use empty_app_core sample to build an empty app core that forward all the peripheral control to the netcore (you will need to chang this later as you will use app core for something). Then build and flash it for the nrf5340dk_nrf5340_cpuapp&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You may need to&amp;nbsp;recover both the application core and netcore before flashing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After that you should be able to see the peripheral_lbs advertising.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Another option if you don&amp;#39;t want to run everything on the netcore and the main application still on appcore, is to take a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/rpc_host/README.html"&gt;host RPC sample&lt;/a&gt;. With this sample, you use RPC protocol instead of HCI and both the host and controller running on netcore, only the BLE service and other part of the application (peripheral_uart for example) is running on app core&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>