<?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 MPC5744P Memory Remapping in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/MPC5744P-Memory-Remapping/m-p/1877597#M3778</link>
    <description>&lt;P&gt;I am testing the memory overlay functionality for the MPC5744P.&amp;nbsp; I can get RAM overlay to work as expected:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static void Overlay(uint32_t word0, uint32_t word1, uint32_t word2, uint32_t descriptor)
{
    PFLASH-&amp;gt;PFCRD[descriptor].Word0 = word0;    /* Logical address */
    PFLASH-&amp;gt;PFCRD[descriptor].Word1 = word1;    /* Physical address */
    PFLASH-&amp;gt;PFCRD[descriptor].Word2 = word2;    /* Enable remapping for individual masters, size of page */
    PFLASH-&amp;gt;PFCRDE |= (uint32_t)0x80000000 &amp;gt;&amp;gt; descriptor;    /* Enable descriptor */
    PFLASH-&amp;gt;PFCRCR |= (PFLASH_PFCRCR_GRMEN_MASK + PFLASH_PFCRCR_IRMEN_MASK);  /* Global Remap Enable */
    //PFLASH-&amp;gt;PFCRCR |= (PFLASH_PFCRCR_GRMEN_MASK);  /* Global Remap Enable */
}

... in app...
    	Overlay(0x09100000, 0x40040000, 0xFFFF0007, 1);
    	*(uint32_t*)0x40040000 = 0xAABBCCDD;
    	*(uint32_t*)0x40040004 = 0x11223344;
...&lt;/LI-CODE&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;When I attempt to do the same operation for mapping flash, I do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;...
       Overlay(0x09140000, 0x01000000, 0xFFFF0007, 0);
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct me if I am wrong, but I am under the impression by "default" 0x09000000 mirrors 0x01000000, but manipulating the overlay functionality in the PFLASH module allows a user to create a virtual address so to speak to point to a different region - such as I did successfully with the RAM overlay.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I am seeing is the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrisg101080_0-1717015371846.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281571i8D68602131BABB4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chrisg101080_0-1717015371846.png" alt="chrisg101080_0-1717015371846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After I call the "Overlay" routine, I get this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrisg101080_1-1717015441872.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281572i7B466D45F324C352/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chrisg101080_1-1717015441872.png" alt="chrisg101080_1-1717015441872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I do not understand why 0x09140000 is not mirroring 0x01000000...&amp;nbsp; It looks like "junk" data in the memory window for 0x09140000.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2024 14:15:08 GMT</pubDate>
    <dc:creator>chrisg101080</dc:creator>
    <dc:date>2024-05-30T14:15:08Z</dc:date>
    <item>
      <title>MPC5744P Memory Remapping</title>
      <link>https://community.nxp.com/t5/S32-SDK/MPC5744P-Memory-Remapping/m-p/1877597#M3778</link>
      <description>&lt;P&gt;I am testing the memory overlay functionality for the MPC5744P.&amp;nbsp; I can get RAM overlay to work as expected:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static void Overlay(uint32_t word0, uint32_t word1, uint32_t word2, uint32_t descriptor)
{
    PFLASH-&amp;gt;PFCRD[descriptor].Word0 = word0;    /* Logical address */
    PFLASH-&amp;gt;PFCRD[descriptor].Word1 = word1;    /* Physical address */
    PFLASH-&amp;gt;PFCRD[descriptor].Word2 = word2;    /* Enable remapping for individual masters, size of page */
    PFLASH-&amp;gt;PFCRDE |= (uint32_t)0x80000000 &amp;gt;&amp;gt; descriptor;    /* Enable descriptor */
    PFLASH-&amp;gt;PFCRCR |= (PFLASH_PFCRCR_GRMEN_MASK + PFLASH_PFCRCR_IRMEN_MASK);  /* Global Remap Enable */
    //PFLASH-&amp;gt;PFCRCR |= (PFLASH_PFCRCR_GRMEN_MASK);  /* Global Remap Enable */
}

... in app...
    	Overlay(0x09100000, 0x40040000, 0xFFFF0007, 1);
    	*(uint32_t*)0x40040000 = 0xAABBCCDD;
    	*(uint32_t*)0x40040004 = 0x11223344;
...&lt;/LI-CODE&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;When I attempt to do the same operation for mapping flash, I do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;...
       Overlay(0x09140000, 0x01000000, 0xFFFF0007, 0);
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct me if I am wrong, but I am under the impression by "default" 0x09000000 mirrors 0x01000000, but manipulating the overlay functionality in the PFLASH module allows a user to create a virtual address so to speak to point to a different region - such as I did successfully with the RAM overlay.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I am seeing is the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrisg101080_0-1717015371846.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281571i8D68602131BABB4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chrisg101080_0-1717015371846.png" alt="chrisg101080_0-1717015371846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After I call the "Overlay" routine, I get this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrisg101080_1-1717015441872.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281572i7B466D45F324C352/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chrisg101080_1-1717015441872.png" alt="chrisg101080_1-1717015441872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I do not understand why 0x09140000 is not mirroring 0x01000000...&amp;nbsp; It looks like "junk" data in the memory window for 0x09140000.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 14:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/MPC5744P-Memory-Remapping/m-p/1877597#M3778</guid>
      <dc:creator>chrisg101080</dc:creator>
      <dc:date>2024-05-30T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P Memory Remapping</title>
      <link>https://community.nxp.com/t5/S32-SDK/MPC5744P-Memory-Remapping/m-p/1878947#M3780</link>
      <description>&lt;P&gt;MPC5744P device does not support flash over flash overlay (as it is on MPC5748G). Only flash remapping by SRAM is working with MPC5744P device.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 11:32:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/MPC5744P-Memory-Remapping/m-p/1878947#M3780</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2024-05-31T11:32:42Z</dc:date>
    </item>
  </channel>
</rss>

