<?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>Fail to run the IPC Service-icmsg sample on nRF5340 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105708/fail-to-run-the-ipc-service-icmsg-sample-on-nrf5340-dk</link><description>Hi Support team, 
 I tried to run the IPC Service-icmsg sample(l\zephyr\samples\subsys\ipc\ipc_service\icmsg) on the nRF5340 DK but failed. I opened the sample in VS code and created build configuration with default settings as below screenshot. Not selecting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Dec 2023 09:54:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105708/fail-to-run-the-ipc-service-icmsg-sample-on-nrf5340-dk" /><item><title>RE: Fail to run the IPC Service-icmsg sample on nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/459125?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 09:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a36af338-bd81-40c6-8f3b-740e0da0985c</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;I can run the sample successfully now. I&amp;#39;d like to put a summary here:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;1. The project &amp;#39;icmsg&amp;#39; is for the app-core and has a subdirectory &amp;#39;remote&amp;#39; for net-core.&lt;br /&gt; With the default build (without sysbuild) can build two images for two cores. The reason for not using sysbuild and can build two images is that in the CMakeLists.txt, the &amp;#39;remote&amp;#39; was added as an ExternalProject.&lt;br /&gt;2. When Flash, in my case, only the app-core image was flashed successfully, we can know this by the &amp;#39;read&amp;#39; in the tool &amp;#39;nRF Connect for Desktop&amp;#39;.&amp;#39;Programmer&amp;#39;.&lt;br /&gt;3. In this situation, I open the &amp;#39;remote&amp;#39; project separately in the VS code and flash the net-core image separately.&lt;/p&gt;
&lt;p&gt;After that, I can see the traces on the net-core.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to run the IPC Service-icmsg sample on nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/456882?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 11:07:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a84cf6-85fe-4733-ab31-c73dc0be1937</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I try to set breakpoints and run the debug. I found the main() in the network core was not starting. &lt;br /&gt;The main() in the application core went to _sleep after the code k_sem_take(&amp;amp;bound_sem, K_FOREVER), please see the below screenshot.&lt;/p&gt;
&lt;p&gt;Maybe the network core was not brought up before the application core went to sleep? I don&amp;#39;t know if this is the reason there is no log printed from the Network core console.&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/pastedimage1700650245917v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to run the IPC Service-icmsg sample on nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/456867?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 10:30:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2dbd9f0-e966-4380-9c8b-6d0eb41eb8cd</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;And could you attach your application projects here? I can try to run it to see the result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to run the IPC Service-icmsg sample on nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/456857?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 10:06:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eda0f06-4ba6-43a5-a942-37087423b559</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;I add the &amp;#39;remote&amp;#39; as a separate application in the VS code, and can compile both &amp;#39;icmsg&amp;#39; and &amp;#39;remote&amp;#39; separately, but the result is the same.&lt;/p&gt;
&lt;p&gt;Actually, the &amp;#39;remote&amp;#39; is a sub-directory under &amp;#39;icmsg&amp;#39; and was added as an ExternalProject in \icmsg\CMakeLists.txt, so it is the same to build &amp;#39;icmsg&amp;#39; only or build &amp;#39;icmsg&amp;#39; and &amp;#39;remote&amp;#39; separately.&lt;/p&gt;
&lt;p&gt;In the &amp;#39;ACTIONS-&amp;gt;Flash&amp;#39; tab, I can only flash two images at the same time, How did you flash two images separately?&lt;/p&gt;
&lt;p&gt;To get more information, I added some logs in the \icmsg\src\main.c and found logs before &amp;#39;k_sem_take(&amp;amp;bound_sem, K_FOREVER)&amp;#39; can be printed, but after that, the system on application core seems blocked by semaphore and no any logs.&lt;/p&gt;
&lt;p&gt;Is there a dependency on the boot sequence of the application core and the network core? for example, need to start the network core first?&lt;/p&gt;
&lt;p&gt;In my case, I only can flash both images at the same time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to run the IPC Service-icmsg sample on nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/456554?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 22:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dc1ad37-c264-4370-95a1-b9a6c3fd3ab5</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;In my case, I did actually open/add two separate NCS applications in my VS Code window, and built and flashed them both separately - with the build configurations I mentioned in my last reply.&lt;/p&gt;
&lt;p&gt;Would you mind trying this? Unfortunately I&amp;#39;m a bit busy at the moment so I&amp;#39;m trying to save some time. If that doesn&amp;#39;t work for you, please let me know, and I&amp;#39;ll take a closer look at the CMake config etc. that you shared!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to run the IPC Service-icmsg sample on nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/456334?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 09:07:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0150f0ac-0dc1-4054-a100-a3d8ee3071df</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;br /&gt;I realized there is no need for &amp;#39;sysbuild&amp;#39; in this sample because the project &amp;#39;remote&amp;#39; was included as an external project in the /icmsg/CMakeLists.txt as below:&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/pastedimage1700470696076v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The reason why it cannot run successfully may be that my steps are wrong. I listed my steps below, could you help check it?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;1 Open the sample in the VS Code.&lt;/strong&gt; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The sample includes two projects, one is &amp;#39;icmsg&amp;#39;, and another is &amp;#39;remote&amp;#39; which is located in &amp;#39;icmsg&amp;#39; as a sub-directory.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I only need open one VS code to open &amp;#39;icmsg&amp;#39;, no need to open &amp;#39;icmsg&amp;#39; and &amp;#39;remote&amp;#39; separately in two VS codes, is it right?&lt;br /&gt;&lt;strong&gt;2 In one VS code, I use the default build configuration as below:&amp;nbsp;&lt;/strong&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;(Only one build configuration for &amp;#39;cpuapp&amp;#39;.)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;img style="max-height:283px;max-width:183px;" height="283" src="https://devzone.nordicsemi.com/resized-image/__size/366x566/__key/communityserver-discussions-components-files/4/pastedimage1700470886244v2.png" width="183" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3 Start build, I can see both two images for the application core and the network core can be generated.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;img style="max-height:51px;max-width:333px;" height="51" src="https://devzone.nordicsemi.com/resized-image/__size/666x102/__key/communityserver-discussions-components-files/4/pastedimage1700471070065v3.png" width="333" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;4 I use two &amp;#39;Serail Terminal in nRF Connect for Desktop&amp;#39; to connect the application core with &amp;#39;COM5&amp;#39;, and the network core with &amp;#39;COM6&amp;#39;, but only can see one log on COM5 as described in previously.&lt;/p&gt;
&lt;p&gt;5 Closed the &amp;#39;Serail Terminal&amp;#39; and used the serial terminals in &amp;#39;Connected Devices&amp;#39; tab of VS code, the result is the same. Only one log was printed from the application core, but nothing from the network core.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to run the IPC Service-icmsg sample on nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/456213?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 15:34:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7aaee78-e9ce-42c9-ab62-1df695ee754f</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Yanpeng,&lt;/p&gt;
[quote user=""]I opened the sample in VS code and created build configuration with default settings as below screenshot. Not selecting &amp;#39;Use sysbuild&amp;#39;, and build succeed, two images were generated. After I flashed to the target, only one log was printed on the application console, and nothing on the network console, please see the screenshot below.[/quote]
&lt;p&gt;I tried to reproduce this, but didn&amp;#39;t get your issue.&lt;/p&gt;
&lt;p&gt;In NCS v2.5.0, I built icmsg for nrf5340dk_nrf5340_cpuapp without sysbuild, and icmsg_remote for nrf5340dk_nrf5340_cpunet, without sysbuild. I connected to both cores over UART in the VS Code extension, and got output on both sides:&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/pastedimage1700234755190v1.png" alt=" " /&gt;&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/pastedimage1700234764923v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Could it be that there&amp;#39;s something with the Serial Terminal configuration? Could you try rebuilding, and testing through the serial terminals through the &amp;quot;Connected Devices&amp;quot; tab?&lt;/p&gt;
&lt;p&gt;Regarding sysbuild, I have to admit that it is new to me as well. I&amp;#39;ve never used it. All multi-image builds I have done have been through the use of &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html"&gt;child images&lt;/a&gt;. But if I understand correctly, this will slowly be replaced by sysbuild. I see that there have been sysbuild-related changes to this sample in NCS v2.5.0:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/commit/19cc0fe099d2f252d7410aaa29cb4569f18917e2"&gt;https://github.com/zephyrproject-rtos/zephyr/commit/19cc0fe099d2f252d7410aaa29cb4569f18917e2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I realise I might not have answered your question entirely. Is this sufficient information for now? Let me know if you still can&amp;#39;t get output on the network core.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>