<?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>P-Series中的主题 Re: P1010 L1 CACHE</title>
    <link>https://community.nxp.com/t5/P-Series/P1010-L1-CACHE/m-p/469866#M2798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Спасибо, Александр) &lt;BR /&gt;твой код работает у меня в RAM,но не работает в ROM. Я так понимаю, это из-за неправильной моей настройки TLB, MMU и тд. Можешь прикрепить твой файл с настройками под ROM, где есть функция usr_init, по-моему. Там как раз идет описание MMU, TLB, CCRSBAR, DDR. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2016 13:57:58 GMT</pubDate>
    <dc:creator>tsybezoff</dc:creator>
    <dc:date>2016-04-05T13:57:58Z</dc:date>
    <item>
      <title>P1010 L1 CACHE</title>
      <link>https://community.nxp.com/t5/P-Series/P1010-L1-CACHE/m-p/469864#M2796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please, i need help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanna to use L1 cache with L2 cache in my project at p1010. I set up L2, but have a some questions about L1.&lt;BR /&gt;1. Can i use L1 Cache in RAM, or only in ROM&lt;BR /&gt;2. How to setup L1 Cache??? anybody have an example???? &lt;BR /&gt;Example in P1010RDB_init.c doesn't work in my project((((&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 18:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P1010-L1-CACHE/m-p/469864#M2796</guid>
      <dc:creator>tsybezoff</dc:creator>
      <dc:date>2016-03-31T18:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: P1010 L1 CACHE</title>
      <link>https://community.nxp.com/t5/P-Series/P1010-L1-CACHE/m-p/469865#M2797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Yes you can use L1 cache for both ROM and RAM&lt;/P&gt;&lt;P&gt;2. L1 cache initialization is quite simple - you need only to enable and invalidate. Below is a part of L1 cache initialization from cache.c file distributed with our CodeWarrior&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void l1_cache_init()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;// Enable and Invalidate L1 DataCache&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("mfspr r5,1010");&amp;nbsp; /* Read in L1CSR0 spr contents&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("ori&amp;nbsp; r5,r5,0x0003");&amp;nbsp; /* Set CE and CFI bit */&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("andi. r6,r5,0xFFFD");&amp;nbsp; /* Clear the CFI bit for the final store */&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("mtspr 1010,r5");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("isync");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("isync");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("mtspr 1010,r6");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Store the final value */&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("isync");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("isync");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Enable and Invalidate Inst Cache&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("mfspr r5,1011");&amp;nbsp; /* Read in L1CSR1 spr contents&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("ori&amp;nbsp; r5,r5,0x0003");&amp;nbsp; /* Set ICE and ICFI bit */&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("andi. r6,r5,0xFFFD");&amp;nbsp; /* Clear the CFI bit for the final store */&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("mtspr 1011,r5");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("isync");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("isync");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("mtspr 1011,r6");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Store the final value */&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("isync");&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("isync");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alexander&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 08:45:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P1010-L1-CACHE/m-p/469865#M2797</guid>
      <dc:creator>alexander_yakov</dc:creator>
      <dc:date>2016-04-01T08:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: P1010 L1 CACHE</title>
      <link>https://community.nxp.com/t5/P-Series/P1010-L1-CACHE/m-p/469866#M2798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Спасибо, Александр) &lt;BR /&gt;твой код работает у меня в RAM,но не работает в ROM. Я так понимаю, это из-за неправильной моей настройки TLB, MMU и тд. Можешь прикрепить твой файл с настройками под ROM, где есть функция usr_init, по-моему. Там как раз идет описание MMU, TLB, CCRSBAR, DDR. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 13:57:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P1010-L1-CACHE/m-p/469866#M2798</guid>
      <dc:creator>tsybezoff</dc:creator>
      <dc:date>2016-04-05T13:57:58Z</dc:date>
    </item>
  </channel>
</rss>

