<?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: S32K358 IPCF mem size calculation in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1843786#M33996</link>
    <description>&lt;P&gt;for S32k3xx will be in next release &lt;LI-EMOJI id="lia_grinning-face-with-smiling-eyes" title=":grinning_face_with_smiling_eyes:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 08:29:31 GMT</pubDate>
    <dc:creator>nxf45396</dc:creator>
    <dc:date>2024-04-10T08:29:31Z</dc:date>
    <item>
      <title>S32K358 IPCF mem size calculation</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1762830#M28935</link>
      <description>&lt;P&gt;Hello NXP community,&lt;/P&gt;&lt;P&gt;I am interested in how the IPCF shared memory need is calculated correctly.&lt;/P&gt;&lt;P&gt;The project has 0x15000 of shared RAM assigend to c0 and c2 in the linker file and in the IPCF config shared mem size.&lt;/P&gt;&lt;P&gt;Further I created two channels with one buffer pool each. The pool of the first channel contains 18 buffers with size 4. The pool of the second channel should contain 1220 buffers of size&amp;nbsp;&lt;SPAN&gt;34.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All in all this is 18*4+1220*34=41552 raw bytes of data (0xA250).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is way less than the available 0x15000 but still the init of the shared mem (ipc_shm_init) fails returning -2 (IPC_SHM_E_NOMEM).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I reduce the number of buffers of the pool of the second channel to 459 (instead of 1220) it is working fine. 460 will fail again. But the total raw data is then limited to only&amp;nbsp;18*4+459*34=15678 (0x3D3E) leaving a hole of 0x112C2 bytes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is not possible that the configuration needs such an amount of mem space, is it? Is it a bug? What am I missing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: the focus of the attached project is the configuration of IPCF not the code which is simply the example code. Breakpoint at the line of "&lt;/SPAN&gt;&lt;SPAN&gt;err = ipc_shm_init(&amp;amp;ipcf_shm_instances_cfg);" stepping over and evaluating the error code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 15:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1762830#M28935</guid>
      <dc:creator>Iota</dc:creator>
      <dc:date>2023-11-23T15:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 IPCF mem size calculation</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1765421#M29127</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223698"&gt;@Iota&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is the IPCF memory size layout.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf78987_0-1701238587427.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/252046iA68A505AE058AE8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf78987_0-1701238587427.png" alt="nxf78987_0-1701238587427.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf78987_1-1701238605849.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/252048i84E726CA1E15A955/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf78987_1-1701238605849.png" alt="nxf78987_1-1701238605849.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can refer to the above images to calculate&amp;nbsp;&lt;SPAN&gt;IPCF mem size.&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;Dan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 06:18:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1765421#M29127</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2023-11-29T06:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 IPCF mem size calculation</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1765553#M29140</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199019"&gt;@DanNguyenDuy&lt;/a&gt;&amp;nbsp;thank you for the memory size layout.&lt;/P&gt;&lt;P&gt;Using this for my configuration results in the following:&lt;/P&gt;&lt;P&gt;16 + ( 19 × 8 ) + [ring channel 0]&lt;/P&gt;&lt;P&gt;16 + ( 19 × 8 ) + [ring pool 0]&lt;/P&gt;&lt;P&gt;18 × 4 + [data]&lt;/P&gt;&lt;P&gt;16 + ( 460 × 8 ) + [ring channel 1]&lt;/P&gt;&lt;P&gt;16 + ( 460 × 8 ) + [ring pool 0]&lt;/P&gt;&lt;P&gt;459 × 34 [data]&lt;/P&gt;&lt;P&gt;=&amp;nbsp;23382 (0x5B56)&lt;/P&gt;&lt;P&gt;But this is still far away from 0x15000 and the init still fails. Do you see another point in my project that could fail during initialization with return value -2?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:55:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1765553#M29140</guid>
      <dc:creator>Iota</dc:creator>
      <dc:date>2023-11-29T08:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 IPCF mem size calculation</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1765648#M29145</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223698"&gt;@Iota&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Maybe, you calculated wrong. This is the right calculation.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf78987_0-1701256152641.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/252109i5EA678B9DF456CCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf78987_0-1701256152641.png" alt="nxf78987_0-1701256152641.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 11:09:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1765648#M29145</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2023-11-29T11:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 IPCF mem size calculation</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1766267#M29175</link>
      <description>&lt;P&gt;Hello Dan&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199019"&gt;@DanNguyenDuy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for the detailed information. If the calculation is correct and more than enough shared mem size is allocated via the IPCF config - what could be the root cause of the&amp;nbsp;ipc_shm_init function returning IPC_SHM_E_NOMEM?&lt;/P&gt;&lt;P&gt;I think it is in&amp;nbsp;managed_channel_init where it checks if pool fits into the shared memory. But this should be the case so there should not be any reason to return the error here...&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 07:31:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1766267#M29175</guid>
      <dc:creator>Iota</dc:creator>
      <dc:date>2023-11-30T07:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 IPCF mem size calculation</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1768644#M29298</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223698"&gt;@Iota&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Sorry for my wrong calculation. This is the correct&amp;nbsp;calculation.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf78987_0-1701743561886.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/252976i01A186995F7C85D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf78987_0-1701743561886.png" alt="nxf78987_0-1701743561886.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 02:33:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1768644#M29298</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2023-12-05T02:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 IPCF mem size calculation</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1843178#M33969</link>
      <description>&lt;P&gt;for new versions of IPCF you can use the defines from &lt;STRONG&gt;ipc_ip_cfg_defines.h&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;#define IPC_SHM_MEM_SIZE_IPCF_INSTANCE0 0x&lt;BR /&gt;#define IPC_SHM_MEM_SIZE_IPCF_INSTANCE1 0x&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 12:22:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1843178#M33969</guid>
      <dc:creator>nxf45396</dc:creator>
      <dc:date>2024-04-09T12:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 IPCF mem size calculation</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1843242#M33974</link>
      <description>&lt;P&gt;Thanks for the reply &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/168289"&gt;@nxf45396&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Since what version this define will be generated? We're currently using 4.1.0 for the S32K3 and I am not getting these defines.&lt;BR /&gt;AFAIK 4.1.0 is the latest one available for S32K3?&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:49:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1843242#M33974</guid>
      <dc:creator>AndreasStolze</dc:creator>
      <dc:date>2024-04-09T14:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 IPCF mem size calculation</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1843635#M33987</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223698"&gt;@Iota&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ed bqe bqf bqg bqh bqi bqj bqk bql bqm bqn bqo bqp bqq bqr bqs bqt bqu bqv bqw bqx bqy bqz bra brb brc brd bre brf brg brh bri brj brk brl"&gt;Before call ipc_shm_init function(), the share memory must be cleared.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ed bqe bqf bqg bqh bqi bqj bqk bql bqm bqn bqo bqp bqq bqr bqs bqt bqu bqv bqw bqx bqy bqz bra brb brc brd bre brf brg brh bri brj brk brl"&gt;Did you to do that?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ed bqe bqf bqg bqh bqi bqj bqk bql bqm bqn bqo bqp bqq bqr bqs bqt bqu bqv bqw bqx bqy bqz bra brb brc brd bre brf brg brh bri brj brk brl"&gt;Best regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ed bqe bqf bqg bqh bqi bqj bqk bql bqm bqn bqo bqp bqq bqr bqs bqt bqu bqv bqw bqx bqy bqz bra brb brc brd bre brf brg brh bri brj brk brl"&gt;Dan&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 06:26:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1843635#M33987</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2024-04-10T06:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 IPCF mem size calculation</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1843786#M33996</link>
      <description>&lt;P&gt;for S32k3xx will be in next release &lt;LI-EMOJI id="lia_grinning-face-with-smiling-eyes" title=":grinning_face_with_smiling_eyes:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 08:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1843786#M33996</guid>
      <dc:creator>nxf45396</dc:creator>
      <dc:date>2024-04-10T08:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 IPCF mem size calculation</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1895996#M37008</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/168289"&gt;@nxf45396&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any news when the update will drop?&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 15:06:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-IPCF-mem-size-calculation/m-p/1895996#M37008</guid>
      <dc:creator>AndreasStolze</dc:creator>
      <dc:date>2024-06-28T15:06:29Z</dc:date>
    </item>
  </channel>
</rss>

