<?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>Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108758/bluetooth-on-nrf5340</link><description>Hi Support team, 
 I&amp;#39;m using an LTE modem and enabled the net-stack and mqtt on the net-core of nRF5340, now 53% FLASH and 77% RAM are used. 
 I need to use Bluetooth for the system configuration when the system on config mode. 
 My questions are: 1 There</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Mar 2024 13:22:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108758/bluetooth-on-nrf5340" /><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/473875?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 13:22:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4202ea4d-24b8-401c-95b7-0496c0534ca6</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I will include the fix in my application. Thank you so much for the reminder.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/473790?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 08:56:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94ec232b-cfe8-4f6e-ad8c-782382b78e40</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Yanpeng,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Your welcome. While reviewing the code, I noticed we didn&amp;#39;t use&amp;nbsp;release the force-off signal properly on bt_enable(). This is fixed by this PR:&amp;nbsp;&lt;a id="" href="https://github.com/zephyrproject-rtos/zephyr/pull/70162"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/70162&lt;/a&gt;. I recommend you include this fix in your code.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/473566?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2024 08:45:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7690cffa-5c28-47c2-8a4c-03ed3e4490c1</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for the confirmation, I will try the mature solution &lt;span&gt;&amp;#39;Split Controller and Host&amp;#39;. Thank you very much.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Yanpeng Wu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/473349?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 08:19:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a22ec2f-4fc9-4766-afb9-895197d5407b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Yanpeng,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Support for running the whole BT stack on the netcore is currently experimental and therefore not recommended for production. The bt_disable() function will force off the network core. And bt_enable will force it on again.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/473193?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 13:27:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42b7b24b-d10a-428c-9e58-7523ce207c71</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for the update. Is the API &lt;strong&gt;bt_disable()&lt;/strong&gt; used to close and release HCI resources on netCore in the architecture of &amp;#39;Split Controller and Host&amp;#39;?&lt;/p&gt;
&lt;p&gt;In my case, the BLE is only used to do the system configuration. The system is not in configuration mode most time. I&amp;#39;m thinking put the &amp;#39;Full Bluetooth LE stack&amp;#39; on the netCore, and using &lt;strong&gt;API nrf_reset_network_force_off()&lt;/strong&gt; (&lt;a title="the API description" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrfx/drivers/reset/hal.html#c.nrf_reset_network_force_off"&gt;the API description&lt;/a&gt;, and &lt;a title="the netCore Force-OFF mode" href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fchapters%2Fpmu%2Fdoc%2Fpmu.html&amp;amp;cp=4_0_0_3_2&amp;amp;anchor=unique_815104590"&gt;the netCore Force-OFF mode&lt;/a&gt;) to power off the net-core totally from appCore when in operating mode. When need to do the system configuration, also use&amp;nbsp; &lt;strong&gt;nrf_reset_network_force_off&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;()&lt;/strong&gt; to power on the netCore and connect with BLE.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Does this method make sense? Looking forward to your comments.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/473142?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 10:51:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7629d5d1-48f4-471c-9e42-0e5671c722c5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Update: support for disabling the network core through bt_disable() was added in SDK v2.6.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/472708?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 12:54:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c9c9029-bfe7-416b-91d6-7e3df4292cf4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I don&amp;#39;t believe that moving the Bluetooth host to the network core will simplify the application logic needed to dynamically power the network core on and off. The application will still be responsible for enabling and disabling the stack using the same APIs.&lt;/p&gt;
&lt;p&gt;I will investigate this further and let you know if it can be supported with the current implementation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/472706?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 12:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76094179-befb-42aa-9f02-48a97e53ef77</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Update: I followed the sample&amp;#39;s guide, try to run &amp;#39;&lt;em&gt;&lt;span class="go"&gt;west build -b nrf5340dk_nrf5340_cpuapp -- -DCONFIG_BT_RPC_STACK=y&lt;/span&gt;&lt;/em&gt;&amp;#39; in the&amp;nbsp;&lt;strong&gt;peripheral_uart &lt;/strong&gt;directory to replace the default &lt;strong&gt;hci_rpmsg&amp;nbsp;&lt;/strong&gt;with the &lt;strong&gt;rpc_host&amp;nbsp;&lt;/strong&gt;on the netCore, but some CMake error appears:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CMake Error at ../../../cmake/multi_image.cmake:221 (message):
  A domain may only have a single child image.Current domain image is:
  hci_rpmsg, `hci_rpmsg` is a domain parent image, so you may add `rpc_host`
  as a child inside `hci_rpmsg`
Call Stack (most recent call first):
  ../../../cmake/multi_image.cmake:178 (add_child_image_from_source)
  ../../CMakeLists.txt:148 (add_child_image)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Should I change some configuration else in the sample &lt;strong&gt;peripheral_uart&lt;/strong&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/472524?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2024 14:41:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bff67fe9-7fff-4c30-854b-7986695e794d</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Following the above inputs, I&amp;#39;d like to append&amp;nbsp;some questions in this line:).&lt;/p&gt;
&lt;p&gt;Thank your suggestion, I moved the LTE modem and net stack to app-core now, it works well. In my current design, I want to use Bluetooth for system configuration only. So I&amp;#39;d like to put the full Bluetooth LE stack on the net-core, thus I can force-power-off the net-core when the system is not in configuration mode to save power. &lt;strong&gt;Could you help give some comments for this design, is it feasible, or somewhere can be optimized?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To run the full Bluetooth LE stack on the net-core, I built the&amp;nbsp;&lt;strong&gt;samples/bluetooth/rpc_host&lt;/strong&gt; for the netCore image and built the &lt;strong&gt;samples/bluetooth/peripheral_uart&lt;/strong&gt; for the appCore image.&lt;/p&gt;
&lt;p&gt;1. The sample can be built and I can&amp;nbsp;exchange data between&amp;nbsp;&lt;span&gt;&amp;#39;nRF Connect for Mobile&lt;/span&gt;&amp;#39; and appCore terminal successfully. But it is strange that the net-core image is not the&amp;nbsp;&lt;strong&gt;rpc_host&lt;/strong&gt;, it is &lt;strong&gt;hci_rpmsg&lt;/strong&gt; as below.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2867.ble.png" /&gt;&lt;img style="max-height:0px;max-width:0px;" src="https://devzone.nordicsemi.com/resized-image/__size/0x0/__key/communityserver-discussions-components-files/4/pastedimage1709735480576v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Did I make a mistake somewhere? How can I use the &lt;strong&gt;rpc_host&amp;nbsp;&lt;/strong&gt;and put&amp;nbsp;&lt;span&gt;the full Bluetooth LE stack on the netCore?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. To&amp;nbsp;put&amp;nbsp;the full Bluetooth LE stack on the net-core, I think the sample &lt;strong&gt;rpc_host&lt;/strong&gt; is the right sample for netCore. Which sample is the most suitable one for my appCore? I just want to get the configuration data in my application from Bluetooth, so I think no need for UART.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I need to read the document and study the samples more, if you can give me some guidance I can have a clearer understanding. Thank you in advance:).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/471364?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 14:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fe82a22-49a9-4083-8e78-e3f414878771</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you so much for your guidance, which helped me a lot and I know the right direction now:).&lt;br /&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/471352?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 14:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2e381a9-fb9d-4ab9-b293-8499a91b5227</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Yanpeng,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. I don&amp;#39;t foresee any problems with moving this to the appcore.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. the RADIO peripheral cannot be accessed from the application core. Therefore, any SW requiring access to the radio must run on the network core.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Note that&amp;nbsp;&lt;a title="Bluetooth: HCI RPMsg" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/zephyr/samples/bluetooth/hci_rpmsg/README.html#bluetooth-hci-rpmsg-sample"&gt;Bluetooth: HCI RPMsg&lt;/a&gt;&amp;nbsp;is automatically included as a child-image if you build SDK BLE samples such has peripheral heart rate, etc. To apply configuration changes to a child image to reduce memory footprint, etc, you can create a child image folder as explained here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html#permanent-configuration-changes-to-child-images"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html#permanent-configuration-changes-to-child-images&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/471348?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 14:15:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83fc7181-ae44-4ef6-865d-2d22bd8b9d77</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. I tried to compile the sample&amp;nbsp;&lt;a title="Bluetooth: HCI RPMsg" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/zephyr/samples/bluetooth/hci_rpmsg/README.html#bluetooth-hci-rpmsg-sample"&gt;Bluetooth: HCI RPMsg&lt;/a&gt;&amp;nbsp;and can see that 69% Flash and 74% RAM are used.&lt;/p&gt;
&lt;p&gt;Just as you suggested, maybe the better solution is to move the LTE modem and net stack from the net-core to the app-core. Could you help give some guidance for the below questions?&lt;/p&gt;
&lt;p&gt;1. Now I use UART connecting to the LTE modem on net-core. I don&amp;#39;t know if is there any obstacle to moving this from net-core to app-core? I mean the feasibility of this solution. Maybe your experiences can help me understand this point better:).&lt;br /&gt;2. I see the nRF5340 net-core diagram, there is a &amp;#39;RADIO&amp;#39; on it. Is it connected to the bluetooth controller hardware? Or can I understand that the bluetooth controller hardware is fixed on net-core?&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth on nRF5340</title><link>https://devzone.nordicsemi.com/thread/471287?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 12:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90d09fb5-9520-4d4b-a58c-6c4ab7393c30</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;As&amp;nbsp;described in the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#protocols-and-use-cases"&gt;Protocols and use cases&lt;/a&gt;&amp;nbsp;section of the SDK documentation, the&amp;nbsp;typical configuration is to have the&amp;nbsp;Bluetooth controller (hci_rpmsg) reside on the network core, and the Bluetooth host and application on the application core. The memory footprint of the controller depends on the configuration. E.g. how many connections it needs to support, GAP roles, etc. You also need to include a bootloader if you need support for FW updates.&amp;nbsp;&lt;/p&gt;
[quote user=""]I&amp;#39;m using an LTE modem and enabled the net-stack and mqtt on the net-core of nRF5340, now 53% FLASH and 77% RAM are used.[/quote]
&lt;p&gt;Have you considered implementing this on the application core instead?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>