<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: S32g3 ipcf debugging in S32G</title>
    <link>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1613094#M2432</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found that the partitioning of the SharedRAM in the link file caused, once I split the SharedRAM, then the A-core and M-core operations in this segment of memory looked as if they were independent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I did A test, first use the default link file, partition SharedRAM address is 0x34000000, size 2M, then M core to write 0x34600000 address, in A core read the address out the correct value.&lt;/SPAN&gt;&lt;SPAN class=""&gt; Then I changed the partition of SharedRAM in the link file to 0x34600000, the size of 2M, and then read the content of 0x36000000. The A core could not read the value written by the M core.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;SharedRAM (RW) : ORIGIN = 0x34000000, LENGTH = 0x00200000 /* 2MB */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;So why?&lt;SPAN&gt;Do you have any suggestions&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2023 10:21:33 GMT</pubDate>
    <dc:creator>Quentin2022</dc:creator>
    <dc:date>2023-03-10T10:21:33Z</dc:date>
    <item>
      <title>S32g3 ipcf debugging</title>
      <link>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1612326#M2415</link>
      <description>&lt;P&gt;Hi，nxp:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN class=""&gt;I'm having trouble debugging ipcf.&lt;/SPAN&gt;&lt;SPAN class=""&gt; The version compiled using the S32DS can communicate with the A core.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;But when I use gcc cgwing build M core sample can't communicate with A core.I have check the code is same with S32DS exsample.also I sure the config for ipcf is no problem.M core init is success but can't get the remote pool data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have make test.In M core sample,&lt;SPAN&gt;I write a fixed value at an address in shared memory,the read this address in A core，but I can't get the value write in M core,and vice versa.so i want to ask is there any other configure ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@s32g399ardb3:~# echo 10 &amp;gt;/sys/kernel/ipc-shm-sample/ping&lt;BR /&gt;root@s32g399ardb3:~# [ 1830.701340] ipc-shm-sample: starting demo...&lt;BR /&gt;[ 1830.701351] ipc-shm-sample: ch 0 &amp;gt;&amp;gt; 20 bytes: SENDING MESSAGES: 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[ 1830.701368] ipc-shm-dev: ipc_shm_acquire_buf(): No free buffer found in channel 1&lt;BR /&gt;[ 1830.701372] ipc-shm-sample: send_data_msg(): failed to get buffer for channel ID 1 and size 32&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The pop ring write read is 0,but in M core sample read is 5, after ipcf_init().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 09:42:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1612326#M2415</guid>
      <dc:creator>Quentin2022</dc:creator>
      <dc:date>2023-03-09T09:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32g3 ipcf debugging</title>
      <link>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1612610#M2424</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;At this moment S32G3 is still under control of distribution, hence we cannot provide much information on the public community. Please, help us either with creating a ticket or sending this inquiry to your local NXP representative/FAE for them to use the appropiate channel.&lt;/P&gt;
&lt;P&gt;As for general information for the IPCF, given that the S32DS application is working, we can only recommend to verify the flags that S32DS is using on the compilation and linking steps.&lt;/P&gt;
&lt;P&gt;Have you verified with a simpler application? to confirm that using your setup does indeed have the expected outcome.&lt;/P&gt;
&lt;P&gt;Please, let us know.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 18:05:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1612610#M2424</guid>
      <dc:creator>Daniel-Aguirre</dc:creator>
      <dc:date>2023-03-09T18:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: S32g3 ipcf debugging</title>
      <link>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1612750#M2429</link>
      <description>&lt;P&gt;Hi Nxp:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;My question is why the content written in M core in my shared memory cannot be read by A core, and the content written in A core cannot be read by M core.It looks like you're operating on two separate pieces of memory.The test code looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In M core after ipcf_init(), before remote_is_ready:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*((uint32 *)0x34100008) = 0xA5A5A5A5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In A core:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;before ipcf_init():&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;addr = (uint32_t *)ioremap(0x34100008, 4);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;shm_err("0x341000008:%x\n", *addr); //printk 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;So, for shared memory operations, do we need any configuration on the M core?&lt;/SPAN&gt;&lt;SPAN class=""&gt; Want to be shareable or cacheable_not?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 01:41:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1612750#M2429</guid>
      <dc:creator>Quentin2022</dc:creator>
      <dc:date>2023-03-10T01:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32g3 ipcf debugging</title>
      <link>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1613094#M2432</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found that the partitioning of the SharedRAM in the link file caused, once I split the SharedRAM, then the A-core and M-core operations in this segment of memory looked as if they were independent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I did A test, first use the default link file, partition SharedRAM address is 0x34000000, size 2M, then M core to write 0x34600000 address, in A core read the address out the correct value.&lt;/SPAN&gt;&lt;SPAN class=""&gt; Then I changed the partition of SharedRAM in the link file to 0x34600000, the size of 2M, and then read the content of 0x36000000. The A core could not read the value written by the M core.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;SharedRAM (RW) : ORIGIN = 0x34000000, LENGTH = 0x00200000 /* 2MB */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;So why?&lt;SPAN&gt;Do you have any suggestions&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 10:21:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1613094#M2432</guid>
      <dc:creator>Quentin2022</dc:creator>
      <dc:date>2023-03-10T10:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32g3 ipcf debugging</title>
      <link>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1613268#M2433</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Maybe we don't fully understand the scope of your application. We are looking into the Linker file that is provided on the IPCF (non-multi) examples, and we see that the 0x34600000 is being taken by the int_sram_c3 declaration, for which might be the problem you are seeing.&lt;/P&gt;
&lt;P&gt;Again, might be that we are not understanding the general implementation.&lt;/P&gt;
&lt;P&gt;If you modified the linker file as needed, did you change the structures/address on the IPCF application running on the A/M7 core? Given that the sample that is provided assumes no modifications are done to the linker itself, the A/M7 core uses a predefined address on the peripheral itself. Below will be the configuration for the M7 core on the S32G2 implementation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielAguirre_0-1678468888636.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/214079i35362E1572EB6458/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielAguirre_0-1678468888636.png" alt="DanielAguirre_0-1678468888636.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is this also being modified?&lt;/P&gt;
&lt;P&gt;Please, let us know.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 17:24:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1613268#M2433</guid>
      <dc:creator>Daniel-Aguirre</dc:creator>
      <dc:date>2023-03-10T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: S32g3 ipcf debugging</title>
      <link>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1613953#M2445</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I solved it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;very thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 10:08:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1613953#M2445</guid>
      <dc:creator>Quentin2022</dc:creator>
      <dc:date>2023-03-13T10:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: S32g2 ipcf debugging</title>
      <link>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1617534#M2505</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have trouble in IPCF communication between A53 and M7. I am using s32g hardware.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From this link, i have built the modules manually- git clone &lt;A href="https://source.codeaurora.org/external/autobsps32/ipcf/ipc-shm/" target="_blank"&gt;https://source.codeaurora.org/external/autobsps32/ipcf/ipc-shm/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Copied these ipc-shm-dev.ko, ipc-shm-sample.ko and ipc-shm-uio.ko files to board.&lt;/P&gt;&lt;P&gt;In uboot level, i have executed the below commands, [IPCF_Example_S32G274_M7_0.bin downloaded from NXP]&lt;/P&gt;&lt;P&gt;=&amp;gt; dcache off&lt;BR /&gt;=&amp;gt; mw.q 0x34000000 0x0 0x100000&lt;BR /&gt;=&amp;gt; fatload mmc 0:1 0x80000000 IPCF_Example_S32G274_M7_0.bin&lt;BR /&gt;=&amp;gt; cp.q 0x80000000 0x34300000 0x60000&lt;BR /&gt;=&amp;gt; startm7 0x34401000&lt;BR /&gt;Starting CM7_0 core at SRAM address 0x34401000 ... done.&lt;BR /&gt;=&amp;gt;boot&lt;/P&gt;&lt;P&gt;Board is booted and able to load the modules as shown below:&lt;/P&gt;&lt;P&gt;root@ubuntu-s32g274ateraaceubuntu:/home/bluebox# insmod ipc-shm-dev.ko&lt;BR /&gt;root@ubuntu-s32g274ateraaceubuntu:/home/bluebox# insmod&amp;nbsp; ipc-shm-sample.ko&lt;BR /&gt;root@ubuntu-s32g274ateraaceubuntu:/home/bluebox#&lt;/P&gt;&lt;P&gt;While sending the message it is failed:&lt;BR /&gt;root@ubuntu-s32g274ateraaceubuntu:/# dmesg -c &amp;gt; /dev/null&lt;BR /&gt;root@ubuntu-s32g274ateraaceubuntu:/# echo 10 &amp;gt; /sys/kernel/ipc-shm-sample/ping&lt;BR /&gt;root@ubuntu-s32g274ateraaceubuntu:/# [ 2392.119337] ipc-shm-sample: send_data_msg(): failed to get buffer for channel ID 1 and size 16&amp;nbsp;root@ubuntu-s32g274ateraaceubuntu:/# dmesg -c&lt;BR /&gt;[ 2392.119301] ipc-shm-sample: starting demo...&lt;BR /&gt;[ 2392.119326] ipc-shm-sample: ch 0 &amp;gt;&amp;gt; 20 bytes: SENDING MESSAGES: 10&lt;BR /&gt;[ 2392.119337] ipc-shm-sample: send_data_msg(): failed to get buffer for channel ID 1 and size 16&lt;BR /&gt;root@ubuntu-s32g274ateraaceubuntu:/#&lt;/P&gt;&lt;P&gt;Can you please help me. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 09:51:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1617534#M2505</guid>
      <dc:creator>Vineesha</dc:creator>
      <dc:date>2023-03-17T09:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32g3 ipcf debugging</title>
      <link>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1651742#M3229</link>
      <description>Could you please paste menu path for the ipcf_shm_cfg window for me ? thanks.</description>
      <pubDate>Wed, 17 May 2023 06:18:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1651742#M3229</guid>
      <dc:creator>fengxianeric</dc:creator>
      <dc:date>2023-05-17T06:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: S32g2 ipcf debugging</title>
      <link>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1651760#M3230</link>
      <description>me too</description>
      <pubDate>Wed, 17 May 2023 06:44:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1651760#M3230</guid>
      <dc:creator>fengxianeric</dc:creator>
      <dc:date>2023-05-17T06:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32g2 ipcf debugging</title>
      <link>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1654518#M3291</link>
      <description>&lt;P&gt;- Disable Data Cache from uboot::&lt;/P&gt;&lt;P&gt;dcache off&lt;/P&gt;&lt;P&gt;- Zero-set SRAM shared memory used by both sample apps::&lt;/P&gt;&lt;P&gt;mw.q 0x34000000 0x0 0x100000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- Load binaries in DDRAM and after is SRAM::&lt;/P&gt;&lt;P&gt;fatload mmc 0:1 0x80000000 IPCF_Example_multi_instance_S32G399_M7_0.bin&lt;BR /&gt;&lt;BR /&gt;cp.q 0x80000000 0x34100000 0x30000&lt;BR /&gt;fatload mmc 0:1 0x80000000 IPCF_Example_multi_instance_S32G399_M7_1.bin&lt;BR /&gt;&lt;BR /&gt;cp.q 0x80000000 0x34200000 0x30000&lt;/P&gt;&lt;P&gt;- Start M7 core (the argument is the address of the Interrupt Vector)::&lt;/P&gt;&lt;P&gt;startm7 0x34181000&lt;/P&gt;&lt;P&gt;- Boot Linux :&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 07:31:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32g3-ipcf-debugging/m-p/1654518#M3291</guid>
      <dc:creator>fengxianeric</dc:creator>
      <dc:date>2023-05-22T07:31:29Z</dc:date>
    </item>
  </channel>
</rss>

