<?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: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample &amp;#39;peripheral_uart&amp;#39;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109325/nrf5340-ble-how-to-create-the-rpmsg_nrf53_sram-in-partitions-yml-during-porting-the-sample-peripheral_uart</link><description>Hi Support Team, 
 I try to use BLE in &amp;#39;Split Controller and Host&amp;#39; mode on nRF5340 DK. I ported the sample &amp;#39; peripheral_uart &amp;#39; for appCore and &amp;#39; hci_rpmsg &amp;#39; for netCore, and the bidirectional communication between the appCore&amp;#39;s terminal and &amp;#39;nRF Connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Mar 2024 07:24:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109325/nrf5340-ble-how-to-create-the-rpmsg_nrf53_sram-in-partitions-yml-during-porting-the-sample-peripheral_uart" /><item><title>RE: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/475287?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 07:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c1c33c3-abd3-4a48-a21c-5844542d35cf</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I used the nRF Connect app on Android.&lt;br /&gt;Thank you for the suggestion and I will take the NUS as a reference for my custom service.&lt;br /&gt;Thank you again for the long and professional guidance and support. I close this ticket.&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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/475040?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 09:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f8ca9f0-890a-4c4b-9c62-229ffa012d8c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Yanpeng,&lt;/p&gt;
&lt;p&gt;Glad to hear that you were able to make it work. The client must be subscibed to the&amp;nbsp;characteristic&amp;nbsp;in order for the server to be able to send notifications, and this subscription is not retained across connections unless your devices are bonded.&amp;nbsp;&lt;/p&gt;
[quote user="Yanpengwu"]I also found when disconnect and reconnct from the mobile app, the default state of &amp;#39;Notifications and indications&amp;#39; is enabled, but it is actually disabled.[/quote]
&lt;p&gt;Is this with&amp;nbsp;the nRF Connect app on Android or iOS?&amp;nbsp;&lt;/p&gt;
[quote user="Yanpengwu"]Next I will construct my BLE services and Characteristics for my application data. Could you help suggest a sample for this? In the sample &amp;#39;&lt;span&gt;peripheral_uart&lt;/span&gt;&amp;#39;, I had not found the code for defining the Services and Characteristics. Thank you very much.[/quote]
&lt;p&gt;You can use the NUS implementation as a reference for creating your own custom service:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/bluetooth/services/nus.c"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/bluetooth/services/nus.c&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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474913?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 13:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0ede815-f4af-4f8d-8663-4fd8a7de89ad</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you so much for your professional support:). I found the send-data error is caused by the unproper operation sequences.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;1. I flashed the HEX you provided to my DK and tried to send/receive data and connect/disconnect. It can work well except in one situation: when the &amp;#39;TX Characterristic Descriptors - Notifications and indications &lt;strong&gt;disabled&lt;/strong&gt;&amp;#39; in the mobile APP, the &amp;#39;ble_host: Failed to send data over BLE connection&amp;#39; will be reported.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if this is a small bug, if the central(the mobile APP) connected with the peripheral (my nRF5340 DK) but disabled the &amp;#39;Notifications and indications&amp;#39;, that just means the central does not subscribe to the notification, the GAP server should send data as usual&amp;nbsp;and should not report a failure, is it right?&lt;/p&gt;
&lt;p&gt;I also found when disconnect and reconnct from the mobile app, the default state of &amp;#39;Notifications and indications&amp;#39; is enabled, but it is actually disabled. The send data error will occur in this situation too. That&amp;#39;s the reason why sometimes only after disconnect/reconnct the error will appear.&lt;/p&gt;
&lt;p&gt;2. In addition, in my application, I created threads on both appCore and netCore, and the priority=7, &lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;K_THREAD_DEFINE(thread_check_id, LED_THREAD_STACKSIZE, blink_led, NULL, NULL, NULL,
K_PRIO_COOP(7), 0, 100);&lt;/pre&gt;&lt;br /&gt;and the ble_write_thread&amp;#39; priority also is 7&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;K_THREAD_DEFINE(ble_write_thread_id, STACKSIZE, ble_write_thread, NULL, NULL,
NULL, PRIORITY, 0, 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if it will affect the BLE data sent. I changed my thread&amp;#39;s priority to 9 now.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;After that, the BLE data bidirectional data exchange works well now.&lt;/strong&gt; &lt;br /&gt;Maybe I can say I get the robust BLE connection now:). Next I will construct my BLE services and Characteristics for my application data. Could you help suggest a sample for this? In the sample &amp;#39;&lt;span&gt;peripheral_uart&lt;/span&gt;&amp;#39;, I had not found the code for defining the Services and Characteristics. 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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474882?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 12:27:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3150914b-6018-431d-8511-fb114e450059</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Yanpeng,&lt;/p&gt;
&lt;p&gt;No worries. But I&amp;#39;m not seeing any errors when sending data here. Please try the attached hex file I built and see if you get the same result. This is built with the original hci_rpmsg sample.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3527.merged_5F00_domains.hex"&gt;devzone.nordicsemi.com/.../3527.merged_5F00_domains.hex&lt;/a&gt;&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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474869?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 12:06:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b04952d6-3b3d-40c4-8d29-c8c2a2964b2b</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Sorry for the mistake. When I did a Pristine Build, the rpmsg_nrf53_sram was created properly in partitions.yml.&lt;br /&gt;But when I flash the image to DK, still can see &amp;#39;ble_host: Failed to send data over BLE connection&amp;#39;, sending data from appCore terminal failed. (the data flow from mobile app to appCore terminal is ok)&lt;/p&gt;
&lt;p&gt;It failed in bt_gatt_notify_cb():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;in bt_gatt_notify_cb:

data.err = -ENOTCONN;
data.type = BT_GATT_CCC_NOTIFY;
data.nfy_params = params;

LOG_WRN(&amp;quot;[in bt_gatt_notify_cb - 7.1], data.err=%d&amp;quot;, data.err); //data.err=-128
bt_gatt_foreach_attr_type(data.handle, 0xffff, BT_UUID_GATT_CCC, NULL,
1, notify_cb, &amp;amp;data); //failed in notify_cb when Notify all peers configured
LOG_WRN(&amp;quot;[in bt_gatt_notify_cb - 7.2], data.err=%d&amp;quot;, data.err); //data.err=-128

return data.err;&lt;/pre&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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474859?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 11:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bb85681-49fd-4eec-aef4-c8de5326b241</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Yanpeng,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;By &amp;quot;build result being the same,&amp;quot; do you mean that CONFIG_RPMSG_NRF53_SRAM_SIZE is still set to 0x0 in your .config output?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1710935698614v1.png" alt=" " /&gt;&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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474857?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 11:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:069d4c45-f5ce-478d-91e7-49f83a6e7392</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I changed&amp;nbsp;the overlay to&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;chosen {
/* /delete-property/ zephyr,ipc_shm;*/
nordic,nus-uart = &amp;amp;uart0;
};&lt;/pre&gt;&lt;br /&gt;but the build result and the send data behavior are the same. Could you help try the project on your nRF5340 DK and see the result?&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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474855?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 11:40:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c51dc680-d7b0-4232-8e8f-27caaead30e9</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;Thanks for sharing the project. The problem is that you had deleted the ipc_shm node in your DT overlay:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1710934798613v1.png" alt=" " /&gt;&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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474840?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 10:51:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21c4b253-8bfb-4b12-88e0-2a064b82e351</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s great, I minimized the project and attached it here:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/IOTDL.zip"&gt;devzone.nordicsemi.com/.../IOTDL.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I used SDK v2.5.2 on nRF5340 DK.&amp;nbsp;&lt;br /&gt;The child image used the default &amp;#39;&lt;a title="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;hci_rpmsg&lt;/a&gt;&amp;#39; and I just increased some stack size.&lt;/p&gt;
&lt;p&gt;With this, you can reproduce:&lt;/p&gt;
&lt;p&gt;(1) the build log &amp;quot;&lt;strong&gt;Dropping partition &amp;#39;rpmsg_nrf53_sram&amp;#39; since its size is 0.&lt;/strong&gt;&amp;quot; and no &amp;#39;&lt;strong&gt;rpmsg_nrf53_sram&lt;/strong&gt;&amp;#39; in the partitions.yaml.&lt;/p&gt;
&lt;p&gt;(2) The application can receive data via BLE, but can not send data(failed on calling bt_nus_send(), the trace was &amp;#39;&lt;strong&gt;ble_host: Failed to send data over BLE connection&lt;/strong&gt;&amp;#39;).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474831?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 10:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8a53837-8467-419e-8692-a47adcc195d5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see anything wrong with your Kconfig settings. Can you submit your project here or via a private support ticket so that I can have a look at it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474812?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 09:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f1e270c-176b-481c-8549-e7b242c2a741</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Update:&amp;nbsp;&lt;br /&gt;I enabled the IPC communication in my project currently. Maybe this part caused some conflicts?&lt;br /&gt;In &lt;strong&gt;prj.conf&lt;/strong&gt;:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# IPC communication
CONFIG_IPC_SERVICE=y
CONFIG_IPC_SERVICE_BACKEND_ICMSG=y
CONFIG_MBOX=y&lt;/pre&gt;&lt;br /&gt;In&amp;nbsp;&lt;strong&gt;boards\nrf5340dk_nrf5340_cpuapp.overlay&lt;/strong&gt;:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;reserved-memory {
		/delete-node/ memory@20070000;

		sram_tx: memory@20070000 {
			reg = &amp;lt;0x20070000 0x400&amp;gt;;
		};

		sram_rx: memory@20078000 {
			reg = &amp;lt;0x20078000 0x0800&amp;gt;;
		};
	};

	ipc {
		/delete-node/ ipc0;

		ipc0: ipc0 {
			compatible = &amp;quot;zephyr,ipc-icmsg&amp;quot;;
			tx-region = &amp;lt;&amp;amp;sram_tx&amp;gt;;
			rx-region = &amp;lt;&amp;amp;sram_rx&amp;gt;;
			mboxes = &amp;lt;&amp;amp;mbox 0&amp;gt;, &amp;lt;&amp;amp;mbox 1&amp;gt;;
			mbox-names = &amp;quot;tx&amp;quot;, &amp;quot;rx&amp;quot;;
			status = &amp;quot;okay&amp;quot;;
		};
	};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I remove these codes and build, there is still&lt;strong&gt; no rpmsg_nrf53_sram&lt;/strong&gt; in the partitions.yml. And the system behavior changed:&lt;/p&gt;
&lt;p&gt;(1). W&lt;span&gt;hen I disconnect the BLE connection on the app &amp;#39;&lt;/span&gt;&lt;span&gt;nRF Connect for Mobile&lt;/span&gt;&lt;span&gt;&amp;#39;, the system does not crash as&amp;nbsp;&lt;a title="ASSERTION FAIL with opcode-0x200a-timeout" href="https://devzone.nordicsemi.com/f/nordic-q-a/109385/nrf5340-ble-host-assertion-fail-with-command-opcode-0x200a-timeout-with-err--11"&gt;ASSERTION FAIL with opcode-0x200a-timeout&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(2).&lt;/span&gt;&amp;nbsp;The nr5340 DK only can receive data via BLE, when it sends data, it fails when calling &lt;strong&gt;bt_nus_send()&lt;/strong&gt;, and the trace is &amp;quot;Failed to send data over BLE connection&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474786?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 08:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1841c12-e2c2-4a4a-bd63-8785396f75d0</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I checked&amp;nbsp;my prj.conf, there is no&amp;nbsp;&lt;span&gt;CONFIG_RPMSG_NRF53_SRAM_SIZE symbol.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I saw this symbol is dependent on&amp;nbsp;CONFIG_PARTITION_MANAGER_ENABLED. I enabled it with cmake argument &amp;#39;-Dhci_rpmsg_OVERLAY_CONFIG=&amp;quot;C:/ncs/v2.5.2/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;quot;&amp;#39;, just as the sample &amp;#39;peripheral_uart&amp;#39; did.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I attached my&amp;nbsp;prj.conf for your information, in case there are conflicts inside.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/my-prj.conf"&gt;devzone.nordicsemi.com/.../my-prj.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474777?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 07:31:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2f1b437-cc3a-49a3-b135-abaa97554b72</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Yanpeng,&lt;/p&gt;
[quote user="Yanpengwu"]I compared the CMakelists.txt in my project and the &amp;#39;peripheral_uart&amp;#39;, and did not find any difference for this. [/quote]
&lt;p&gt;Please compare the prj.conf settings instead and make sure you haven&amp;#39;t set the CONFIG_RPMSG_NRF53_SRAM_SIZE symbol.&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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474722?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 17:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d1d58fd-26bd-4d4f-9cb7-9400fee81d81</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for the quick reply.&lt;br /&gt;In my project, I unchecked the &amp;#39;Use sysbuild&amp;#39; in the Build Configuration, and found the image on netCore became &amp;#39;hci_rpmsg&amp;#39;, but still no &amp;#39;rpmsg_nrf53_sram&amp;#39; in the partitions.yml.&lt;br /&gt;In the build log, there is &amp;#39;Dropping partition &amp;#39;rpmsg_nrf53_sram&amp;#39; since its size is 0.&amp;#39;&lt;/p&gt;
&lt;p&gt;I compared the CMakelists.txt in my project and the &amp;#39;peripheral_uart&amp;#39;, and did not find any difference for this. Maybe I missed something in my appCore build script...?&lt;/p&gt;
&lt;p&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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474705?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 16:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe21894d-e9f2-4152-82cf-394e8fceb253</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;&amp;#39;hci_rpmsg&amp;#39; is included as a child image by default when you enable Bluetoot in the parent application running on the application core. This is controlled by the&amp;nbsp;CONFIG_NCS_INCLUDE_RPMSG_CHILD_IMAGE symbol.&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&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474703?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 16:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ee01d32-f3b0-4109-9c53-df055d91033f</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your suggestion. I will try the way that uses &amp;#39;hci_rpmsg&amp;#39; as the child image on netCore and add my code to it.&lt;/p&gt;
&lt;p&gt;For the appCore, can I take the &amp;#39;peripheral_uart&amp;#39; as a reference to try the multi-image build? I searched in this sample and did not find anywhere mentioned &amp;#39;hci_rpmsg&amp;#39;, where did it define the &amp;#39;hci_rpmsg&amp;#39; as its child image on netCore? Could you help give some hints for this? 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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474612?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 12:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13c4e297-14c8-475f-aa45-27af550ad711</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Yanpeng,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Sysbuild is still an experimental feature with several limitations. For now, I would recommend using the nRF Connect SDK&amp;#39;s specific&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html"&gt;Multi-image&lt;/a&gt;&amp;nbsp;support. The easiest approach would be to directly modify the hci_rpmsg in the SDK tree.&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&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474370?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 14:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dfaf7d1-af39-4caa-9eac-0f56e47483d0</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Update: I found there is only one line code &amp;#39;&lt;em&gt;CONFIG_PARTITION_MANAGER_ENABLED=y&lt;/em&gt;&amp;#39; in the &lt;span&gt;cmake argument &amp;#39;&lt;em&gt;-Dhci_rpmsg_OVERLAY_CONFIG=&amp;quot;C:/ncs/v2.5.2/nrf/subsys/partition_manager/partition_manager_enabled.conf&lt;/em&gt;&amp;quot;&amp;#39;. So I removed the&amp;nbsp;cmake argument&amp;nbsp;and added &amp;#39;&lt;/span&gt;&lt;em&gt;CONFIG_PARTITION_MANAGER_ENABLED=y&lt;/em&gt;&lt;span&gt;&amp;#39; in my pj.conf. But the result is the same.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474360?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 14:03:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15031630-fda3-4ed3-be15-543c1b1e3fe3</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. I&amp;#39;m not using the original hci_rpmsg child image. In my application, I&amp;#39;m using a sysbuild and there is another small task on netCore, so I ported the code of hci_rpmsg to my application code on the netCore.&lt;/p&gt;
&lt;p&gt;In the sample &lt;a title="peripheral_uart" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/samples/bluetooth/peripheral_uart/README.html#peripheral-uart"&gt;peripheral_uart&lt;/a&gt;, I did not find how it define the hci_rpmsg as its default child image. I guessed it should be the configuration &amp;#39;&lt;strong&gt;&lt;em&gt;config NRF_DEFAULT_BLUETOOTH&amp;nbsp; default y&lt;/em&gt;&lt;/strong&gt;&amp;#39; in the &lt;em&gt;&lt;strong&gt;Kconfig.sysbuild&lt;/strong&gt;&lt;/em&gt;, is it correct?&lt;/p&gt;
&lt;p&gt;After I ported the code to my application, the first build had some errors with the flash partition, then I added the cmake argument &amp;#39;-Dhci_rpmsg_OVERLAY_CONFIG=&amp;quot;C:/ncs/v2.5.2/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;quot;&amp;#39;, just as the sample did. After this, the BLE communication is ok, but when I compare the partitions.yml files in the sample and my project, I found the difference of &lt;strong&gt;rpmsg_nrf53_sram&lt;/strong&gt;.&lt;/p&gt;
&lt;p&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: nRF5340 BLE: How to create the rpmsg_nrf53_sram in partitions.yml during porting the sample 'peripheral_uart'</title><link>https://devzone.nordicsemi.com/thread/474348?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 13:37:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de0a66a0-47fc-4205-a3ef-a27b14e01d2b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Yanpeng,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Could you provide a bit more information about how your project setup differs from the peripheral_uart sample? Do you still use the same&amp;nbsp;&lt;a title="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;hci_rpmsg&lt;/a&gt;&amp;nbsp;child image in your build? The &amp;#39;rpmsg_nrf53_sram&amp;#39; section should be added automatically by the build script here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/d5a11bd8bd803fff7615f9b0c5227a60c761da27/subsys/partition_manager/CMakeLists.txt#L87"&gt;https://github.com/nrfconnect/sdk-nrf/blob/d5a11bd8bd803fff7615f9b0c5227a60c761da27/subsys/partition_manager/CMakeLists.txt#L87&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></channel></rss>