<?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: MPC5777C EBI external memory access issue in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1179705#M16645</link>
    <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;We have configured EBI to access external memory devices in our application as below&lt;/P&gt;&lt;P&gt;a)&amp;nbsp; External SRAM - CS0 - 0x20000000 - 0x20FFFFFF&lt;/P&gt;&lt;P&gt;b)&amp;nbsp; RTRAM - CS1 - 0x21000000 - 0x21FFFFFF&lt;/P&gt;&lt;P&gt;c)&amp;nbsp; DPRAM - CS2 - 0x22000000 - 0x21FFFFFF&lt;/P&gt;&lt;P&gt;d)&amp;nbsp; DPRAM semaphore - CS3 - 0x23000000 - 0x21FFFFFF&lt;/P&gt;&lt;P&gt;Can you explain the MMU configuration code shared by you and why is it required&lt;/P&gt;</description>
    <pubDate>Sat, 07 Nov 2020 15:05:45 GMT</pubDate>
    <dc:creator>prathapvc</dc:creator>
    <dc:date>2020-11-07T15:05:45Z</dc:date>
    <item>
      <title>MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1177333#M16621</link>
      <description>&lt;P&gt;In the following code you will find the EBI Configuration in my application for MPC5777C and D_CS0 is configured to access external SRAM memory and D_CS1 is configured to access external RTRAM memory&lt;/P&gt;&lt;P&gt;void ExternalMemConfiguration()&lt;BR /&gt;{&lt;BR /&gt;vuint32_t count = 0;&lt;/P&gt;&lt;P&gt;/* Change EBI Physical Base Address to 0x2000_0000 */&lt;BR /&gt;External_SRAM_MMU_init();&lt;/P&gt;&lt;P&gt;//SIU.ECCR.R = 0x00001000;&lt;BR /&gt;// SIU.ECCR.R = 0x00000181;&lt;/P&gt;&lt;P&gt;/* CS0 PCR 256 */&lt;BR /&gt;SIU.PCR[256].R = 0x044C;&lt;BR /&gt;/* CS1 PCR 301 */&lt;BR /&gt;SIU.PCR[301].R = 0x044C;&lt;BR /&gt;/* CS2 PCR 257 */&lt;BR /&gt;SIU.PCR[257].R = 0x044C;&lt;BR /&gt;/* CS3 PCR 258 */&lt;BR /&gt;SIU.PCR[258].R = 0x044C;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* D_RD_WR PCR 294 */&lt;BR /&gt;SIU.PCR[294].R = 0x044C;&lt;/P&gt;&lt;P&gt;/* D_WE0 - D_WE1 PCR 295-296 */&lt;BR /&gt;SIU.PCR[295].R = 0x044C;&lt;BR /&gt;SIU.PCR[296].R = 0x044C;&lt;/P&gt;&lt;P&gt;/* D_OE PCR 297 */&lt;BR /&gt;SIU.PCR[297].R = 0x044C;&lt;/P&gt;&lt;P&gt;/* D_TS PCR 298 */&lt;BR /&gt;SIU.PCR[298].R = 0x044C;&lt;/P&gt;&lt;P&gt;/* D_ALE PCR 299 */&lt;BR /&gt;SIU.PCR[299].R = 0x044C;&lt;/P&gt;&lt;P&gt;/* D_TA PCR 300 */&lt;BR /&gt;SIU.PCR[300].R = 0x044C;&lt;/P&gt;&lt;P&gt;/* D_BDIP PCR 302 */&lt;BR /&gt;SIU.PCR[302].R = 0x044C;&lt;/P&gt;&lt;P&gt;/* D_WE2 - D_WE3 PCR 303 - 304 */&lt;BR /&gt;SIU.PCR[303].R = 0x044C;&lt;BR /&gt;//SIU.PCR[304].R = 0x044C;&lt;/P&gt;&lt;P&gt;/* D_ADD9 - D_ADD11 PCR 305 - 307 */&lt;BR /&gt;for (count = 305; count &amp;lt;= 307; count++)&lt;BR /&gt;{&lt;BR /&gt;SIU.PCR[count].R = 0x044C;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* D_ADD12 - D_ADD15 PCR 259 - 262 */&lt;BR /&gt;for (count = 259; count &amp;lt;= 262; count++)&lt;BR /&gt;{&lt;BR /&gt;SIU.PCR[count].R = 0x044C;&lt;BR /&gt;};&lt;BR /&gt;/* D_ADD16 - D_ADD30 PCR 263 - 277 */&lt;BR /&gt;for (count = 263; count &amp;lt;= 277; count++)&lt;BR /&gt;{&lt;BR /&gt;SIU.PCR[count].R = 0x044C;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* D_DAT0 - D_DAT15 PCR 278 - 293 */&lt;BR /&gt;for (count = 278; count &amp;lt;= 293; count++)&lt;BR /&gt;{&lt;BR /&gt;SIU.PCR[count].R = 0x044C;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//EBI.BMCR.B.BME = 0x0; //Bus Monitor Disabled&lt;/P&gt;&lt;P&gt;/*Base Address: 0x20000803, 16-bit, NoN Mux'd bus */&lt;BR /&gt;EBI.CAL[0].BR.R = 0x20001921; //LWRN =1, PS=1,BI=1,V=1,SBL=0,WEBS=1&lt;BR /&gt;/* Address Mask: 16MB, Zero Wait States - Flow-Through Sync SRAM */&lt;BR /&gt;EBI.CAL[0].OR.R = 0xFF000000;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Base Address: 0x20400803, 16-bit, NoN Mux'd bus */&lt;BR /&gt;EBI.CAL[1].BR.R = 0x21000807;&lt;BR /&gt;/* Address Mask: 16MB, 2 Wait States - */&lt;BR /&gt;EBI.CAL[1].OR.R = 0xFF0000F0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Base Address: 0x20800803, 16-bit, NoN Mux'd bus */&lt;BR /&gt;EBI.CAL[2].BR.R = 0x22001807;//0x20410803&lt;BR /&gt;/* Address Mask: 16MB, 2 Wait States - */&lt;BR /&gt;EBI.CAL[2].OR.R = 0xFF0000F0; //8 wait states*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* /* Base Address: 0x20C00803, 16-bit, NoN Mux'd bus */&lt;BR /&gt;EBI.CAL[3].BR.R = 0x23001801;&lt;BR /&gt;/* Address Mask: 16MB, 2 Wait States - */&lt;BR /&gt;EBI.CAL[3].OR.R = 0xFE0000F0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* MCR - 16-bit mode */&lt;BR /&gt;EBI.MCR.R = 0x00000001;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;void External_SRAM_MMU_init(void)&lt;BR /&gt;{&lt;BR /&gt;//asm("nofralloc");&lt;BR /&gt;&lt;BR /&gt;asm("lis r3, 0x1002"); /* Select TLB entry #, define R/W replacment control */&lt;BR /&gt;asm("mtMAS0 r3"); /* Load MAS0 with 0x1002 0000 for TLB entry #2 */&lt;/P&gt;&lt;P&gt;asm("tlbre"); /* Get TLB entry # information */&lt;BR /&gt;&lt;BR /&gt;asm("mfspr r3, MAS3");&lt;BR /&gt;asm("oris r3, r3, 0x2000"); /* EBI Physical Base Addr changed to 0x2000_0000 */&lt;BR /&gt;asm("ori r3, r3, 0x0000");&lt;BR /&gt;&lt;BR /&gt;asm("mtMAS3 r3");&lt;BR /&gt;&lt;BR /&gt;asm("msync"); /* make sure we finished all memory accesses */&lt;BR /&gt;&lt;BR /&gt;asm("tlbwe"); /* Write entry defined in MAS0 (entry 1 here) to MMU TLB */&lt;BR /&gt;&lt;BR /&gt;asm("isync"); /* Wait for tlbwe to complete, then flush instruction buffer */&lt;BR /&gt;asm("blr");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;external SRAM memory is accessed through address location - 0x206C2000&lt;/P&gt;&lt;P&gt;external RTRAM memory is accessed through address location - 0x21004000&lt;/P&gt;&lt;P&gt;After accessing (i.e. write operation) external SRAM memory location if external RTRAM memory is accessed (i.e. write operation) it is observed that expected data is not found in the above RTRAM memory address location, please clarify how MPC5777C controller will differentiate these memory locations for different devices as only address lines D_ADD09-D_ADD30 is connected to memory devices&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 14:01:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1177333#M16621</guid>
      <dc:creator>prathapvc</dc:creator>
      <dc:date>2020-11-03T14:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1177839#M16626</link>
      <description>&lt;P&gt;Could you please specify used RTRAM device? This&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="cs" data-phrase-index="0"&gt;&lt;SPAN&gt; acronym says nothing to me..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 09:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1177839#M16626</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2020-11-04T09:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1177956#M16630</link>
      <description>&lt;P&gt;&lt;SPAN&gt;RTRAM is the RAM within the BU-64843 (Data device corporation) device which is basically a MIL-STD-1553 data bus chip. We have configured EBI to access this RTRAM through&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;D_CS1. Please find the attached snapshot of this device connected to MPC5777C&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 13:12:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1177956#M16630</guid>
      <dc:creator>prathapvc</dc:creator>
      <dc:date>2020-11-04T13:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1178032#M16632</link>
      <description>&lt;P&gt;Try to use following MMU configuration I have been using in the example&lt;/P&gt;
&lt;P&gt;MPC5777C-External SRAM_test-v0_3-GHS714&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*******************************************************************************&lt;BR /&gt;Function Name : External_SRAM_MMU_init&lt;BR /&gt;Engineer : David Tosenovjan&lt;BR /&gt;Date : Feb-07-2020&lt;BR /&gt;Parameters : &lt;BR /&gt;Modifies : &lt;BR /&gt;Returns : &lt;BR /&gt;Notes : cache inhibited, 512MBytes (the whole EBI space) &lt;BR /&gt;Issues : &lt;BR /&gt;*******************************************************************************/&lt;BR /&gt;static asm void External_SRAM_MMU_init(void)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;e_lis r3,0x1002 // Select TLB entry#, define R/W replacment control&lt;BR /&gt;mtspr MAS0,r3 // Load MAS0 with 0x1002_0000 for TLB entry #2&lt;/P&gt;
&lt;P&gt;e_lis r3,0xc000 // setup 512MBytes to cover the whole EBI space&lt;BR /&gt;e_or2i r3,0x0980 // TLB valid, protected from invalidation&lt;BR /&gt;mtspr MAS1,r3 // Load MAS1 with 0xC000_0980 for TLB entry #2&lt;/P&gt;
&lt;P&gt;se_bgeni r3,2 // virtual address at 0x2000_0000&lt;BR /&gt;e_ori r3,r3,0x0038 // VLE, cache-inhibited, write through&lt;BR /&gt;mtspr MAS2,r3 // Load MAS2 with 0x2000_0038 for TLB entry #2&lt;/P&gt;
&lt;P&gt;se_bgeni r3,2 // physical address at 0x2000_0000&lt;BR /&gt;e_ori r3,r3,0x003f // all accesses permitted&lt;BR /&gt;mtspr MAS3,r3&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;msync // make sure we finished all memory accesses&lt;BR /&gt;tlbwe // Write entry defined in MAS0 (entry #2 here) to MMU TLB&lt;BR /&gt;se_isync // Wait for tlbwe to complete, then flush instruction buffer&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 15:26:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1178032#M16632</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2020-11-04T15:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1178475#M16638</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;After using the&amp;nbsp;&lt;SPAN&gt;MMU configuration you have suggested the issue is not yet resolved. I have attached the source code file below.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As explained earlier after accessing the address locations ("0x20000002", "0x20000004","0x20000006","0x20000008") if I write data and read back the address location "0x21004000", i am not getting the same data that i had written into this address location.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In other case, if i dont access&amp;nbsp;the address locations ("0x20000002", "0x20000004","0x20000006","0x20000008") and if I write data and read back the address location "0x21004000", i am getting the same data that i had written earlier&amp;nbsp;into this address location.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 04:23:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1178475#M16638</guid>
      <dc:creator>prathapvc</dc:creator>
      <dc:date>2020-11-05T04:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1179705#M16645</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;We have configured EBI to access external memory devices in our application as below&lt;/P&gt;&lt;P&gt;a)&amp;nbsp; External SRAM - CS0 - 0x20000000 - 0x20FFFFFF&lt;/P&gt;&lt;P&gt;b)&amp;nbsp; RTRAM - CS1 - 0x21000000 - 0x21FFFFFF&lt;/P&gt;&lt;P&gt;c)&amp;nbsp; DPRAM - CS2 - 0x22000000 - 0x21FFFFFF&lt;/P&gt;&lt;P&gt;d)&amp;nbsp; DPRAM semaphore - CS3 - 0x23000000 - 0x21FFFFFF&lt;/P&gt;&lt;P&gt;Can you explain the MMU configuration code shared by you and why is it required&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 15:05:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1179705#M16645</guid>
      <dc:creator>prathapvc</dc:creator>
      <dc:date>2020-11-07T15:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1179836#M16647</link>
      <description>&lt;P&gt;Typically refers to storage in an external hard drive or on the Internet. The main "memory" in the computer is the computer's workspace, not its storage facility. See external storage.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 05:40:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1179836#M16647</guid>
      <dc:creator>Ketlon1</dc:creator>
      <dc:date>2021-01-23T05:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1180095#M16653</link>
      <description>&lt;P&gt;Because by default BAM configuration MMU TLB entry for EBI space is configured for 16MB i.e. address range 0x2000_0000 - 0x20FF_FFFF.&lt;/P&gt;
&lt;P style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"&gt;The code snippet re-configures it for 512MB that is the whole area 0x2000_0000-0x3FFFFFFF.&lt;/P&gt;
&lt;P style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"&gt;I don't say it is the reason - just an idea&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 12:16:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1180095#M16653</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2020-11-09T12:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1184196#M16688</link>
      <description>&lt;P&gt;Can there be any EBI bus contention issue since same address lines and data lines are connected to many memory devices&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 03:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1184196#M16688</guid>
      <dc:creator>prathapvc</dc:creator>
      <dc:date>2020-11-17T03:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1224067#M17257</link>
      <description>&lt;P&gt;Ordinarily alludes to capacity in an outer hard drive or on the Internet. The fundamental "memory" in the PC is the PC's workspace, not its storage space. See outer capacity.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 12:09:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1224067#M17257</guid>
      <dc:creator>Roy741</dc:creator>
      <dc:date>2021-02-01T12:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1420060#M20542</link>
      <description>&lt;P&gt;Hi David ,&lt;/P&gt;&lt;P&gt;For 16 bit EBI programming can i use attached ,main.c is it alright ? I not seed&amp;nbsp; any conclusion in this threat . please suggest .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 01:05:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1420060#M20542</guid>
      <dc:creator>ashok_majeegb</dc:creator>
      <dc:date>2022-02-27T01:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C EBI external memory access issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1528988#M22079</link>
      <description>&lt;P&gt;Hi prathapvc,&lt;/P&gt;&lt;P&gt;I am having exactly the same issue with the EBI on MPC5777C. Did You find solution after all? I would really appreciate any hint. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Martin&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 17:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-EBI-external-memory-access-issue/m-p/1528988#M22079</guid>
      <dc:creator>martinklonfar</dc:creator>
      <dc:date>2022-09-27T17:21:53Z</dc:date>
    </item>
  </channel>
</rss>

