<?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: Write to 5644 CRC Module register causes processor exception in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Write-to-5644-CRC-Module-register-causes-processor-exception/m-p/619760#M5396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the MMU is initialized by BAM code which resides in ROM memory. The same BAM code is used on more devices (not only MPC5644A) for compatibility reasons and also to avoid risk when changing the code. Unfortunately the default MMU settings do not cover CRC module because it is outside the MMU page covering Peripheral Bridge B.&lt;/P&gt;&lt;P&gt;The default MMU settings are:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5159i835E1B0231C8A214/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here you can see that CRC module is not covered by TLB entry 0:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5223iC5A0BCA751F6E559/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;So, it is necessary to adjust the MMU settings...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 07:59:37 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2016-09-16T07:59:37Z</dc:date>
    <item>
      <title>Write to 5644 CRC Module register causes processor exception</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Write-to-5644-CRC-Module-register-causes-processor-exception/m-p/619757#M5393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With 5644A, writing to CRC_CFG register causes a processor exception.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the definition of CRC in mpc5644a.h, at address 0xFFE68000&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;// For example...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;CRC.CFG.B.POLY = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Causes a processor exception. &amp;nbsp;What could be&amp;nbsp;wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 04:30:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Write-to-5644-CRC-Module-register-causes-processor-exception/m-p/619757#M5393</guid>
      <dc:creator>kentabacchi</dc:creator>
      <dc:date>2016-09-15T04:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Write to 5644 CRC Module register causes processor exception</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Write-to-5644-CRC-Module-register-causes-processor-exception/m-p/619758#M5394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;the problem is that CRC registers are not covered by default MMU settings. So, access to the registers leads to bus error and to exception (IVOR1). &lt;BR /&gt;Add the following code to your project and it will work. It just creates new MMU page that covers area 0xFFE0_0000 - 0xFFEF_FFFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//MMU - TLB6&lt;BR /&gt;asm&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; lis r3, 0x1006&lt;BR /&gt;&amp;nbsp;&amp;nbsp; mtmas0 r3&lt;BR /&gt;&amp;nbsp;&amp;nbsp; lis&amp;nbsp; r3, 0xC000&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ori&amp;nbsp; r3, r3, 0x0500&lt;BR /&gt;&amp;nbsp;&amp;nbsp; mtmas1 r3&lt;BR /&gt;&amp;nbsp;&amp;nbsp; lis&amp;nbsp; r3, 0xFFE0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ori&amp;nbsp; r3, r3, 0x000A&lt;BR /&gt;&amp;nbsp;&amp;nbsp; mtmas2 r3&lt;BR /&gt;&amp;nbsp;&amp;nbsp; lis&amp;nbsp; r3, 0xFFE0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ori&amp;nbsp; r3, r3, 0x003F&lt;BR /&gt;&amp;nbsp;&amp;nbsp; mtmas3 r3&lt;BR /&gt;&amp;nbsp;&amp;nbsp; tlbwe&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 04:51:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Write-to-5644-CRC-Module-register-causes-processor-exception/m-p/619758#M5394</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2016-09-15T04:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Write to 5644 CRC Module register causes processor exception</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Write-to-5644-CRC-Module-register-causes-processor-exception/m-p/619759#M5395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. &amp;nbsp;Could you please point to where this is documented?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 19:43:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Write-to-5644-CRC-Module-register-causes-processor-exception/m-p/619759#M5395</guid>
      <dc:creator>kentabacchi</dc:creator>
      <dc:date>2016-09-15T19:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Write to 5644 CRC Module register causes processor exception</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Write-to-5644-CRC-Module-register-causes-processor-exception/m-p/619760#M5396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the MMU is initialized by BAM code which resides in ROM memory. The same BAM code is used on more devices (not only MPC5644A) for compatibility reasons and also to avoid risk when changing the code. Unfortunately the default MMU settings do not cover CRC module because it is outside the MMU page covering Peripheral Bridge B.&lt;/P&gt;&lt;P&gt;The default MMU settings are:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5159i835E1B0231C8A214/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here you can see that CRC module is not covered by TLB entry 0:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5223iC5A0BCA751F6E559/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;So, it is necessary to adjust the MMU settings...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 07:59:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Write-to-5644-CRC-Module-register-causes-processor-exception/m-p/619760#M5396</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2016-09-16T07:59:37Z</dc:date>
    </item>
  </channel>
</rss>

