<?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: IAR memory window not change after flash program in S32K</title>
    <link>https://community.nxp.com/t5/S32K/IAR-memory-window-not-change-after-flash-program/m-p/2117557#M49962</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234106"&gt;@qimao-marvin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, but there’s also the prefetch buffer—as I mentioned, this is a separate cache.&lt;/SPAN&gt;&lt;BR style="color: #d6d6d6; font-family: 'Segoe Sans', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #1f1f1f; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-darkreader-inline-color="" data-darkreader-inline-bgcolor="" /&gt;&lt;SPAN&gt;However, it’s only a 128-bit buffer and can be updated simply by reading data from a different location.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Daniel&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jun 2025 08:08:53 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2025-06-17T08:08:53Z</dc:date>
    <item>
      <title>IAR memory window not change after flash program</title>
      <link>https://community.nxp.com/t5/S32K/IAR-memory-window-not-change-after-flash-program/m-p/2116249#M49883</link>
      <description>&lt;P&gt;p:S32K146&lt;/P&gt;&lt;P&gt;IAR:9.30.1&lt;/P&gt;&lt;P&gt;In the OTA progress, after erase ,the data at the&amp;nbsp;which address is 0x20000 all become 0xff,but after program like 8 bytes for one time , the data at the 0x20000 looked at the memory window of IAR is still 0xff,but after 128 or 256 bytes later, the data is the expected data programmed.However ,at the end of the OTA, when tried to read the flash back by the link,the ata is the same with the file downloaded by the can.&lt;/P&gt;&lt;P&gt;below is the memory window of the IAR&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qimaomarvin_0-1749836869286.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/342888i9B2E83839F67777E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qimaomarvin_0-1749836869286.jpeg" alt="qimaomarvin_0-1749836869286.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qimaomarvin_1-1749837034338.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/342889iD4B21CD4B03C83AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qimaomarvin_1-1749837034338.jpeg" alt="qimaomarvin_1-1749837034338.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is the flash code example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qimaomarvin_2-1749837061857.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/342890i2C2E75758287F716/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qimaomarvin_2-1749837061857.jpeg" alt="qimaomarvin_2-1749837061857.jpeg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qimaomarvin_3-1749837071804.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/342891i5A87995AB4DD91C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qimaomarvin_3-1749837071804.jpeg" alt="qimaomarvin_3-1749837071804.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 17:51:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IAR-memory-window-not-change-after-flash-program/m-p/2116249#M49883</guid>
      <dc:creator>qimao-marvin</dc:creator>
      <dc:date>2025-06-13T17:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: IAR memory window not change after flash program</title>
      <link>https://community.nxp.com/t5/S32K/IAR-memory-window-not-change-after-flash-program/m-p/2116778#M49906</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234106"&gt;@qimao-marvin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It’s possible that the issue is due to either: The IDE memory view not being refreshed, or the effect of cache or the prefetch buffer.&lt;BR /&gt;&lt;BR /&gt;Is the cache enabled?&lt;BR /&gt;If so, it might be affecting what you see in memory.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1750062979319.png" style="width: 581px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/343021i13CCAB7CB1C7F0FB/image-dimensions/581x433?v=v2" width="581" height="433" role="button" title="danielmartynek_0-1750062979319.png" alt="danielmartynek_0-1750062979319.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Prefetch buffer is enabled by default. You can disable it (from SRAM) using the following configuration:&lt;/P&gt;
&lt;P&gt;MSCM-&amp;gt;OCMDR[0u] |= MSCM_OCMDR_OCM1(0x3u);&lt;BR /&gt;MSCM-&amp;gt;OCMDR[1u] |= MSCM_OCMDR_OCM1(0x3u);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Try reading the memory directly from the core and compare it with the flash content to verify consistency.&lt;/P&gt;
&lt;P&gt;In our department, we don’t use the IDE, so we can’t confirm its behavior.&lt;BR /&gt;If the issue persists, it might be worth contacting IAR support to check whether the memory view needs to be manually refreshed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 08:45:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IAR-memory-window-not-change-after-flash-program/m-p/2116778#M49906</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-06-16T08:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: IAR memory window not change after flash program</title>
      <link>https://community.nxp.com/t5/S32K/IAR-memory-window-not-change-after-flash-program/m-p/2117438#M49949</link>
      <description>&lt;P&gt;In the init function of falsh ,the register PCCCR will be set&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;0x85000001U(&lt;/SPAN&gt;&lt;SPAN&gt;Invalidate cache &amp;amp; enable write buffer, cache);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So in order to refresh the memory or read the data directly from flash not from bus, is it be ok to invalid the cache before and after flash program ? or do you have any other better suggestions?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Jun 2025 05:56:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IAR-memory-window-not-change-after-flash-program/m-p/2117438#M49949</guid>
      <dc:creator>qimao-marvin</dc:creator>
      <dc:date>2025-06-17T05:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: IAR memory window not change after flash program</title>
      <link>https://community.nxp.com/t5/S32K/IAR-memory-window-not-change-after-flash-program/m-p/2117557#M49962</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234106"&gt;@qimao-marvin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, but there’s also the prefetch buffer—as I mentioned, this is a separate cache.&lt;/SPAN&gt;&lt;BR style="color: #d6d6d6; font-family: 'Segoe Sans', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #1f1f1f; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-darkreader-inline-color="" data-darkreader-inline-bgcolor="" /&gt;&lt;SPAN&gt;However, it’s only a 128-bit buffer and can be updated simply by reading data from a different location.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Daniel&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 08:08:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IAR-memory-window-not-change-after-flash-program/m-p/2117557#M49962</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-06-17T08:08:53Z</dc:date>
    </item>
  </channel>
</rss>

