<?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: the question about hared memory between two cores in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864563#M4420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/whagiew@126.com"&gt;whagiew@126.com&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;EM&gt;volatile&lt;/EM&gt;&amp;nbsp;has nothing common with cache. You have to use ppc memory barrier/fence instructions to achieve what you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Mar 2019 16:02:44 GMT</pubDate>
    <dc:creator>alexanderfedoto</dc:creator>
    <dc:date>2019-03-26T16:02:44Z</dc:date>
    <item>
      <title>the question about hared memory between two cores</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864557#M4414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the volatile keyword to share the same memory between two cores. When DCache is turned on, the memory values between the two cores are different, and they can only be synchronized when the DCache is turned off.&lt;BR /&gt;In the NXP compiler, how is the volatile keyword explained? In addition to turning off DCache or refreshing DCache, is there any other way to synchronize memory data between two? Looking forward to expert guidance, thank you&lt;/P&gt;&lt;P&gt;best regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2019 04:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864557#M4414</guid>
      <dc:creator>whagiew</dc:creator>
      <dc:date>2019-01-26T04:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: the question about hared memory between two cores</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864558#M4415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me what part are you working on?&lt;/P&gt;&lt;P&gt;Also, it would be useful if you give a little more information about the things you are using in this (IDE, SDK).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2019 20:40:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864558#M4415</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-01-30T20:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: the question about hared memory between two cores</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864559#M4416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;I am using s32ds and I am not using the SDK. Under the conditions of turning on and off DCache, use two cores to read and write 0x40000000 of SRAM respectively. And test using "int" type and "volatile int" type respectively. When the DCache is opened, the SRAM is not updated in time in another core.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Best Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 04:35:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864559#M4416</guid>
      <dc:creator>whagiew</dc:creator>
      <dc:date>2019-02-01T04:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: the question about hared memory between two cores</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864560#M4417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;For a better support I'm going to move this thread to the appropriate community space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 17:14:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864560#M4417</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-02-01T17:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: the question about hared memory between two cores</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864561#M4418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be more helpful if you'll tell which target and what cores do you use.&lt;/P&gt;&lt;P&gt;At first glance Dcache works properly but since there is no cache coherent interconnect between cores you dont see updated value on another core. You have to force write back from cache to memory in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 22:14:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864561#M4418</guid>
      <dc:creator>alexanderfedoto</dc:creator>
      <dc:date>2019-02-01T22:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: the question about hared memory between two cores</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864562#M4419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Thanks for your reply.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I am using S32R274. The two cores are&amp;nbsp; core0(z4) and core2(z7_b).&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I want to use key word "volatile" to write through cache, but failed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I want to know i&lt;SPAN&gt;n the NXP compiler, how is the volatile keyword explained? and how can i&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;force write back from cache to memory.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Thanks.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Best regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 14:50:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864562#M4419</guid>
      <dc:creator>whagiew</dc:creator>
      <dc:date>2019-03-04T14:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: the question about hared memory between two cores</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864563#M4420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/whagiew@126.com"&gt;whagiew@126.com&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;EM&gt;volatile&lt;/EM&gt;&amp;nbsp;has nothing common with cache. You have to use ppc memory barrier/fence instructions to achieve what you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 16:02:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864563#M4420</guid>
      <dc:creator>alexanderfedoto</dc:creator>
      <dc:date>2019-03-26T16:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: the question about hared memory between two cores</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864564#M4421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply, I misunderstood the volatile keyword, the cache is actually memory.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 07:01:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/the-question-about-hared-memory-between-two-cores/m-p/864564#M4421</guid>
      <dc:creator>whagiew</dc:creator>
      <dc:date>2019-03-27T07:01:58Z</dc:date>
    </item>
  </channel>
</rss>

