<?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>S32KのトピックPFLASH configuration not changing access to flash behaviour</title>
    <link>https://community.nxp.com/t5/S32K/PFLASH-configuration-not-changing-access-to-flash-behaviour/m-p/1695013#M25571</link>
    <description>&lt;P&gt;On S32K344 enabling prefetch and buffering on flash controller does not produce any visible difference when reading from flash memory. As far as I understand Technical Reference manual for S32Kxx enabling Prefetch and Data Buffers should result in shorter reading time, overall, from flash memory after first read.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, that doesn't happen in my case - every read takes the same time regardless of Data Buffers or Prefetch being enabled or disabled.&lt;/P&gt;&lt;P&gt;My S32K344 also has disabled lockstep so we are using both Core1 and Core0.&amp;nbsp; So for both PCRF0 and PCRF1 registers PxDP, PxCP, PxDB and PxCB fields are enabled. Reading is done from task that is run on Core0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fgolubic_0-1690545908957.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234133i7EC3D97AE70D4EE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fgolubic_0-1690545908957.png" alt="fgolubic_0-1690545908957.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following Technical Reference Manual registers are set before starting second core and code execution is in system RAM.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fgolubic_0-1690546163875.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234134iACFF21294D79069E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fgolubic_0-1690546163875.png" alt="fgolubic_0-1690546163875.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there anything else or any additional feature that needs to be activated for PFLASH to work as suggested above?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Reading from flash was tried on a couple of memory locations inside flash with different data varying between 50 bytes and 900 bytes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, after inspecting memory location of PFCR registers in raw memory it seems that each core uses different endianness.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Core1 memory snapshot of PFCR0:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fgolubic_1-1690546838269.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234135i8CD7C287C6008E5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fgolubic_1-1690546838269.png" alt="fgolubic_1-1690546838269.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Core0 memory snapshot of PFCR0:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fgolubic_2-1690546927130.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234136iB678A1ED13A749B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fgolubic_2-1690546927130.png" alt="fgolubic_2-1690546927130.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is the same for PFCR1. It looks like from the likes of Technical Reference that this cannot be changed. Also, registers on other memory locations do not have this issue.&lt;/P&gt;&lt;P&gt;Another question is whether this is something that could impact work of PFLASH or it has nothing to do with the issue at hand.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 12:28:03 GMT</pubDate>
    <dc:creator>fgolubic</dc:creator>
    <dc:date>2023-07-28T12:28:03Z</dc:date>
    <item>
      <title>PFLASH configuration not changing access to flash behaviour</title>
      <link>https://community.nxp.com/t5/S32K/PFLASH-configuration-not-changing-access-to-flash-behaviour/m-p/1695013#M25571</link>
      <description>&lt;P&gt;On S32K344 enabling prefetch and buffering on flash controller does not produce any visible difference when reading from flash memory. As far as I understand Technical Reference manual for S32Kxx enabling Prefetch and Data Buffers should result in shorter reading time, overall, from flash memory after first read.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, that doesn't happen in my case - every read takes the same time regardless of Data Buffers or Prefetch being enabled or disabled.&lt;/P&gt;&lt;P&gt;My S32K344 also has disabled lockstep so we are using both Core1 and Core0.&amp;nbsp; So for both PCRF0 and PCRF1 registers PxDP, PxCP, PxDB and PxCB fields are enabled. Reading is done from task that is run on Core0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fgolubic_0-1690545908957.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234133i7EC3D97AE70D4EE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fgolubic_0-1690545908957.png" alt="fgolubic_0-1690545908957.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following Technical Reference Manual registers are set before starting second core and code execution is in system RAM.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fgolubic_0-1690546163875.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234134iACFF21294D79069E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fgolubic_0-1690546163875.png" alt="fgolubic_0-1690546163875.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there anything else or any additional feature that needs to be activated for PFLASH to work as suggested above?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Reading from flash was tried on a couple of memory locations inside flash with different data varying between 50 bytes and 900 bytes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, after inspecting memory location of PFCR registers in raw memory it seems that each core uses different endianness.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Core1 memory snapshot of PFCR0:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fgolubic_1-1690546838269.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234135i8CD7C287C6008E5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fgolubic_1-1690546838269.png" alt="fgolubic_1-1690546838269.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Core0 memory snapshot of PFCR0:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fgolubic_2-1690546927130.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234136iB678A1ED13A749B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fgolubic_2-1690546927130.png" alt="fgolubic_2-1690546927130.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is the same for PFCR1. It looks like from the likes of Technical Reference that this cannot be changed. Also, registers on other memory locations do not have this issue.&lt;/P&gt;&lt;P&gt;Another question is whether this is something that could impact work of PFLASH or it has nothing to do with the issue at hand.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 12:28:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PFLASH-configuration-not-changing-access-to-flash-behaviour/m-p/1695013#M25571</guid>
      <dc:creator>fgolubic</dc:creator>
      <dc:date>2023-07-28T12:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: PFLASH configuration not changing access to flash behaviour</title>
      <link>https://community.nxp.com/t5/S32K/PFLASH-configuration-not-changing-access-to-flash-behaviour/m-p/1695088#M25579</link>
      <description>&lt;P&gt;You need to configure different registers than you mentioned (P0 and P2). Otherwise I think there is nothing more to configure.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_0-1690555167264.png" style="width: 629px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234159i6CD5F5ACC146DB9B/image-dimensions/629x272?v=v2" width="629" height="272" role="button" title="davidtosenovjan_0-1690555167264.png" alt="davidtosenovjan_0-1690555167264.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 14:41:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PFLASH-configuration-not-changing-access-to-flash-behaviour/m-p/1695088#M25579</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-07-28T14:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: PFLASH configuration not changing access to flash behaviour</title>
      <link>https://community.nxp.com/t5/S32K/PFLASH-configuration-not-changing-access-to-flash-behaviour/m-p/1705839#M26134</link>
      <description>&lt;P&gt;I did activate P0 and P2. I also tried any combination of P0, P1 and P3 and I see no changes in timing when reading from flash repeatedly. Also tried only on one core running an application with P0 and I see no changes in timing when reading from flash repeatedly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My conclusion drawn from Reference Manual is that either something is not configured or every time I try to read flash it generates cache miss (although I am reading the same, unchanged data) and flash controller accesses flash memory directly.&lt;/P&gt;&lt;P&gt;As Technical Reference is not elaborate on how cache in flash controller is working, could you share some insight in it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 14:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PFLASH-configuration-not-changing-access-to-flash-behaviour/m-p/1705839#M26134</guid>
      <dc:creator>fgolubic</dc:creator>
      <dc:date>2023-08-16T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: PFLASH configuration not changing access to flash behaviour</title>
      <link>https://community.nxp.com/t5/S32K/PFLASH-configuration-not-changing-access-to-flash-behaviour/m-p/1709750#M26384</link>
      <description>&lt;P&gt;Can you described method how you read PCFR0 registers? It does not make sense to read different value by each code, they surely do not use different endianness.&lt;/P&gt;
&lt;P&gt;Second point is whether during these tests you have disabled data and instruction caches (otherwise it could be difficult to see differences between flash pre-fetching during such isolated tests).&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 09:04:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PFLASH-configuration-not-changing-access-to-flash-behaviour/m-p/1709750#M26384</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-08-23T09:04:06Z</dc:date>
    </item>
  </channel>
</rss>

