<?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>Zephyr sample code for sending and receiving IPC messages</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101659/zephyr-sample-code-for-sending-and-receiving-ipc-messages</link><description>Does Nordic provide Zephyr sample code for sending Inter-Processor Communication (IPC) messages from app core and receiving response from net core?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jul 2023 21:55:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101659/zephyr-sample-code-for-sending-and-receiving-ipc-messages" /><item><title>RE: Zephyr sample code for sending and receiving IPC messages</title><link>https://devzone.nordicsemi.com/thread/438637?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 21:55:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47ac550b-1947-4695-bed7-bd100dc9eaf0</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Snowuyl,&lt;/p&gt;
&lt;p&gt;Hieu is on holiday now and this case has been transferred to me. From your many other cases I can see that you have gotten RTT working.&lt;/p&gt;
&lt;p&gt;However, after trying to actually run the IPC_service sample on NCS v2.3.0, I should copy here what I told you in another case (in case other DevZone users read this):&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;It turns out that the IPC service sample (and some others, I suspect), are completely broken on NCS 2.3.0.&lt;/p&gt;
&lt;p&gt;I believe that earlier NCS versions worked, and I can confirm that NCS v2.4.0 works as well. Are you early enough in development that you could upgrade your NCS version to v2.4.0? I would strongly recommend it.&lt;/p&gt;
&lt;/blockquote&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: Zephyr sample code for sending and receiving IPC messages</title><link>https://devzone.nordicsemi.com/thread/435832?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 03:05:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:002f6e35-efdd-482a-9e45-f4dd5e46efba</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;I see the following configuration in D:\ncs\v2.3.0\nrf\samples\ipc\ipc_service\build\remote\zephyr\.config file.&lt;/p&gt;
&lt;p&gt;#&lt;br /&gt;# Backends&lt;br /&gt;#&lt;br /&gt;# CONFIG_LOG_BACKEND_SWO is not set&lt;br /&gt;CONFIG_LOG_BACKEND_UART=y&lt;br /&gt;CONFIG_LOG_BACKEND_UART_BUFFER_SIZE=1&lt;br /&gt;CONFIG_LOG_BACKEND_UART_AUTOSTART=y&lt;br /&gt;CONFIG_LOG_BACKEND_UART_OUTPUT_TEXT=y&lt;br /&gt;# CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY is not set&lt;br /&gt;# CONFIG_LOG_BACKEND_UART_OUTPUT_CUSTOM is not set&lt;br /&gt;CONFIG_LOG_BACKEND_UART_OUTPUT_DEFAULT=0&lt;br /&gt;# CONFIG_LOG_BACKEND_IPC_SERVICE is not set&lt;br /&gt;# end of Backends&lt;/p&gt;
&lt;p&gt;Do you have suggestion to set log backend to RTT? &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The following are west flag log messages.&lt;/p&gt;
&lt;p&gt;D:\ncs\v2.3.0\nrf\samples\ipc\ipc_service&amp;gt;west flash&lt;br /&gt;-- west flash: rebuilding&lt;br /&gt;[0/4] Performing build step for &amp;#39;remote_subimage&amp;#39;&lt;br /&gt;ninja: no work to do.&lt;br /&gt;-- west flash: using runner nrfjprog&lt;br /&gt;Using board 801036305&lt;br /&gt;-- runners.nrfjprog: Flashing file: D:\ncs\v2.3.0\nrf\samples\ipc\ipc_service\build\zephyr\merged_domains.hex&lt;br /&gt;-- runners.nrfjprog: D:\ncs\v2.3.0\nrf\samples\ipc\ipc_service\build\zephyr\merged_domains.hex targets both nRF53 coprocessors; splitting it into: D:\ncs\v2.3.0\nrf\samples\ipc\ipc_service\build\zephyr\GENERATED_CP_NETWORK_merged_domains.hex and D:\ncs\v2.3.0\nrf\samples\ipc\ipc_service\build\zephyr\GENERATED_CP_APPLICATION_merged_domains.hex&lt;br /&gt;[ #################### ] 3.340s | Erase file - Done erasing&lt;br /&gt;[ #################### ] 0.307s | Program file - Done programming&lt;br /&gt;[ #################### ] 0.304s | Verify file - Done verifying&lt;br /&gt;[ #################### ] 1.731s | Erase file - Done erasing&lt;br /&gt;[ #################### ] 0.362s | Program file - Done programming&lt;br /&gt;[ #################### ] 0.343s | Verify file - Done verifying&lt;br /&gt;Applying pin reset.&lt;br /&gt;-- runners.nrfjprog: Board with serial number 801036305 flashed successfully.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr sample code for sending and receiving IPC messages</title><link>https://devzone.nordicsemi.com/thread/435535?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 14:53:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b50b007-261a-45bf-94ae-49115811f777</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;You just need to show me what the command line prints out immediately after &lt;em&gt;west flash&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Please also check which log backend the network core is logging to. See in &amp;lt;network core &lt;span style="text-decoration:underline;"&gt;child image build folder&lt;/span&gt;&amp;gt;/zephyr/.conf file, and search for all the CONFIG&lt;strong&gt;.*&lt;/strong&gt;LOG_BACKEND configurations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr sample code for sending and receiving IPC messages</title><link>https://devzone.nordicsemi.com/thread/435519?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 13:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da85f290-b08c-45ed-b884-58a35a9802cb</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! I try to find command for generating west flag log file. But I can&amp;rsquo;t find command from&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/develop/west/build-flash-debug.html"&gt;docs.zephyrproject.org/.../build-flash-debug.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr sample code for sending and receiving IPC messages</title><link>https://devzone.nordicsemi.com/thread/435504?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 12:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0fa735d-cfc7-4454-aa1a-86ecd31f0088</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I don&amp;#39;t have a nRF5340 hardware to test at the moment.&amp;nbsp;Do you know if both cores were flashed when you run &lt;em&gt;west flash&lt;/em&gt;? If you are not able to tell, please give me the log&amp;nbsp;of &lt;em&gt;west flash&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr sample code for sending and receiving IPC messages</title><link>https://devzone.nordicsemi.com/thread/435442?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 10:09:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2207440-f9cd-4b49-83c6-076879194c3e</guid><dc:creator>snowuyl</dc:creator><description>&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/7367.RTT_5F00_V7.80c_5F00_nRF5340_5F00_netcore_5F00_II.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr sample code for sending and receiving IPC messages</title><link>https://devzone.nordicsemi.com/thread/435441?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 10:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06570a36-b501-4af0-b5b8-55a275302c75</guid><dc:creator>snowuyl</dc:creator><description>&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/1050.RTT_5F00_V7.80c_5F00_nRF5340_5F00_netcore_5F00_I.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr sample code for sending and receiving IPC messages</title><link>https://devzone.nordicsemi.com/thread/435440?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 10:08:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed1cf98e-c0ca-4df3-8ffa-ae58cb2ee4d6</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for you suggesting ipc_service sample. I can build and flash image but I can&amp;#39;t see any log messages of NET core.&lt;/p&gt;
&lt;p&gt;Procedure to reproduce this issue is as follows.&lt;/p&gt;
&lt;p&gt;1. cd D:\ncs\v2.3.0\nrf\samples\ipc\ipc_service&lt;br /&gt;2. west build -b nrf5340dk_nrf5340_cpuapp&lt;br /&gt;3. west flash&lt;br /&gt;4. Lauching RTT Viwer and slecting NRF5340_XXAA_NET target device&lt;br /&gt;5. RTT Viwer shows &amp;quot;LOG: RTT Viewer connected&amp;quot; but doesn&amp;#39;t show any log messages.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr sample code for sending and receiving IPC messages</title><link>https://devzone.nordicsemi.com/thread/435438?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 09:51:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d4021e0-95e6-415b-a9e3-aeedef796113</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi snowuyl,&lt;/p&gt;
&lt;p&gt;Yes, please take a look at the IPC service sample:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/nrf/samples/ipc/ipc_service/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/nrf/samples/ipc/ipc_service/README.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>