<?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: S32K144 FLASH CACHE in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778386#M2407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Liu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 May 2019 08:52:13 GMT</pubDate>
    <dc:creator>dsfire</dc:creator>
    <dc:date>2019-05-05T08:52:13Z</dc:date>
    <item>
      <title>S32K144 FLASH CACHE</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778380#M2401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;At present I work on write to PFLASH and DFLASH memory. Im little confused about disabling flash cache. There is flash partitioning example in S32SDK_S32K14x_EAR_0.8.6 where is code disabling flash cache:&lt;/P&gt;&lt;P&gt;/* Disable cache to ensure that all flash operations will take effect instantly,&lt;BR /&gt; * this is device dependent */&lt;BR /&gt;#ifdef S32K144_SERIES&lt;BR /&gt; MSCM-&amp;gt;OCMDR[0u] |= MSCM_OCMDR_OCM0(0xFu) | MSCM_OCMDR_OCM1(0xFu) | MSCM_OCMDR_OCM2(0xFu);&lt;BR /&gt; MSCM-&amp;gt;OCMDR[1u] |= MSCM_OCMDR_OCM0(0xFu) | MSCM_OCMDR_OCM1(0xFu) | MSCM_OCMDR_OCM2(0xFu);&lt;BR /&gt; MSCM-&amp;gt;OCMDR[2u] |= MSCM_OCMDR_OCM0(0xFu) | MSCM_OCMDR_OCM1(0xFu) | MSCM_OCMDR_OCM2(0xFu);&lt;BR /&gt; MSCM-&amp;gt;OCMDR[3u] |= MSCM_OCMDR_OCM0(0xFu) | MSCM_OCMDR_OCM1(0xFu) | MSCM_OCMDR_OCM2(0xFu);&lt;BR /&gt;#endif /* S32K144_SERIES */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in S32K-RM rev. 6 theres no bits OCM0, OCM2 for registers OCMDR[0],&amp;nbsp;&lt;SPAN&gt;OCMDR[1] and any OCMx bits in OCMDr[2] and even register OCMDR[3]. OCM1 is 2bits wide, not 4bits like in axample above. Some of bits which is write in example is Reserved based on S32K-RM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think this code should look like this for S32K144:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#ifdef S32K144_SERIES&lt;BR /&gt;MSCM-&amp;gt;OCMDR[0u] |= MSCM_OCMDR_OCM1(0x3u);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MSCM-&amp;gt;OCMDR[1u] |= MSCM_OCMDR_OCM1(0x3u);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#endif /* S32K144_SERIES */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please clarify how to disable cache for memories for S32K144 0N57u.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What are advandages/disadvantages for disabling cache when write/erase PFLASH, DFLASH and should be it disabled when I want for example update firmware by my custom bootloader?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Arkadiusz&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 09:37:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778380#M2401</guid>
      <dc:creator>arkadyosh</dc:creator>
      <dc:date>2018-02-28T09:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLASH CACHE</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778381#M2402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Arkadiusz,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thank you for the report, it has been forwarded to SDK design team and it will be fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The cache should be disabled before&amp;nbsp;modifying the flash content because&amp;nbsp;the buffer is not updated automatically.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 09:48:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778381#M2402</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-03-02T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLASH CACHE</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778382#M2403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Thank you for answer, but one more question, should I disable PFLASH and DFLASH cache if I want write only to DFLASH or just only DFLASH cache?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arkadiusz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 09:13:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778382#M2403</guid>
      <dc:creator>arkadyosh</dc:creator>
      <dc:date>2018-03-12T09:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLASH CACHE</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778383#M2404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Arkadiusz,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;There is no need to disable both if you modify only one of them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 20:17:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778383#M2404</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-03-12T20:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLASH CACHE</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778384#M2405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which documents mentioned these "The cache should be disabled before modifying the flash content because the buffer is not updated automatically"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should i disable instruction cache before modifying corresponding flash content with the following statement?&lt;/P&gt;&lt;P&gt;LMEM-&amp;gt;PCCCR = LMEM_PCCCR_INVW0(1) | LMEM_PCCCR_INVW1(1) | LMEM_PCCCR_GO(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Liu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 08:58:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778384#M2405</guid>
      <dc:creator>dsfire</dc:creator>
      <dc:date>2019-04-24T08:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLASH CACHE</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778385#M2406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Liu,&lt;/P&gt;&lt;P&gt;This is not explicitly&amp;nbsp;required but recommended, this is on the user's responsibility.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could refer to&amp;nbsp;AN4745 Optimizing Performance on Kinetis&amp;nbsp;K-series MCUs&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75526i2399AF13C805DAB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 14:44:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778385#M2406</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-04-30T14:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLASH CACHE</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778386#M2407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Liu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 May 2019 08:52:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778386#M2407</guid>
      <dc:creator>dsfire</dc:creator>
      <dc:date>2019-05-05T08:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLASH CACHE</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778387#M2408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，Arkadiusz,&lt;/P&gt;&lt;P&gt;Have you solved&amp;nbsp; this problem？&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found that if i put this code in my project,the time of executing every line code will be slow when i use IAR&amp;nbsp;compier.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#ifdef S32K146_SERIES&lt;BR /&gt;MSCM-&amp;gt;OCMDR[0u] |= MSCM_OCMDR_OCM1(0xFu);&lt;BR /&gt;MSCM-&amp;gt;OCMDR[1u] |= MSCM_OCMDR_OCM1(0xFu);&lt;BR /&gt;MSCM-&amp;gt;OCMDR[2u] |= MSCM_OCMDR_OCM1(0xFu);&lt;BR /&gt;#endif /* S32K144_SERIES */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I really dont konw what&lt;SPAN&gt; does this code mean?&amp;nbsp; i wonder that do i have to using this code to disable&amp;nbsp;cache&amp;nbsp; when write/erase PFLASH, DFLASH.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 07:09:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778387#M2408</guid>
      <dc:creator>assangeye</dc:creator>
      <dc:date>2019-05-28T07:09:41Z</dc:date>
    </item>
  </channel>
</rss>

