<?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>nRF53 BLE in cpunet</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86575/nrf53-ble-in-cpunet</link><description>I am attempting to write my own nRF5340 cpunet bootloader using nRF Connect. 
 This code is likely to be in a medical device; so, it is crtiical to be able to recover from faults, particularly exclusively via BLE. In the case that the application (in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Apr 2022 06:58:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86575/nrf53-ble-in-cpunet" /><item><title>RE: nRF53 BLE in cpunet</title><link>https://devzone.nordicsemi.com/thread/364814?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 06:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:206ccec6-e4df-4dae-8d03-f5ffb77585ac</guid><dc:creator>AntonD</dc:creator><description>&lt;p&gt;This worked. I just wanted to add that I needed to run/debug an application on the cpuapp core to allow debugging (as said on numerous other boards that I won&amp;#39;t reference here).&lt;/p&gt;
&lt;p&gt;VS Code is able to debug both cpuapp and cpunet with BLE behaviour now. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 BLE in cpunet</title><link>https://devzone.nordicsemi.com/thread/362035?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 10:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62cc7139-22f8-423f-a80e-f12c08aedd57</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AntonD"]the cpunet core doesn&amp;#39;t even appear as a compatible board[/quote]
&lt;p&gt;It&amp;#39;s not officially tested to be built for that, but you can still select the net core by selecting e.g. Nordic boards.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1649240437760v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="AntonD"]to the main.c, then it doesn&amp;#39;t link (see above).[/quote]
&lt;p&gt;Maybe you missed something like this at the top of main.c ?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;bluetooth/bluetooth.h&amp;gt;
#include &amp;lt;bluetooth/hci.h&amp;gt;
#include &amp;lt;bluetooth/conn.h&amp;gt;
#include &amp;lt;bluetooth/uuid.h&amp;gt;
#include &amp;lt;bluetooth/gatt.h&amp;gt;&lt;/pre&gt;&lt;/p&gt;
[quote user="AntonD"]Can you let me know what example you are starting from? Do any of them include the device acting as a BLE peripheral?[/quote]
&lt;p&gt;I tested building e.g the beacon sample in the zephyr repo, and the peripheral_lbs&amp;nbsp;sample in the (sdk)-nrf repo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 BLE in cpunet</title><link>https://devzone.nordicsemi.com/thread/361934?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 01:45:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fbeccae-876b-4ad3-aa02-c46d7b58f744</guid><dc:creator>AntonD</dc:creator><description>&lt;p&gt;Hey. I cannot see any BLE peripheral examples that compile onto the nrf5340dk_nrf5340_cpunet. For example, if I try and build &amp;quot;peripheral_bms&amp;quot; on v1.9.1, then the cpunet core doesn&amp;#39;t even appear as a compatible board:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649208954155v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If, however, I start with another example (say hello_world) and add the following to prj.conf&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;/span&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_BT=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_BT_HCI_RAW=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_BT_MAX_CONN=16&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_BT_CTLR_ASSERT_HANDLER=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_BT_HCI_RAW_RESERVE=1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_BT_RPC_STACK=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;and add&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_enable(NULL);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;to the main.c, then it doesn&amp;#39;t link (see above).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Can you let me know what example you are starting from? Do any of them include the device acting as a BLE peripheral?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 BLE in cpunet</title><link>https://devzone.nordicsemi.com/thread/361917?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 18:16:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0d45217-33c4-474f-bdcc-f79ea3f7b1d7</guid><dc:creator>Sigurd</dc:creator><description>[quote user="AntonD"]For example, if I add in bluetooth behaviour (CONFIG_BT=y in the prj.conf) and try to call &amp;quot;bt_enable&amp;quot; in the network core, the linker complains that it is an undefined reference.[/quote]
&lt;p&gt;Using nRF Connect SDK v1.9.1, I tried building a few Bluetooth samples for&amp;nbsp;nrf5340dk_nrf5340_cpunet. I did not see this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 BLE in cpunet</title><link>https://devzone.nordicsemi.com/thread/361627?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 22:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:510c1379-f85b-4627-99b3-bea90be6039a</guid><dc:creator>AntonD</dc:creator><description>&lt;p&gt;The link you gave me shows how to perform BLE actions from the app core via the netcore. The code won&amp;#39;t work from the net core. As in the question, the app core may not be functional. I want to run custom BLE behaviour &lt;em&gt;directly on the network core&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;For example, if I add in bluetooth behaviour (CONFIG_BT=y in the prj.conf) and try to call &amp;quot;bt_enable&amp;quot; in the network core, the linker complains that it is an undefined reference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 BLE in cpunet</title><link>https://devzone.nordicsemi.com/thread/361477?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 11:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:969d274a-1fa6-494d-a314-528e6174710e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]The questions is, is it possible to access the BLE behaviour exclusively from the cpunet core?[/quote]
&lt;p&gt;Yes, you can run the the full Bluetooth LE stack on the network core. See this sample:&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/samples/bluetooth/rpc_host/README.html#ble-rpc-host"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/samples/bluetooth/rpc_host/README.html#ble-rpc-host&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>